[2025-04-04 00:00:05] Production.INFO: next invoice date [2025-04-04 00:00:05] Production.INFO: 2025-05-04 [2025-04-04 00:00:05] Production.INFO: getdaysdiff [2025-04-04 00:00:05] Production.INFO: +30 [2025-04-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,30,30,'RMScheduler',2025-04-04 00:00:05,0,0,,,0) [2025-04-04 00:00:05] Production.INFO: next invoice date [2025-04-04 00:00:05] Production.INFO: 2025-05-04 [2025-04-04 00:00:05] Production.INFO: getdaysdiff [2025-04-04 00:00:05] Production.INFO: +30 [2025-04-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,30,30,'RMScheduler',2025-04-04 00:00:05,0,0,,,0) [2025-04-04 00:00:05] Production.INFO: next invoice date [2025-04-04 00:00:05] Production.INFO: 2025-05-04 [2025-04-04 00:00:05] Production.INFO: getdaysdiff [2025-04-04 00:00:05] Production.INFO: +30 [2025-04-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,30,30,'RMScheduler',2025-04-04 00:00:05,0,0,,,0) [2025-04-04 00:00:06] Production.INFO: next invoice date [2025-04-04 00:00:06] Production.INFO: 2025-05-04 [2025-04-04 00:00:06] Production.INFO: getdaysdiff [2025-04-04 00:00:06] Production.INFO: +30 [2025-04-04 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,30,30,'RMScheduler',2025-04-04 00:00:05,0,0,,,0) [2025-04-04 00:00:06] Production.INFO: next invoice date [2025-04-04 00:00:06] Production.INFO: 2025-05-04 [2025-04-04 00:00:06] Production.INFO: getdaysdiff [2025-04-04 00:00:06] Production.INFO: +30 [2025-04-04 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,30,30,'RMScheduler',2025-04-04 00:00:05,1,0,,,0) [2025-04-04 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:00:07 [end_date_ymd] => 2025-04-04 00:00:07 [RateCDR] => 1 ) [2025-04-04 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:00:07' and `end` < '2025-04-04 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:00:20] Production.INFO: count ==1054 [2025-04-04 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-03 21:00:07 - End Time 2025-04-04 00:00:07 [2025-04-04 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829028', 'tblTempUsageDetail_20' ) start [2025-04-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829028', 'tblTempUsageDetail_20' ) end [2025-04-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829028', 'tblTempVendorCDR_20' ) start [2025-04-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829028', 'tblTempVendorCDR_20' ) end [2025-04-04 00:00:20] Production.INFO: ProcessCDR(1,14829028,1,1,2) [2025-04-04 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829028', 'tblTempUsageDetail_20' ) start [2025-04-04 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829028', 'tblTempUsageDetail_20' ) end [2025-04-04 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:00:27] Production.INFO: ==15640== Releasing lock... [2025-04-04 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:00:27] Production.INFO: 38.75 MB #Memory Used# [2025-04-04 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:01:06 [end_date_ymd] => 2025-04-04 00:01:06 [RateCDR] => 1 ) [2025-04-04 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-03 21:01:06' and `end` < '2025-04-04 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-04 00:01:20] Production.INFO: count ==653 [2025-04-04 00:01:21] Production.ERROR: pbx CDR StartTime 2025-04-03 21:01:06 - End Time 2025-04-04 00:01:06 [2025-04-04 00:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829033', 'tblTempUsageDetail_20' ) start [2025-04-04 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829033', 'tblTempUsageDetail_20' ) end [2025-04-04 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829033', 'tblTempVendorCDR_20' ) start [2025-04-04 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829033', 'tblTempVendorCDR_20' ) end [2025-04-04 00:01:21] Production.INFO: ProcessCDR(1,14829033,1,1,2) [2025-04-04 00:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829033', 'tblTempUsageDetail_20' ) start [2025-04-04 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829033', 'tblTempUsageDetail_20' ) end [2025-04-04 00:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:01:27] Production.INFO: ==15731== Releasing lock... [2025-04-04 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:01:27] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:02:06 [end_date_ymd] => 2025-04-04 00:02:06 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:02:06' and `end` < '2025-04-04 00: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-04 00:02:19] Production.INFO: count ==648 [2025-04-04 00:02:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:02:06 - End Time 2025-04-04 00:02:06 [2025-04-04 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829038', 'tblTempUsageDetail_20' ) start [2025-04-04 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829038', 'tblTempUsageDetail_20' ) end [2025-04-04 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829038', 'tblTempVendorCDR_20' ) start [2025-04-04 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829038', 'tblTempVendorCDR_20' ) end [2025-04-04 00:02:19] Production.INFO: ProcessCDR(1,14829038,1,1,2) [2025-04-04 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829038', 'tblTempUsageDetail_20' ) start [2025-04-04 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829038', 'tblTempUsageDetail_20' ) end [2025-04-04 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:02:23] Production.INFO: ==15803== Releasing lock... [2025-04-04 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:02:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:03:05 [end_date_ymd] => 2025-04-04 00:03:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:03:05' and `end` < '2025-04-04 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-04 00:03:18] Production.INFO: count ==656 [2025-04-04 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:03:05 - End Time 2025-04-04 00:03:05 [2025-04-04 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829043', 'tblTempUsageDetail_20' ) start [2025-04-04 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829043', 'tblTempUsageDetail_20' ) end [2025-04-04 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829043', 'tblTempVendorCDR_20' ) start [2025-04-04 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829043', 'tblTempVendorCDR_20' ) end [2025-04-04 00:03:19] Production.INFO: ProcessCDR(1,14829043,1,1,2) [2025-04-04 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829043', 'tblTempUsageDetail_20' ) start [2025-04-04 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829043', 'tblTempUsageDetail_20' ) end [2025-04-04 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:03:22] Production.INFO: ==15875== Releasing lock... [2025-04-04 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:04:06 [end_date_ymd] => 2025-04-04 00:04:06 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:04:06' and `end` < '2025-04-04 00: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-04 00:04:19] Production.INFO: count ==651 [2025-04-04 00:04:20] Production.ERROR: pbx CDR StartTime 2025-04-03 21:04:06 - End Time 2025-04-04 00:04:06 [2025-04-04 00:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829048', 'tblTempUsageDetail_20' ) start [2025-04-04 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829048', 'tblTempUsageDetail_20' ) end [2025-04-04 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829048', 'tblTempVendorCDR_20' ) start [2025-04-04 00:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829048', 'tblTempVendorCDR_20' ) end [2025-04-04 00:04:20] Production.INFO: ProcessCDR(1,14829048,1,1,2) [2025-04-04 00:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829048', 'tblTempUsageDetail_20' ) start [2025-04-04 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829048', 'tblTempUsageDetail_20' ) end [2025-04-04 00:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:04:25] Production.INFO: ==15949== Releasing lock... [2025-04-04 00:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:04:25] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:05:05 [end_date_ymd] => 2025-04-04 00:05:05 [RateCDR] => 1 ) [2025-04-04 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:05:05' and `end` < '2025-04-04 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:05:28] Production.INFO: count ==652 [2025-04-04 00:05:28] Production.ERROR: pbx CDR StartTime 2025-04-03 21:05:05 - End Time 2025-04-04 00:05:05 [2025-04-04 00:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829053', 'tblTempUsageDetail_20' ) start [2025-04-04 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829053', 'tblTempUsageDetail_20' ) end [2025-04-04 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829053', 'tblTempVendorCDR_20' ) start [2025-04-04 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829053', 'tblTempVendorCDR_20' ) end [2025-04-04 00:05:28] Production.INFO: ProcessCDR(1,14829053,1,1,2) [2025-04-04 00:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829053', 'tblTempUsageDetail_20' ) start [2025-04-04 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829053', 'tblTempUsageDetail_20' ) end [2025-04-04 00:05:33] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:05:33] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:05:33] Production.INFO: ==16022== Releasing lock... [2025-04-04 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:05:33] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:06:06 [end_date_ymd] => 2025-04-04 00:06:06 [RateCDR] => 1 ) [2025-04-04 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-03 21:06:06' and `end` < '2025-04-04 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-04 00:06:29] Production.INFO: count ==666 [2025-04-04 00:06:30] Production.ERROR: pbx CDR StartTime 2025-04-03 21:06:06 - End Time 2025-04-04 00:06:06 [2025-04-04 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829058', 'tblTempUsageDetail_20' ) start [2025-04-04 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829058', 'tblTempUsageDetail_20' ) end [2025-04-04 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829058', 'tblTempVendorCDR_20' ) start [2025-04-04 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829058', 'tblTempVendorCDR_20' ) end [2025-04-04 00:06:30] Production.INFO: ProcessCDR(1,14829058,1,1,2) [2025-04-04 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829058', 'tblTempUsageDetail_20' ) start [2025-04-04 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829058', 'tblTempUsageDetail_20' ) end [2025-04-04 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:06:33] Production.INFO: ==16095== Releasing lock... [2025-04-04 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:06:33] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:07:05 [end_date_ymd] => 2025-04-04 00:07:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:07:05' and `end` < '2025-04-04 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-04 00:07:27] Production.INFO: count ==682 [2025-04-04 00:07:27] Production.ERROR: pbx CDR StartTime 2025-04-03 21:07:05 - End Time 2025-04-04 00:07:05 [2025-04-04 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829063', 'tblTempUsageDetail_20' ) start [2025-04-04 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829063', 'tblTempUsageDetail_20' ) end [2025-04-04 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829063', 'tblTempVendorCDR_20' ) start [2025-04-04 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829063', 'tblTempVendorCDR_20' ) end [2025-04-04 00:07:27] Production.INFO: ProcessCDR(1,14829063,1,1,2) [2025-04-04 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829063', 'tblTempUsageDetail_20' ) start [2025-04-04 00:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829063', 'tblTempUsageDetail_20' ) end [2025-04-04 00:07:31] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:07:31] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:07:31] Production.INFO: ==16165== Releasing lock... [2025-04-04 00:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:07:31] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:08:05 [end_date_ymd] => 2025-04-04 00:08:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:08:05' and `end` < '2025-04-04 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-04 00:08:24] Production.INFO: count ==673 [2025-04-04 00:08:24] Production.ERROR: pbx CDR StartTime 2025-04-03 21:08:05 - End Time 2025-04-04 00:08:05 [2025-04-04 00:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829068', 'tblTempUsageDetail_20' ) start [2025-04-04 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829068', 'tblTempUsageDetail_20' ) end [2025-04-04 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829068', 'tblTempVendorCDR_20' ) start [2025-04-04 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829068', 'tblTempVendorCDR_20' ) end [2025-04-04 00:08:24] Production.INFO: ProcessCDR(1,14829068,1,1,2) [2025-04-04 00:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829068', 'tblTempUsageDetail_20' ) start [2025-04-04 00:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829068', 'tblTempUsageDetail_20' ) end [2025-04-04 00:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:08:28] Production.INFO: ==16238== Releasing lock... [2025-04-04 00:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:08:28] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:09:05 [end_date_ymd] => 2025-04-04 00:09:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:09:05' and `end` < '2025-04-04 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-04 00:09:19] Production.INFO: count ==670 [2025-04-04 00:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:09:05 - End Time 2025-04-04 00:09:05 [2025-04-04 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829073', 'tblTempUsageDetail_20' ) start [2025-04-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829073', 'tblTempUsageDetail_20' ) end [2025-04-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829073', 'tblTempVendorCDR_20' ) start [2025-04-04 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829073', 'tblTempVendorCDR_20' ) end [2025-04-04 00:09:19] Production.INFO: ProcessCDR(1,14829073,1,1,2) [2025-04-04 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829073', 'tblTempUsageDetail_20' ) start [2025-04-04 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829073', 'tblTempUsageDetail_20' ) end [2025-04-04 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:09:23] Production.INFO: ==16310== Releasing lock... [2025-04-04 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:09:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:10:06 [end_date_ymd] => 2025-04-04 00:10:06 [RateCDR] => 1 ) [2025-04-04 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-03 21:10:06' and `end` < '2025-04-04 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-04 00:10:19] Production.INFO: count ==677 [2025-04-04 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:10:06 - End Time 2025-04-04 00:10:06 [2025-04-04 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829078', 'tblTempUsageDetail_20' ) start [2025-04-04 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829078', 'tblTempUsageDetail_20' ) end [2025-04-04 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829078', 'tblTempVendorCDR_20' ) start [2025-04-04 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829078', 'tblTempVendorCDR_20' ) end [2025-04-04 00:10:19] Production.INFO: ProcessCDR(1,14829078,1,1,2) [2025-04-04 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829078', 'tblTempUsageDetail_20' ) start [2025-04-04 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829078', 'tblTempUsageDetail_20' ) end [2025-04-04 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:10:23] Production.INFO: ==16381== Releasing lock... [2025-04-04 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:10:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:11:05 [end_date_ymd] => 2025-04-04 00:11:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:11:05' and `end` < '2025-04-04 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-04 00:11:18] Production.INFO: count ==682 [2025-04-04 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:11:05 - End Time 2025-04-04 00:11:05 [2025-04-04 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829084', 'tblTempUsageDetail_20' ) start [2025-04-04 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829084', 'tblTempUsageDetail_20' ) end [2025-04-04 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829084', 'tblTempVendorCDR_20' ) start [2025-04-04 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829084', 'tblTempVendorCDR_20' ) end [2025-04-04 00:11:18] Production.INFO: ProcessCDR(1,14829084,1,1,2) [2025-04-04 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829084', 'tblTempUsageDetail_20' ) start [2025-04-04 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829084', 'tblTempUsageDetail_20' ) end [2025-04-04 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:11:22] Production.INFO: ==16456== Releasing lock... [2025-04-04 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:11:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:12:05 [end_date_ymd] => 2025-04-04 00:12:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:12:05' and `end` < '2025-04-04 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-04 00:12:18] Production.INFO: count ==682 [2025-04-04 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:12:05 - End Time 2025-04-04 00:12:05 [2025-04-04 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829089', 'tblTempUsageDetail_20' ) start [2025-04-04 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829089', 'tblTempUsageDetail_20' ) end [2025-04-04 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829089', 'tblTempVendorCDR_20' ) start [2025-04-04 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829089', 'tblTempVendorCDR_20' ) end [2025-04-04 00:12:19] Production.INFO: ProcessCDR(1,14829089,1,1,2) [2025-04-04 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829089', 'tblTempUsageDetail_20' ) start [2025-04-04 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829089', 'tblTempUsageDetail_20' ) end [2025-04-04 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:12:22] Production.INFO: ==16534== Releasing lock... [2025-04-04 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:12:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:13:05 [end_date_ymd] => 2025-04-04 00:13:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:13:05' and `end` < '2025-04-04 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-04 00:13:18] Production.INFO: count ==681 [2025-04-04 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:13:05 - End Time 2025-04-04 00:13:05 [2025-04-04 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829094', 'tblTempUsageDetail_20' ) start [2025-04-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829094', 'tblTempUsageDetail_20' ) end [2025-04-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829094', 'tblTempVendorCDR_20' ) start [2025-04-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829094', 'tblTempVendorCDR_20' ) end [2025-04-04 00:13:18] Production.INFO: ProcessCDR(1,14829094,1,1,2) [2025-04-04 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829094', 'tblTempUsageDetail_20' ) start [2025-04-04 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829094', 'tblTempUsageDetail_20' ) end [2025-04-04 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:13:22] Production.INFO: ==16602== Releasing lock... [2025-04-04 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:13:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:14:05 [end_date_ymd] => 2025-04-04 00:14:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:14:05' and `end` < '2025-04-04 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-04 00:14:18] Production.INFO: count ==681 [2025-04-04 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:14:05 - End Time 2025-04-04 00:14:05 [2025-04-04 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829099', 'tblTempUsageDetail_20' ) start [2025-04-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829099', 'tblTempUsageDetail_20' ) end [2025-04-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829099', 'tblTempVendorCDR_20' ) start [2025-04-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829099', 'tblTempVendorCDR_20' ) end [2025-04-04 00:14:18] Production.INFO: ProcessCDR(1,14829099,1,1,2) [2025-04-04 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829099', 'tblTempUsageDetail_20' ) start [2025-04-04 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829099', 'tblTempUsageDetail_20' ) end [2025-04-04 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:14:22] Production.INFO: ==16714== Releasing lock... [2025-04-04 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:14:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:15:05 [end_date_ymd] => 2025-04-04 00:15:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:15:05' and `end` < '2025-04-04 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-04 00:15:18] Production.INFO: count ==678 [2025-04-04 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:15:05 - End Time 2025-04-04 00:15:05 [2025-04-04 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829104', 'tblTempUsageDetail_20' ) start [2025-04-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829104', 'tblTempUsageDetail_20' ) end [2025-04-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829104', 'tblTempVendorCDR_20' ) start [2025-04-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829104', 'tblTempVendorCDR_20' ) end [2025-04-04 00:15:18] Production.INFO: ProcessCDR(1,14829104,1,1,2) [2025-04-04 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829104', 'tblTempUsageDetail_20' ) start [2025-04-04 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829104', 'tblTempUsageDetail_20' ) end [2025-04-04 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:15:22] Production.INFO: ==16789== Releasing lock... [2025-04-04 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:15:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:16:05 [end_date_ymd] => 2025-04-04 00:16:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:16:05' and `end` < '2025-04-04 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-04 00:16:18] Production.INFO: count ==681 [2025-04-04 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:16:05 - End Time 2025-04-04 00:16:05 [2025-04-04 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829109', 'tblTempUsageDetail_20' ) start [2025-04-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829109', 'tblTempUsageDetail_20' ) end [2025-04-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829109', 'tblTempVendorCDR_20' ) start [2025-04-04 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829109', 'tblTempVendorCDR_20' ) end [2025-04-04 00:16:18] Production.INFO: ProcessCDR(1,14829109,1,1,2) [2025-04-04 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829109', 'tblTempUsageDetail_20' ) start [2025-04-04 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829109', 'tblTempUsageDetail_20' ) end [2025-04-04 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:16:22] Production.INFO: ==16863== Releasing lock... [2025-04-04 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:16:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:17:06 [end_date_ymd] => 2025-04-04 00:17:06 [RateCDR] => 1 ) [2025-04-04 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:17:06' and `end` < '2025-04-04 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:17:19] Production.INFO: count ==681 [2025-04-04 00:17:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:17:06 - End Time 2025-04-04 00:17:06 [2025-04-04 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829114', 'tblTempUsageDetail_20' ) start [2025-04-04 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829114', 'tblTempUsageDetail_20' ) end [2025-04-04 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829114', 'tblTempVendorCDR_20' ) start [2025-04-04 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829114', 'tblTempVendorCDR_20' ) end [2025-04-04 00:17:19] Production.INFO: ProcessCDR(1,14829114,1,1,2) [2025-04-04 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829114', 'tblTempUsageDetail_20' ) start [2025-04-04 00:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829114', 'tblTempUsageDetail_20' ) end [2025-04-04 00:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:17:24] Production.INFO: ==16936== Releasing lock... [2025-04-04 00:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:17:24] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:18:05 [end_date_ymd] => 2025-04-04 00:18:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:18:05' and `end` < '2025-04-04 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-04 00:18:18] Production.INFO: count ==663 [2025-04-04 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:18:05 - End Time 2025-04-04 00:18:05 [2025-04-04 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829119', 'tblTempUsageDetail_20' ) start [2025-04-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829119', 'tblTempUsageDetail_20' ) end [2025-04-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829119', 'tblTempVendorCDR_20' ) start [2025-04-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829119', 'tblTempVendorCDR_20' ) end [2025-04-04 00:18:18] Production.INFO: ProcessCDR(1,14829119,1,1,2) [2025-04-04 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829119', 'tblTempUsageDetail_20' ) start [2025-04-04 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829119', 'tblTempUsageDetail_20' ) end [2025-04-04 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:18:22] Production.INFO: ==17006== Releasing lock... [2025-04-04 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:19:05 [end_date_ymd] => 2025-04-04 00:19:05 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:19:05' and `end` < '2025-04-04 00: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-04 00:19:18] Production.INFO: count ==669 [2025-04-04 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:19:05 - End Time 2025-04-04 00:19:05 [2025-04-04 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829124', 'tblTempUsageDetail_20' ) start [2025-04-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829124', 'tblTempUsageDetail_20' ) end [2025-04-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829124', 'tblTempVendorCDR_20' ) start [2025-04-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829124', 'tblTempVendorCDR_20' ) end [2025-04-04 00:19:18] Production.INFO: ProcessCDR(1,14829124,1,1,2) [2025-04-04 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829124', 'tblTempUsageDetail_20' ) start [2025-04-04 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829124', 'tblTempUsageDetail_20' ) end [2025-04-04 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:19:22] Production.INFO: ==17084== Releasing lock... [2025-04-04 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:19:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:20:06 [end_date_ymd] => 2025-04-04 00:20:06 [RateCDR] => 1 ) [2025-04-04 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-03 21:20:06' and `end` < '2025-04-04 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-04 00:20:19] Production.INFO: count ==683 [2025-04-04 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:20:06 - End Time 2025-04-04 00:20:06 [2025-04-04 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829129', 'tblTempUsageDetail_20' ) start [2025-04-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829129', 'tblTempUsageDetail_20' ) end [2025-04-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829129', 'tblTempVendorCDR_20' ) start [2025-04-04 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829129', 'tblTempVendorCDR_20' ) end [2025-04-04 00:20:19] Production.INFO: ProcessCDR(1,14829129,1,1,2) [2025-04-04 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829129', 'tblTempUsageDetail_20' ) start [2025-04-04 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829129', 'tblTempUsageDetail_20' ) end [2025-04-04 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:20:23] Production.INFO: ==17160== Releasing lock... [2025-04-04 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:20:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:21:05 [end_date_ymd] => 2025-04-04 00:21:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:21:05' and `end` < '2025-04-04 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-04 00:21:18] Production.INFO: count ==687 [2025-04-04 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:21:05 - End Time 2025-04-04 00:21:05 [2025-04-04 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829135', 'tblTempUsageDetail_20' ) start [2025-04-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829135', 'tblTempUsageDetail_20' ) end [2025-04-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829135', 'tblTempVendorCDR_20' ) start [2025-04-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829135', 'tblTempVendorCDR_20' ) end [2025-04-04 00:21:18] Production.INFO: ProcessCDR(1,14829135,1,1,2) [2025-04-04 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829135', 'tblTempUsageDetail_20' ) start [2025-04-04 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829135', 'tblTempUsageDetail_20' ) end [2025-04-04 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:21:22] Production.INFO: ==17234== Releasing lock... [2025-04-04 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:21:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:22:05 [end_date_ymd] => 2025-04-04 00:22:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:22:05' and `end` < '2025-04-04 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-04 00:22:18] Production.INFO: count ==685 [2025-04-04 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:22:05 - End Time 2025-04-04 00:22:05 [2025-04-04 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829140', 'tblTempUsageDetail_20' ) start [2025-04-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829140', 'tblTempUsageDetail_20' ) end [2025-04-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829140', 'tblTempVendorCDR_20' ) start [2025-04-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829140', 'tblTempVendorCDR_20' ) end [2025-04-04 00:22:18] Production.INFO: ProcessCDR(1,14829140,1,1,2) [2025-04-04 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829140', 'tblTempUsageDetail_20' ) start [2025-04-04 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829140', 'tblTempUsageDetail_20' ) end [2025-04-04 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:22:22] Production.INFO: ==17305== Releasing lock... [2025-04-04 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:22:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:23:06 [end_date_ymd] => 2025-04-04 00:23:06 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:23:06' and `end` < '2025-04-04 00: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-04 00:23:19] Production.INFO: count ==687 [2025-04-04 00:23:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:23:06 - End Time 2025-04-04 00:23:06 [2025-04-04 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829145', 'tblTempUsageDetail_20' ) start [2025-04-04 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829145', 'tblTempUsageDetail_20' ) end [2025-04-04 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829145', 'tblTempVendorCDR_20' ) start [2025-04-04 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829145', 'tblTempVendorCDR_20' ) end [2025-04-04 00:23:19] Production.INFO: ProcessCDR(1,14829145,1,1,2) [2025-04-04 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829145', 'tblTempUsageDetail_20' ) start [2025-04-04 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829145', 'tblTempUsageDetail_20' ) end [2025-04-04 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:23:22] Production.INFO: ==17379== Releasing lock... [2025-04-04 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:23:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:24:05 [end_date_ymd] => 2025-04-04 00:24:05 [RateCDR] => 1 ) [2025-04-04 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:24:05' and `end` < '2025-04-04 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:24:18] Production.INFO: count ==684 [2025-04-04 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:24:05 - End Time 2025-04-04 00:24:05 [2025-04-04 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829150', 'tblTempUsageDetail_20' ) start [2025-04-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829150', 'tblTempUsageDetail_20' ) end [2025-04-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829150', 'tblTempVendorCDR_20' ) start [2025-04-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829150', 'tblTempVendorCDR_20' ) end [2025-04-04 00:24:18] Production.INFO: ProcessCDR(1,14829150,1,1,2) [2025-04-04 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829150', 'tblTempUsageDetail_20' ) start [2025-04-04 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829150', 'tblTempUsageDetail_20' ) end [2025-04-04 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:24:22] Production.INFO: ==17449== Releasing lock... [2025-04-04 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:24:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:25:05 [end_date_ymd] => 2025-04-04 00:25:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:25:05' and `end` < '2025-04-04 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:25:18] Production.INFO: count ==677 [2025-04-04 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:25:05 - End Time 2025-04-04 00:25:05 [2025-04-04 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829155', 'tblTempUsageDetail_20' ) start [2025-04-04 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829155', 'tblTempUsageDetail_20' ) end [2025-04-04 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829155', 'tblTempVendorCDR_20' ) start [2025-04-04 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829155', 'tblTempVendorCDR_20' ) end [2025-04-04 00:25:19] Production.INFO: ProcessCDR(1,14829155,1,1,2) [2025-04-04 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829155', 'tblTempUsageDetail_20' ) start [2025-04-04 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829155', 'tblTempUsageDetail_20' ) end [2025-04-04 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:25:22] Production.INFO: ==17523== Releasing lock... [2025-04-04 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:25:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:26:05 [end_date_ymd] => 2025-04-04 00:26:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:26:05' and `end` < '2025-04-04 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-04 00:26:17] Production.INFO: count ==671 [2025-04-04 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:26:05 - End Time 2025-04-04 00:26:05 [2025-04-04 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829160', 'tblTempUsageDetail_20' ) start [2025-04-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829160', 'tblTempUsageDetail_20' ) end [2025-04-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829160', 'tblTempVendorCDR_20' ) start [2025-04-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829160', 'tblTempVendorCDR_20' ) end [2025-04-04 00:26:18] Production.INFO: ProcessCDR(1,14829160,1,1,2) [2025-04-04 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829160', 'tblTempUsageDetail_20' ) start [2025-04-04 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829160', 'tblTempUsageDetail_20' ) end [2025-04-04 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:26:21] Production.INFO: ==17597== Releasing lock... [2025-04-04 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:27:05 [end_date_ymd] => 2025-04-04 00:27:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:27:05' and `end` < '2025-04-04 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-04 00:27:18] Production.INFO: count ==652 [2025-04-04 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:27:05 - End Time 2025-04-04 00:27:05 [2025-04-04 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829165', 'tblTempUsageDetail_20' ) start [2025-04-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829165', 'tblTempUsageDetail_20' ) end [2025-04-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829165', 'tblTempVendorCDR_20' ) start [2025-04-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829165', 'tblTempVendorCDR_20' ) end [2025-04-04 00:27:18] Production.INFO: ProcessCDR(1,14829165,1,1,2) [2025-04-04 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829165', 'tblTempUsageDetail_20' ) start [2025-04-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829165', 'tblTempUsageDetail_20' ) end [2025-04-04 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:27:21] Production.INFO: ==17674== Releasing lock... [2025-04-04 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:27:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:28:05 [end_date_ymd] => 2025-04-04 00:28:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:28:05' and `end` < '2025-04-04 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-04 00:28:18] Production.INFO: count ==645 [2025-04-04 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:28:05 - End Time 2025-04-04 00:28:05 [2025-04-04 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829170', 'tblTempUsageDetail_20' ) start [2025-04-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829170', 'tblTempUsageDetail_20' ) end [2025-04-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829170', 'tblTempVendorCDR_20' ) start [2025-04-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829170', 'tblTempVendorCDR_20' ) end [2025-04-04 00:28:18] Production.INFO: ProcessCDR(1,14829170,1,1,2) [2025-04-04 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829170', 'tblTempUsageDetail_20' ) start [2025-04-04 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829170', 'tblTempUsageDetail_20' ) end [2025-04-04 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:28:22] Production.INFO: ==17746== Releasing lock... [2025-04-04 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:28:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:29:05 [end_date_ymd] => 2025-04-04 00:29:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:29:05' and `end` < '2025-04-04 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-04 00:29:18] Production.INFO: count ==639 [2025-04-04 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:29:05 - End Time 2025-04-04 00:29:05 [2025-04-04 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829175', 'tblTempUsageDetail_20' ) start [2025-04-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829175', 'tblTempUsageDetail_20' ) end [2025-04-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829175', 'tblTempVendorCDR_20' ) start [2025-04-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829175', 'tblTempVendorCDR_20' ) end [2025-04-04 00:29:18] Production.INFO: ProcessCDR(1,14829175,1,1,2) [2025-04-04 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829175', 'tblTempUsageDetail_20' ) start [2025-04-04 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829175', 'tblTempUsageDetail_20' ) end [2025-04-04 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:29:22] Production.INFO: ==17816== Releasing lock... [2025-04-04 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:29:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:30:06 [end_date_ymd] => 2025-04-04 00:30:06 [RateCDR] => 1 ) [2025-04-04 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:30:06' and `end` < '2025-04-04 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:30:18] Production.INFO: count ==628 [2025-04-04 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:30:06 - End Time 2025-04-04 00:30:06 [2025-04-04 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829181', 'tblTempUsageDetail_20' ) start [2025-04-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829181', 'tblTempUsageDetail_20' ) end [2025-04-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829181', 'tblTempVendorCDR_20' ) start [2025-04-04 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829181', 'tblTempVendorCDR_20' ) end [2025-04-04 00:30:19] Production.INFO: ProcessCDR(1,14829181,1,1,2) [2025-04-04 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829181', 'tblTempUsageDetail_20' ) start [2025-04-04 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829181', 'tblTempUsageDetail_20' ) end [2025-04-04 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:30:23] Production.INFO: ==17934== Releasing lock... [2025-04-04 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:31:05 [end_date_ymd] => 2025-04-04 00:31:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:31:05' and `end` < '2025-04-04 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-04 00:31:18] Production.INFO: count ==618 [2025-04-04 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:31:05 - End Time 2025-04-04 00:31:05 [2025-04-04 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829186', 'tblTempUsageDetail_20' ) start [2025-04-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829186', 'tblTempUsageDetail_20' ) end [2025-04-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829186', 'tblTempVendorCDR_20' ) start [2025-04-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829186', 'tblTempVendorCDR_20' ) end [2025-04-04 00:31:18] Production.INFO: ProcessCDR(1,14829186,1,1,2) [2025-04-04 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829186', 'tblTempUsageDetail_20' ) start [2025-04-04 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829186', 'tblTempUsageDetail_20' ) end [2025-04-04 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:31:22] Production.INFO: ==18010== Releasing lock... [2025-04-04 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:31:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:32:05 [end_date_ymd] => 2025-04-04 00:32:05 [RateCDR] => 1 ) [2025-04-04 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:32:05' and `end` < '2025-04-04 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:32:18] Production.INFO: count ==595 [2025-04-04 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:32:05 - End Time 2025-04-04 00:32:05 [2025-04-04 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829191', 'tblTempUsageDetail_20' ) start [2025-04-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829191', 'tblTempUsageDetail_20' ) end [2025-04-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829191', 'tblTempVendorCDR_20' ) start [2025-04-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829191', 'tblTempVendorCDR_20' ) end [2025-04-04 00:32:18] Production.INFO: ProcessCDR(1,14829191,1,1,2) [2025-04-04 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829191', 'tblTempUsageDetail_20' ) start [2025-04-04 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829191', 'tblTempUsageDetail_20' ) end [2025-04-04 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:32:22] Production.INFO: ==18084== Releasing lock... [2025-04-04 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:32:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:33:06 [end_date_ymd] => 2025-04-04 00:33:06 [RateCDR] => 1 ) [2025-04-04 00:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:33:06' and `end` < '2025-04-04 00:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:33:18] Production.INFO: count ==579 [2025-04-04 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:33:06 - End Time 2025-04-04 00:33:06 [2025-04-04 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829196', 'tblTempUsageDetail_20' ) start [2025-04-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829196', 'tblTempUsageDetail_20' ) end [2025-04-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829196', 'tblTempVendorCDR_20' ) start [2025-04-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829196', 'tblTempVendorCDR_20' ) end [2025-04-04 00:33:18] Production.INFO: ProcessCDR(1,14829196,1,1,2) [2025-04-04 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829196', 'tblTempUsageDetail_20' ) start [2025-04-04 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829196', 'tblTempUsageDetail_20' ) end [2025-04-04 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:33:22] Production.INFO: ==18159== Releasing lock... [2025-04-04 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:33:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:34:06 [end_date_ymd] => 2025-04-04 00:34:06 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:34:06' and `end` < '2025-04-04 00: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-04 00:34:18] Production.INFO: count ==578 [2025-04-04 00:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:34:06 - End Time 2025-04-04 00:34:06 [2025-04-04 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829201', 'tblTempUsageDetail_20' ) start [2025-04-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829201', 'tblTempUsageDetail_20' ) end [2025-04-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829201', 'tblTempVendorCDR_20' ) start [2025-04-04 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829201', 'tblTempVendorCDR_20' ) end [2025-04-04 00:34:19] Production.INFO: ProcessCDR(1,14829201,1,1,2) [2025-04-04 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829201', 'tblTempUsageDetail_20' ) start [2025-04-04 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829201', 'tblTempUsageDetail_20' ) end [2025-04-04 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:34:22] Production.INFO: ==18235== Releasing lock... [2025-04-04 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:34:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:35:06 [end_date_ymd] => 2025-04-04 00:35:06 [RateCDR] => 1 ) [2025-04-04 00:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:35:06' and `end` < '2025-04-04 00:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:35:18] Production.INFO: count ==578 [2025-04-04 00:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:35:06 - End Time 2025-04-04 00:35:06 [2025-04-04 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829206', 'tblTempUsageDetail_20' ) start [2025-04-04 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829206', 'tblTempUsageDetail_20' ) end [2025-04-04 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829206', 'tblTempVendorCDR_20' ) start [2025-04-04 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829206', 'tblTempVendorCDR_20' ) end [2025-04-04 00:35:19] Production.INFO: ProcessCDR(1,14829206,1,1,2) [2025-04-04 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829206', 'tblTempUsageDetail_20' ) start [2025-04-04 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829206', 'tblTempUsageDetail_20' ) end [2025-04-04 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:35:22] Production.INFO: ==18307== Releasing lock... [2025-04-04 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:35:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:36:06 [end_date_ymd] => 2025-04-04 00:36:06 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:36:06' and `end` < '2025-04-04 00: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-04 00:36:18] Production.INFO: count ==579 [2025-04-04 00:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:36:06 - End Time 2025-04-04 00:36:06 [2025-04-04 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829211', 'tblTempUsageDetail_20' ) start [2025-04-04 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829211', 'tblTempUsageDetail_20' ) end [2025-04-04 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829211', 'tblTempVendorCDR_20' ) start [2025-04-04 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829211', 'tblTempVendorCDR_20' ) end [2025-04-04 00:36:19] Production.INFO: ProcessCDR(1,14829211,1,1,2) [2025-04-04 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829211', 'tblTempUsageDetail_20' ) start [2025-04-04 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829211', 'tblTempUsageDetail_20' ) end [2025-04-04 00:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:36:24] Production.INFO: ==18384== Releasing lock... [2025-04-04 00:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:36:24] Production.INFO: 33 MB #Memory Used# [2025-04-04 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:37:05 [end_date_ymd] => 2025-04-04 00:37:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:37:05' and `end` < '2025-04-04 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-04 00:37:18] Production.INFO: count ==582 [2025-04-04 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:37:05 - End Time 2025-04-04 00:37:05 [2025-04-04 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829216', 'tblTempUsageDetail_20' ) start [2025-04-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829216', 'tblTempUsageDetail_20' ) end [2025-04-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829216', 'tblTempVendorCDR_20' ) start [2025-04-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829216', 'tblTempVendorCDR_20' ) end [2025-04-04 00:37:18] Production.INFO: ProcessCDR(1,14829216,1,1,2) [2025-04-04 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829216', 'tblTempUsageDetail_20' ) start [2025-04-04 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829216', 'tblTempUsageDetail_20' ) end [2025-04-04 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:37:22] Production.INFO: ==18452== Releasing lock... [2025-04-04 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:38:06 [end_date_ymd] => 2025-04-04 00:38:06 [RateCDR] => 1 ) [2025-04-04 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-03 21:38:06' and `end` < '2025-04-04 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-04 00:38:18] Production.INFO: count ==582 [2025-04-04 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:38:06 - End Time 2025-04-04 00:38:06 [2025-04-04 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829221', 'tblTempUsageDetail_20' ) start [2025-04-04 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829221', 'tblTempUsageDetail_20' ) end [2025-04-04 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829221', 'tblTempVendorCDR_20' ) start [2025-04-04 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829221', 'tblTempVendorCDR_20' ) end [2025-04-04 00:38:19] Production.INFO: ProcessCDR(1,14829221,1,1,2) [2025-04-04 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829221', 'tblTempUsageDetail_20' ) start [2025-04-04 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829221', 'tblTempUsageDetail_20' ) end [2025-04-04 00:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:38:24] Production.INFO: ==18531== Releasing lock... [2025-04-04 00:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:38:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:39:05 [end_date_ymd] => 2025-04-04 00:39:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:39:05' and `end` < '2025-04-04 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-04 00:39:18] Production.INFO: count ==579 [2025-04-04 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:39:05 - End Time 2025-04-04 00:39:05 [2025-04-04 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829226', 'tblTempUsageDetail_20' ) start [2025-04-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829226', 'tblTempUsageDetail_20' ) end [2025-04-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829226', 'tblTempVendorCDR_20' ) start [2025-04-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829226', 'tblTempVendorCDR_20' ) end [2025-04-04 00:39:18] Production.INFO: ProcessCDR(1,14829226,1,1,2) [2025-04-04 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829226', 'tblTempUsageDetail_20' ) start [2025-04-04 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829226', 'tblTempUsageDetail_20' ) end [2025-04-04 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:39:22] Production.INFO: ==18616== Releasing lock... [2025-04-04 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:39:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:40:07 [end_date_ymd] => 2025-04-04 00:40:07 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:40:07' and `end` < '2025-04-04 00: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-04 00:40:19] Production.INFO: count ==585 [2025-04-04 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:40:07 - End Time 2025-04-04 00:40:07 [2025-04-04 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829232', 'tblTempUsageDetail_20' ) start [2025-04-04 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829232', 'tblTempUsageDetail_20' ) end [2025-04-04 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829232', 'tblTempVendorCDR_20' ) start [2025-04-04 00:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829232', 'tblTempVendorCDR_20' ) end [2025-04-04 00:40:20] Production.INFO: ProcessCDR(1,14829232,1,1,2) [2025-04-04 00:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829232', 'tblTempUsageDetail_20' ) start [2025-04-04 00:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829232', 'tblTempUsageDetail_20' ) end [2025-04-04 00:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:40:25] Production.INFO: ==18693== Releasing lock... [2025-04-04 00:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:40:25] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:41:05 [end_date_ymd] => 2025-04-04 00:41:05 [RateCDR] => 1 ) [2025-04-04 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:41:05' and `end` < '2025-04-04 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:41:18] Production.INFO: count ==586 [2025-04-04 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:41:05 - End Time 2025-04-04 00:41:05 [2025-04-04 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829237', 'tblTempUsageDetail_20' ) start [2025-04-04 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829237', 'tblTempUsageDetail_20' ) end [2025-04-04 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829237', 'tblTempVendorCDR_20' ) start [2025-04-04 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829237', 'tblTempVendorCDR_20' ) end [2025-04-04 00:41:18] Production.INFO: ProcessCDR(1,14829237,1,1,2) [2025-04-04 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829237', 'tblTempUsageDetail_20' ) start [2025-04-04 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829237', 'tblTempUsageDetail_20' ) end [2025-04-04 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:41:22] Production.INFO: ==18777== Releasing lock... [2025-04-04 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:41:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:42:06 [end_date_ymd] => 2025-04-04 00:42:06 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:42:06' and `end` < '2025-04-04 00: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-04 00:42:19] Production.INFO: count ==586 [2025-04-04 00:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:42:06 - End Time 2025-04-04 00:42:06 [2025-04-04 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829242', 'tblTempUsageDetail_20' ) start [2025-04-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829242', 'tblTempUsageDetail_20' ) end [2025-04-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829242', 'tblTempVendorCDR_20' ) start [2025-04-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829242', 'tblTempVendorCDR_20' ) end [2025-04-04 00:42:19] Production.INFO: ProcessCDR(1,14829242,1,1,2) [2025-04-04 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829242', 'tblTempUsageDetail_20' ) start [2025-04-04 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829242', 'tblTempUsageDetail_20' ) end [2025-04-04 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:42:22] Production.INFO: ==18859== Releasing lock... [2025-04-04 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:42:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:43:05 [end_date_ymd] => 2025-04-04 00:43:05 [RateCDR] => 1 ) [2025-04-04 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:43:05' and `end` < '2025-04-04 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:43:18] Production.INFO: count ==584 [2025-04-04 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:43:05 - End Time 2025-04-04 00:43:05 [2025-04-04 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829247', 'tblTempUsageDetail_20' ) start [2025-04-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829247', 'tblTempUsageDetail_20' ) end [2025-04-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829247', 'tblTempVendorCDR_20' ) start [2025-04-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829247', 'tblTempVendorCDR_20' ) end [2025-04-04 00:43:18] Production.INFO: ProcessCDR(1,14829247,1,1,2) [2025-04-04 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829247', 'tblTempUsageDetail_20' ) start [2025-04-04 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829247', 'tblTempUsageDetail_20' ) end [2025-04-04 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:43:22] Production.INFO: ==18937== Releasing lock... [2025-04-04 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:44:06 [end_date_ymd] => 2025-04-04 00:44:06 [RateCDR] => 1 ) [2025-04-04 00: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-03 21:44:06' and `end` < '2025-04-04 00: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-04 00:44:19] Production.INFO: count ==583 [2025-04-04 00:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:44:06 - End Time 2025-04-04 00:44:06 [2025-04-04 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829252', 'tblTempUsageDetail_20' ) start [2025-04-04 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829252', 'tblTempUsageDetail_20' ) end [2025-04-04 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829252', 'tblTempVendorCDR_20' ) start [2025-04-04 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829252', 'tblTempVendorCDR_20' ) end [2025-04-04 00:44:19] Production.INFO: ProcessCDR(1,14829252,1,1,2) [2025-04-04 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829252', 'tblTempUsageDetail_20' ) start [2025-04-04 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829252', 'tblTempUsageDetail_20' ) end [2025-04-04 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:44:22] Production.INFO: ==19018== Releasing lock... [2025-04-04 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:45:05 [end_date_ymd] => 2025-04-04 00:45:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:45:05' and `end` < '2025-04-04 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-04 00:45:18] Production.INFO: count ==573 [2025-04-04 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:45:05 - End Time 2025-04-04 00:45:05 [2025-04-04 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829257', 'tblTempUsageDetail_20' ) start [2025-04-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829257', 'tblTempUsageDetail_20' ) end [2025-04-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829257', 'tblTempVendorCDR_20' ) start [2025-04-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829257', 'tblTempVendorCDR_20' ) end [2025-04-04 00:45:18] Production.INFO: ProcessCDR(1,14829257,1,1,2) [2025-04-04 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829257', 'tblTempUsageDetail_20' ) start [2025-04-04 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829257', 'tblTempUsageDetail_20' ) end [2025-04-04 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:45:22] Production.INFO: ==19140== Releasing lock... [2025-04-04 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:46:06 [end_date_ymd] => 2025-04-04 00:46:06 [RateCDR] => 1 ) [2025-04-04 00:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:46:06' and `end` < '2025-04-04 00:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:46:18] Production.INFO: count ==573 [2025-04-04 00:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:46:06 - End Time 2025-04-04 00:46:06 [2025-04-04 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829262', 'tblTempUsageDetail_20' ) start [2025-04-04 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829262', 'tblTempUsageDetail_20' ) end [2025-04-04 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829262', 'tblTempVendorCDR_20' ) start [2025-04-04 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829262', 'tblTempVendorCDR_20' ) end [2025-04-04 00:46:19] Production.INFO: ProcessCDR(1,14829262,1,1,2) [2025-04-04 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829262', 'tblTempUsageDetail_20' ) start [2025-04-04 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829262', 'tblTempUsageDetail_20' ) end [2025-04-04 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:46:22] Production.INFO: ==19216== Releasing lock... [2025-04-04 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:47:05 [end_date_ymd] => 2025-04-04 00:47:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:47:05' and `end` < '2025-04-04 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-04 00:47:18] Production.INFO: count ==573 [2025-04-04 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:47:05 - End Time 2025-04-04 00:47:05 [2025-04-04 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829267', 'tblTempUsageDetail_20' ) start [2025-04-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829267', 'tblTempUsageDetail_20' ) end [2025-04-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829267', 'tblTempVendorCDR_20' ) start [2025-04-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829267', 'tblTempVendorCDR_20' ) end [2025-04-04 00:47:18] Production.INFO: ProcessCDR(1,14829267,1,1,2) [2025-04-04 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829267', 'tblTempUsageDetail_20' ) start [2025-04-04 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829267', 'tblTempUsageDetail_20' ) end [2025-04-04 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:47:22] Production.INFO: ==19293== Releasing lock... [2025-04-04 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:48:06 [end_date_ymd] => 2025-04-04 00:48:06 [RateCDR] => 1 ) [2025-04-04 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:48:06' and `end` < '2025-04-04 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:48:18] Production.INFO: count ==570 [2025-04-04 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:48:06 - End Time 2025-04-04 00:48:06 [2025-04-04 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829272', 'tblTempUsageDetail_20' ) start [2025-04-04 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829272', 'tblTempUsageDetail_20' ) end [2025-04-04 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829272', 'tblTempVendorCDR_20' ) start [2025-04-04 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829272', 'tblTempVendorCDR_20' ) end [2025-04-04 00:48:19] Production.INFO: ProcessCDR(1,14829272,1,1,2) [2025-04-04 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829272', 'tblTempUsageDetail_20' ) start [2025-04-04 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829272', 'tblTempUsageDetail_20' ) end [2025-04-04 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:48:22] Production.INFO: ==19372== Releasing lock... [2025-04-04 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:49:04 [end_date_ymd] => 2025-04-04 00:49:04 [RateCDR] => 1 ) [2025-04-04 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:49:04' and `end` < '2025-04-04 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:49:17] Production.INFO: count ==568 [2025-04-04 00:49:17] Production.ERROR: pbx CDR StartTime 2025-04-03 21:49:04 - End Time 2025-04-04 00:49:04 [2025-04-04 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829277', 'tblTempUsageDetail_20' ) start [2025-04-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829277', 'tblTempUsageDetail_20' ) end [2025-04-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829277', 'tblTempVendorCDR_20' ) start [2025-04-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829277', 'tblTempVendorCDR_20' ) end [2025-04-04 00:49:17] Production.INFO: ProcessCDR(1,14829277,1,1,2) [2025-04-04 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829277', 'tblTempUsageDetail_20' ) start [2025-04-04 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829277', 'tblTempUsageDetail_20' ) end [2025-04-04 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:49:21] Production.INFO: ==19453== Releasing lock... [2025-04-04 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:50:06 [end_date_ymd] => 2025-04-04 00:50:06 [RateCDR] => 1 ) [2025-04-04 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-03 21:50:06' and `end` < '2025-04-04 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-04 00:50:19] Production.INFO: count ==576 [2025-04-04 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:50:06 - End Time 2025-04-04 00:50:06 [2025-04-04 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829283', 'tblTempUsageDetail_20' ) start [2025-04-04 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829283', 'tblTempUsageDetail_20' ) end [2025-04-04 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829283', 'tblTempVendorCDR_20' ) start [2025-04-04 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829283', 'tblTempVendorCDR_20' ) end [2025-04-04 00:50:19] Production.INFO: ProcessCDR(1,14829283,1,1,2) [2025-04-04 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829283', 'tblTempUsageDetail_20' ) start [2025-04-04 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829283', 'tblTempUsageDetail_20' ) end [2025-04-04 00:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:50:24] Production.INFO: ==19529== Releasing lock... [2025-04-04 00:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:50:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:51:06 [end_date_ymd] => 2025-04-04 00:51:06 [RateCDR] => 1 ) [2025-04-04 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:51:06' and `end` < '2025-04-04 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:51:18] Production.INFO: count ==574 [2025-04-04 00:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:51:06 - End Time 2025-04-04 00:51:06 [2025-04-04 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829288', 'tblTempUsageDetail_20' ) start [2025-04-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829288', 'tblTempUsageDetail_20' ) end [2025-04-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829288', 'tblTempVendorCDR_20' ) start [2025-04-04 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829288', 'tblTempVendorCDR_20' ) end [2025-04-04 00:51:19] Production.INFO: ProcessCDR(1,14829288,1,1,2) [2025-04-04 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829288', 'tblTempUsageDetail_20' ) start [2025-04-04 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829288', 'tblTempUsageDetail_20' ) end [2025-04-04 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:51:22] Production.INFO: ==19608== Releasing lock... [2025-04-04 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:51:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:52:06 [end_date_ymd] => 2025-04-04 00:52:06 [RateCDR] => 1 ) [2025-04-04 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:52:06' and `end` < '2025-04-04 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:52:19] Production.INFO: count ==573 [2025-04-04 00:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:52:06 - End Time 2025-04-04 00:52:06 [2025-04-04 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829293', 'tblTempUsageDetail_20' ) start [2025-04-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829293', 'tblTempUsageDetail_20' ) end [2025-04-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829293', 'tblTempVendorCDR_20' ) start [2025-04-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829293', 'tblTempVendorCDR_20' ) end [2025-04-04 00:52:19] Production.INFO: ProcessCDR(1,14829293,1,1,2) [2025-04-04 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829293', 'tblTempUsageDetail_20' ) start [2025-04-04 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829293', 'tblTempUsageDetail_20' ) end [2025-04-04 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:52:22] Production.INFO: ==19684== Releasing lock... [2025-04-04 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:52:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:53:05 [end_date_ymd] => 2025-04-04 00:53:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:53:05' and `end` < '2025-04-04 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-04 00:53:18] Production.INFO: count ==568 [2025-04-04 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:53:05 - End Time 2025-04-04 00:53:05 [2025-04-04 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829298', 'tblTempUsageDetail_20' ) start [2025-04-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829298', 'tblTempUsageDetail_20' ) end [2025-04-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829298', 'tblTempVendorCDR_20' ) start [2025-04-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829298', 'tblTempVendorCDR_20' ) end [2025-04-04 00:53:18] Production.INFO: ProcessCDR(1,14829298,1,1,2) [2025-04-04 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829298', 'tblTempUsageDetail_20' ) start [2025-04-04 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829298', 'tblTempUsageDetail_20' ) end [2025-04-04 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:53:22] Production.INFO: ==19764== Releasing lock... [2025-04-04 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:54:05 [end_date_ymd] => 2025-04-04 00:54:05 [RateCDR] => 1 ) [2025-04-04 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:54:05' and `end` < '2025-04-04 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:54:18] Production.INFO: count ==550 [2025-04-04 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:54:05 - End Time 2025-04-04 00:54:05 [2025-04-04 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829303', 'tblTempUsageDetail_20' ) start [2025-04-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829303', 'tblTempUsageDetail_20' ) end [2025-04-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829303', 'tblTempVendorCDR_20' ) start [2025-04-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829303', 'tblTempVendorCDR_20' ) end [2025-04-04 00:54:18] Production.INFO: ProcessCDR(1,14829303,1,1,2) [2025-04-04 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829303', 'tblTempUsageDetail_20' ) start [2025-04-04 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829303', 'tblTempUsageDetail_20' ) end [2025-04-04 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:54:22] Production.INFO: ==19848== Releasing lock... [2025-04-04 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:55:06 [end_date_ymd] => 2025-04-04 00:55:06 [RateCDR] => 1 ) [2025-04-04 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:55:06' and `end` < '2025-04-04 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:55:18] Production.INFO: count ==549 [2025-04-04 00:55:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:55:06 - End Time 2025-04-04 00:55:06 [2025-04-04 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829308', 'tblTempUsageDetail_20' ) start [2025-04-04 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829308', 'tblTempUsageDetail_20' ) end [2025-04-04 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829308', 'tblTempVendorCDR_20' ) start [2025-04-04 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829308', 'tblTempVendorCDR_20' ) end [2025-04-04 00:55:19] Production.INFO: ProcessCDR(1,14829308,1,1,2) [2025-04-04 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829308', 'tblTempUsageDetail_20' ) start [2025-04-04 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829308', 'tblTempUsageDetail_20' ) end [2025-04-04 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:55:22] Production.INFO: ==19927== Releasing lock... [2025-04-04 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:56:05 [end_date_ymd] => 2025-04-04 00:56:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:56:05' and `end` < '2025-04-04 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-04 00:56:18] Production.INFO: count ==545 [2025-04-04 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:56:05 - End Time 2025-04-04 00:56:05 [2025-04-04 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829313', 'tblTempUsageDetail_20' ) start [2025-04-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829313', 'tblTempUsageDetail_20' ) end [2025-04-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829313', 'tblTempVendorCDR_20' ) start [2025-04-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829313', 'tblTempVendorCDR_20' ) end [2025-04-04 00:56:18] Production.INFO: ProcessCDR(1,14829313,1,1,2) [2025-04-04 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829313', 'tblTempUsageDetail_20' ) start [2025-04-04 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829313', 'tblTempUsageDetail_20' ) end [2025-04-04 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:56:23] Production.INFO: ==20006== Releasing lock... [2025-04-04 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:57:06 [end_date_ymd] => 2025-04-04 00:57:06 [RateCDR] => 1 ) [2025-04-04 00:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:57:06' and `end` < '2025-04-04 00:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:57:19] Production.INFO: count ==538 [2025-04-04 00:57:19] Production.ERROR: pbx CDR StartTime 2025-04-03 21:57:06 - End Time 2025-04-04 00:57:06 [2025-04-04 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829318', 'tblTempUsageDetail_20' ) start [2025-04-04 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829318', 'tblTempUsageDetail_20' ) end [2025-04-04 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829318', 'tblTempVendorCDR_20' ) start [2025-04-04 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829318', 'tblTempVendorCDR_20' ) end [2025-04-04 00:57:19] Production.INFO: ProcessCDR(1,14829318,1,1,2) [2025-04-04 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829318', 'tblTempUsageDetail_20' ) start [2025-04-04 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829318', 'tblTempUsageDetail_20' ) end [2025-04-04 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:57:22] Production.INFO: ==20092== Releasing lock... [2025-04-04 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:58:05 [end_date_ymd] => 2025-04-04 00:58:05 [RateCDR] => 1 ) [2025-04-04 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 21:58:05' and `end` < '2025-04-04 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 00:58:18] Production.INFO: count ==533 [2025-04-04 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:58:05 - End Time 2025-04-04 00:58:05 [2025-04-04 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829323', 'tblTempUsageDetail_20' ) start [2025-04-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829323', 'tblTempUsageDetail_20' ) end [2025-04-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829323', 'tblTempVendorCDR_20' ) start [2025-04-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829323', 'tblTempVendorCDR_20' ) end [2025-04-04 00:58:18] Production.INFO: ProcessCDR(1,14829323,1,1,2) [2025-04-04 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829323', 'tblTempUsageDetail_20' ) start [2025-04-04 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829323', 'tblTempUsageDetail_20' ) end [2025-04-04 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:58:22] Production.INFO: ==20172== Releasing lock... [2025-04-04 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:58:22] Production.INFO: 32 MB #Memory Used# [2025-04-04 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 21:59:05 [end_date_ymd] => 2025-04-04 00:59:05 [RateCDR] => 1 ) [2025-04-04 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-03 21:59:05' and `end` < '2025-04-04 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-04 00:59:18] Production.INFO: count ==533 [2025-04-04 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-03 21:59:05 - End Time 2025-04-04 00:59:05 [2025-04-04 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829328', 'tblTempUsageDetail_20' ) start [2025-04-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829328', 'tblTempUsageDetail_20' ) end [2025-04-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829328', 'tblTempVendorCDR_20' ) start [2025-04-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829328', 'tblTempVendorCDR_20' ) end [2025-04-04 00:59:18] Production.INFO: ProcessCDR(1,14829328,1,1,2) [2025-04-04 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829328', 'tblTempUsageDetail_20' ) start [2025-04-04 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829328', 'tblTempUsageDetail_20' ) end [2025-04-04 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 00:59:22] Production.INFO: ==20252== Releasing lock... [2025-04-04 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 00:59:22] Production.INFO: 32 MB #Memory Used# [2025-04-04 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:00:06 [end_date_ymd] => 2025-04-04 01:00:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:00:06' and `end` < '2025-04-04 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-04 01:00:19] Production.INFO: count ==541 [2025-04-04 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:00:06 - End Time 2025-04-04 01:00:06 [2025-04-04 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829333', 'tblTempUsageDetail_20' ) start [2025-04-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829333', 'tblTempUsageDetail_20' ) end [2025-04-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829333', 'tblTempVendorCDR_20' ) start [2025-04-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829333', 'tblTempVendorCDR_20' ) end [2025-04-04 01:00:19] Production.INFO: ProcessCDR(1,14829333,1,1,2) [2025-04-04 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829333', 'tblTempUsageDetail_20' ) start [2025-04-04 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829333', 'tblTempUsageDetail_20' ) end [2025-04-04 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:00:22] Production.INFO: ==20335== Releasing lock... [2025-04-04 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:01:05 [end_date_ymd] => 2025-04-04 01:01:05 [RateCDR] => 1 ) [2025-04-04 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:01:05' and `end` < '2025-04-04 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:01:18] Production.INFO: count ==547 [2025-04-04 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:01:05 - End Time 2025-04-04 01:01:05 [2025-04-04 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829339', 'tblTempUsageDetail_20' ) start [2025-04-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829339', 'tblTempUsageDetail_20' ) end [2025-04-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829339', 'tblTempVendorCDR_20' ) start [2025-04-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829339', 'tblTempVendorCDR_20' ) end [2025-04-04 01:01:18] Production.INFO: ProcessCDR(1,14829339,1,1,2) [2025-04-04 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829339', 'tblTempUsageDetail_20' ) start [2025-04-04 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829339', 'tblTempUsageDetail_20' ) end [2025-04-04 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:01:22] Production.INFO: ==20466== Releasing lock... [2025-04-04 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:01:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:02:05 [end_date_ymd] => 2025-04-04 01:02:05 [RateCDR] => 1 ) [2025-04-04 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:02:05' and `end` < '2025-04-04 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:02:18] Production.INFO: count ==527 [2025-04-04 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:02:05 - End Time 2025-04-04 01:02:05 [2025-04-04 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829344', 'tblTempUsageDetail_20' ) start [2025-04-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829344', 'tblTempUsageDetail_20' ) end [2025-04-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829344', 'tblTempVendorCDR_20' ) start [2025-04-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829344', 'tblTempVendorCDR_20' ) end [2025-04-04 01:02:18] Production.INFO: ProcessCDR(1,14829344,1,1,2) [2025-04-04 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829344', 'tblTempUsageDetail_20' ) start [2025-04-04 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829344', 'tblTempUsageDetail_20' ) end [2025-04-04 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:02:21] Production.INFO: ==20545== Releasing lock... [2025-04-04 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:03:06 [end_date_ymd] => 2025-04-04 01:03:06 [RateCDR] => 1 ) [2025-04-04 01: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-03 22:03:06' and `end` < '2025-04-04 01: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-04 01:03:18] Production.INFO: count ==527 [2025-04-04 01:03:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:03:06 - End Time 2025-04-04 01:03:06 [2025-04-04 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829349', 'tblTempUsageDetail_20' ) start [2025-04-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829349', 'tblTempUsageDetail_20' ) end [2025-04-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829349', 'tblTempVendorCDR_20' ) start [2025-04-04 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829349', 'tblTempVendorCDR_20' ) end [2025-04-04 01:03:19] Production.INFO: ProcessCDR(1,14829349,1,1,2) [2025-04-04 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829349', 'tblTempUsageDetail_20' ) start [2025-04-04 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829349', 'tblTempUsageDetail_20' ) end [2025-04-04 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:03:22] Production.INFO: ==20628== Releasing lock... [2025-04-04 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:03:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:04:05 [end_date_ymd] => 2025-04-04 01:04:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:04:05' and `end` < '2025-04-04 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-04 01:04:18] Production.INFO: count ==520 [2025-04-04 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:04:05 - End Time 2025-04-04 01:04:05 [2025-04-04 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829354', 'tblTempUsageDetail_20' ) start [2025-04-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829354', 'tblTempUsageDetail_20' ) end [2025-04-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829354', 'tblTempVendorCDR_20' ) start [2025-04-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829354', 'tblTempVendorCDR_20' ) end [2025-04-04 01:04:18] Production.INFO: ProcessCDR(1,14829354,1,1,2) [2025-04-04 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829354', 'tblTempUsageDetail_20' ) start [2025-04-04 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829354', 'tblTempUsageDetail_20' ) end [2025-04-04 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:04:21] Production.INFO: ==20710== Releasing lock... [2025-04-04 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:04:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:05:05 [end_date_ymd] => 2025-04-04 01:05:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:05:05' and `end` < '2025-04-04 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-04 01:05:18] Production.INFO: count ==520 [2025-04-04 01:05:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:05:05 - End Time 2025-04-04 01:05:05 [2025-04-04 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829359', 'tblTempUsageDetail_20' ) start [2025-04-04 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829359', 'tblTempUsageDetail_20' ) end [2025-04-04 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829359', 'tblTempVendorCDR_20' ) start [2025-04-04 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829359', 'tblTempVendorCDR_20' ) end [2025-04-04 01:05:19] Production.INFO: ProcessCDR(1,14829359,1,1,2) [2025-04-04 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829359', 'tblTempUsageDetail_20' ) start [2025-04-04 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829359', 'tblTempUsageDetail_20' ) end [2025-04-04 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:05:22] Production.INFO: ==20785== Releasing lock... [2025-04-04 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:05:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:06:06 [end_date_ymd] => 2025-04-04 01:06:06 [RateCDR] => 1 ) [2025-04-04 01: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-03 22:06:06' and `end` < '2025-04-04 01: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-04 01:06:18] Production.INFO: count ==536 [2025-04-04 01:06:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:06:06 - End Time 2025-04-04 01:06:06 [2025-04-04 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829364', 'tblTempUsageDetail_20' ) start [2025-04-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829364', 'tblTempUsageDetail_20' ) end [2025-04-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829364', 'tblTempVendorCDR_20' ) start [2025-04-04 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829364', 'tblTempVendorCDR_20' ) end [2025-04-04 01:06:19] Production.INFO: ProcessCDR(1,14829364,1,1,2) [2025-04-04 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829364', 'tblTempUsageDetail_20' ) start [2025-04-04 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829364', 'tblTempUsageDetail_20' ) end [2025-04-04 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:06:22] Production.INFO: ==20865== Releasing lock... [2025-04-04 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:06:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:07:06 [end_date_ymd] => 2025-04-04 01:07:06 [RateCDR] => 1 ) [2025-04-04 01: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-03 22:07:06' and `end` < '2025-04-04 01: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-04 01:07:19] Production.INFO: count ==529 [2025-04-04 01:07:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:07:06 - End Time 2025-04-04 01:07:06 [2025-04-04 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829369', 'tblTempUsageDetail_20' ) start [2025-04-04 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829369', 'tblTempUsageDetail_20' ) end [2025-04-04 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829369', 'tblTempVendorCDR_20' ) start [2025-04-04 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829369', 'tblTempVendorCDR_20' ) end [2025-04-04 01:07:19] Production.INFO: ProcessCDR(1,14829369,1,1,2) [2025-04-04 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829369', 'tblTempUsageDetail_20' ) start [2025-04-04 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829369', 'tblTempUsageDetail_20' ) end [2025-04-04 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:07:23] Production.INFO: ==20943== Releasing lock... [2025-04-04 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:07:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:08:05 [end_date_ymd] => 2025-04-04 01:08:05 [RateCDR] => 1 ) [2025-04-04 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:08:05' and `end` < '2025-04-04 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:08:18] Production.INFO: count ==533 [2025-04-04 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:08:05 - End Time 2025-04-04 01:08:05 [2025-04-04 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829374', 'tblTempUsageDetail_20' ) start [2025-04-04 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829374', 'tblTempUsageDetail_20' ) end [2025-04-04 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829374', 'tblTempVendorCDR_20' ) start [2025-04-04 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829374', 'tblTempVendorCDR_20' ) end [2025-04-04 01:08:18] Production.INFO: ProcessCDR(1,14829374,1,1,2) [2025-04-04 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829374', 'tblTempUsageDetail_20' ) start [2025-04-04 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829374', 'tblTempUsageDetail_20' ) end [2025-04-04 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:08:22] Production.INFO: ==21020== Releasing lock... [2025-04-04 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:08:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:09:06 [end_date_ymd] => 2025-04-04 01:09:06 [RateCDR] => 1 ) [2025-04-04 01: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-03 22:09:06' and `end` < '2025-04-04 01: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-04 01:09:18] Production.INFO: count ==536 [2025-04-04 01:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:09:06 - End Time 2025-04-04 01:09:06 [2025-04-04 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829379', 'tblTempUsageDetail_20' ) start [2025-04-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829379', 'tblTempUsageDetail_20' ) end [2025-04-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829379', 'tblTempVendorCDR_20' ) start [2025-04-04 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829379', 'tblTempVendorCDR_20' ) end [2025-04-04 01:09:19] Production.INFO: ProcessCDR(1,14829379,1,1,2) [2025-04-04 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829379', 'tblTempUsageDetail_20' ) start [2025-04-04 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829379', 'tblTempUsageDetail_20' ) end [2025-04-04 01:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:09:24] Production.INFO: ==21100== Releasing lock... [2025-04-04 01:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:09:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:10:06 [end_date_ymd] => 2025-04-04 01:10:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:10:06' and `end` < '2025-04-04 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-04 01:10:19] Production.INFO: count ==547 [2025-04-04 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:10:06 - End Time 2025-04-04 01:10:06 [2025-04-04 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829385', 'tblTempUsageDetail_20' ) start [2025-04-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829385', 'tblTempUsageDetail_20' ) end [2025-04-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829385', 'tblTempVendorCDR_20' ) start [2025-04-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829385', 'tblTempVendorCDR_20' ) end [2025-04-04 01:10:19] Production.INFO: ProcessCDR(1,14829385,1,1,2) [2025-04-04 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829385', 'tblTempUsageDetail_20' ) start [2025-04-04 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829385', 'tblTempUsageDetail_20' ) end [2025-04-04 01:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:10:24] Production.INFO: ==21178== Releasing lock... [2025-04-04 01:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:10:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:11:05 [end_date_ymd] => 2025-04-04 01:11:05 [RateCDR] => 1 ) [2025-04-04 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:11:05' and `end` < '2025-04-04 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:11:18] Production.INFO: count ==545 [2025-04-04 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:11:05 - End Time 2025-04-04 01:11:05 [2025-04-04 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829390', 'tblTempUsageDetail_20' ) start [2025-04-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829390', 'tblTempUsageDetail_20' ) end [2025-04-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829390', 'tblTempVendorCDR_20' ) start [2025-04-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829390', 'tblTempVendorCDR_20' ) end [2025-04-04 01:11:18] Production.INFO: ProcessCDR(1,14829390,1,1,2) [2025-04-04 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829390', 'tblTempUsageDetail_20' ) start [2025-04-04 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829390', 'tblTempUsageDetail_20' ) end [2025-04-04 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:11:23] Production.INFO: ==21260== Releasing lock... [2025-04-04 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:11:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:12:05 [end_date_ymd] => 2025-04-04 01:12:05 [RateCDR] => 1 ) [2025-04-04 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:12:05' and `end` < '2025-04-04 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:12:18] Production.INFO: count ==544 [2025-04-04 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:12:05 - End Time 2025-04-04 01:12:05 [2025-04-04 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829395', 'tblTempUsageDetail_20' ) start [2025-04-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829395', 'tblTempUsageDetail_20' ) end [2025-04-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829395', 'tblTempVendorCDR_20' ) start [2025-04-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829395', 'tblTempVendorCDR_20' ) end [2025-04-04 01:12:18] Production.INFO: ProcessCDR(1,14829395,1,1,2) [2025-04-04 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829395', 'tblTempUsageDetail_20' ) start [2025-04-04 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829395', 'tblTempUsageDetail_20' ) end [2025-04-04 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:12:23] Production.INFO: ==21345== Releasing lock... [2025-04-04 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:12:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:13:05 [end_date_ymd] => 2025-04-04 01:13:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:13:05' and `end` < '2025-04-04 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-04 01:13:18] Production.INFO: count ==530 [2025-04-04 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:13:05 - End Time 2025-04-04 01:13:05 [2025-04-04 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829400', 'tblTempUsageDetail_20' ) start [2025-04-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829400', 'tblTempUsageDetail_20' ) end [2025-04-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829400', 'tblTempVendorCDR_20' ) start [2025-04-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829400', 'tblTempVendorCDR_20' ) end [2025-04-04 01:13:18] Production.INFO: ProcessCDR(1,14829400,1,1,2) [2025-04-04 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829400', 'tblTempUsageDetail_20' ) start [2025-04-04 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829400', 'tblTempUsageDetail_20' ) end [2025-04-04 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:13:22] Production.INFO: ==21424== Releasing lock... [2025-04-04 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:14:05 [end_date_ymd] => 2025-04-04 01:14:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:14:05' and `end` < '2025-04-04 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-04 01:14:18] Production.INFO: count ==526 [2025-04-04 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:14:05 - End Time 2025-04-04 01:14:05 [2025-04-04 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829405', 'tblTempUsageDetail_20' ) start [2025-04-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829405', 'tblTempUsageDetail_20' ) end [2025-04-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829405', 'tblTempVendorCDR_20' ) start [2025-04-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829405', 'tblTempVendorCDR_20' ) end [2025-04-04 01:14:18] Production.INFO: ProcessCDR(1,14829405,1,1,2) [2025-04-04 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829405', 'tblTempUsageDetail_20' ) start [2025-04-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829405', 'tblTempUsageDetail_20' ) end [2025-04-04 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:14:21] Production.INFO: ==21504== Releasing lock... [2025-04-04 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:14:21] Production.INFO: 32 MB #Memory Used# [2025-04-04 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:15:06 [end_date_ymd] => 2025-04-04 01:15:06 [RateCDR] => 1 ) [2025-04-04 01: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-03 22:15:06' and `end` < '2025-04-04 01: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-04 01:15:18] Production.INFO: count ==520 [2025-04-04 01:15:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:15:06 - End Time 2025-04-04 01:15:06 [2025-04-04 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829410', 'tblTempUsageDetail_20' ) start [2025-04-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829410', 'tblTempUsageDetail_20' ) end [2025-04-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829410', 'tblTempVendorCDR_20' ) start [2025-04-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829410', 'tblTempVendorCDR_20' ) end [2025-04-04 01:15:19] Production.INFO: ProcessCDR(1,14829410,1,1,2) [2025-04-04 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829410', 'tblTempUsageDetail_20' ) start [2025-04-04 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829410', 'tblTempUsageDetail_20' ) end [2025-04-04 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:15:22] Production.INFO: ==21588== Releasing lock... [2025-04-04 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:15:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:16:05 [end_date_ymd] => 2025-04-04 01:16:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:16:05' and `end` < '2025-04-04 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-04 01:16:18] Production.INFO: count ==520 [2025-04-04 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:16:05 - End Time 2025-04-04 01:16:05 [2025-04-04 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829415', 'tblTempUsageDetail_20' ) start [2025-04-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829415', 'tblTempUsageDetail_20' ) end [2025-04-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829415', 'tblTempVendorCDR_20' ) start [2025-04-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829415', 'tblTempVendorCDR_20' ) end [2025-04-04 01:16:18] Production.INFO: ProcessCDR(1,14829415,1,1,2) [2025-04-04 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829415', 'tblTempUsageDetail_20' ) start [2025-04-04 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829415', 'tblTempUsageDetail_20' ) end [2025-04-04 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:16:22] Production.INFO: ==21704== Releasing lock... [2025-04-04 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:17:05 [end_date_ymd] => 2025-04-04 01:17:05 [RateCDR] => 1 ) [2025-04-04 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:17:05' and `end` < '2025-04-04 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:17:18] Production.INFO: count ==522 [2025-04-04 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:17:05 - End Time 2025-04-04 01:17:05 [2025-04-04 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829420', 'tblTempUsageDetail_20' ) start [2025-04-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829420', 'tblTempUsageDetail_20' ) end [2025-04-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829420', 'tblTempVendorCDR_20' ) start [2025-04-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829420', 'tblTempVendorCDR_20' ) end [2025-04-04 01:17:18] Production.INFO: ProcessCDR(1,14829420,1,1,2) [2025-04-04 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829420', 'tblTempUsageDetail_20' ) start [2025-04-04 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829420', 'tblTempUsageDetail_20' ) end [2025-04-04 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:17:22] Production.INFO: ==21788== Releasing lock... [2025-04-04 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:17:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:18:05 [end_date_ymd] => 2025-04-04 01:18:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:18:05' and `end` < '2025-04-04 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-04 01:18:18] Production.INFO: count ==521 [2025-04-04 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:18:05 - End Time 2025-04-04 01:18:05 [2025-04-04 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829425', 'tblTempUsageDetail_20' ) start [2025-04-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829425', 'tblTempUsageDetail_20' ) end [2025-04-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829425', 'tblTempVendorCDR_20' ) start [2025-04-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829425', 'tblTempVendorCDR_20' ) end [2025-04-04 01:18:18] Production.INFO: ProcessCDR(1,14829425,1,1,2) [2025-04-04 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829425', 'tblTempUsageDetail_20' ) start [2025-04-04 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829425', 'tblTempUsageDetail_20' ) end [2025-04-04 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:18:21] Production.INFO: ==21876== Releasing lock... [2025-04-04 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:18:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:19:05 [end_date_ymd] => 2025-04-04 01:19:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:19:05' and `end` < '2025-04-04 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-04 01:19:18] Production.INFO: count ==519 [2025-04-04 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:19:05 - End Time 2025-04-04 01:19:05 [2025-04-04 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829430', 'tblTempUsageDetail_20' ) start [2025-04-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829430', 'tblTempUsageDetail_20' ) end [2025-04-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829430', 'tblTempVendorCDR_20' ) start [2025-04-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829430', 'tblTempVendorCDR_20' ) end [2025-04-04 01:19:18] Production.INFO: ProcessCDR(1,14829430,1,1,2) [2025-04-04 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829430', 'tblTempUsageDetail_20' ) start [2025-04-04 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829430', 'tblTempUsageDetail_20' ) end [2025-04-04 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:19:21] Production.INFO: ==21953== Releasing lock... [2025-04-04 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:20:07 [end_date_ymd] => 2025-04-04 01:20:07 [RateCDR] => 1 ) [2025-04-04 01: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-03 22:20:07' and `end` < '2025-04-04 01: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-04 01:20:19] Production.INFO: count ==531 [2025-04-04 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:20:07 - End Time 2025-04-04 01:20:07 [2025-04-04 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829436', 'tblTempUsageDetail_20' ) start [2025-04-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829436', 'tblTempUsageDetail_20' ) end [2025-04-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829436', 'tblTempVendorCDR_20' ) start [2025-04-04 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829436', 'tblTempVendorCDR_20' ) end [2025-04-04 01:20:19] Production.INFO: ProcessCDR(1,14829436,1,1,2) [2025-04-04 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829436', 'tblTempUsageDetail_20' ) start [2025-04-04 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829436', 'tblTempUsageDetail_20' ) end [2025-04-04 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:20:23] Production.INFO: ==22031== Releasing lock... [2025-04-04 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:20:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:21:05 [end_date_ymd] => 2025-04-04 01:21:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:21:05' and `end` < '2025-04-04 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-04 01:21:18] Production.INFO: count ==528 [2025-04-04 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:21:05 - End Time 2025-04-04 01:21:05 [2025-04-04 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829441', 'tblTempUsageDetail_20' ) start [2025-04-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829441', 'tblTempUsageDetail_20' ) end [2025-04-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829441', 'tblTempVendorCDR_20' ) start [2025-04-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829441', 'tblTempVendorCDR_20' ) end [2025-04-04 01:21:18] Production.INFO: ProcessCDR(1,14829441,1,1,2) [2025-04-04 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829441', 'tblTempUsageDetail_20' ) start [2025-04-04 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829441', 'tblTempUsageDetail_20' ) end [2025-04-04 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:21:22] Production.INFO: ==22121== Releasing lock... [2025-04-04 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:22:06 [end_date_ymd] => 2025-04-04 01:22:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:22:06' and `end` < '2025-04-04 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-04 01:22:18] Production.INFO: count ==528 [2025-04-04 01:22:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:22:06 - End Time 2025-04-04 01:22:06 [2025-04-04 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829446', 'tblTempUsageDetail_20' ) start [2025-04-04 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829446', 'tblTempUsageDetail_20' ) end [2025-04-04 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829446', 'tblTempVendorCDR_20' ) start [2025-04-04 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829446', 'tblTempVendorCDR_20' ) end [2025-04-04 01:22:19] Production.INFO: ProcessCDR(1,14829446,1,1,2) [2025-04-04 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829446', 'tblTempUsageDetail_20' ) start [2025-04-04 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829446', 'tblTempUsageDetail_20' ) end [2025-04-04 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:22:22] Production.INFO: ==22230== Releasing lock... [2025-04-04 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:22:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:23:05 [end_date_ymd] => 2025-04-04 01:23:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:23:05' and `end` < '2025-04-04 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-04 01:23:18] Production.INFO: count ==521 [2025-04-04 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:23:05 - End Time 2025-04-04 01:23:05 [2025-04-04 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829451', 'tblTempUsageDetail_20' ) start [2025-04-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829451', 'tblTempUsageDetail_20' ) end [2025-04-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829451', 'tblTempVendorCDR_20' ) start [2025-04-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829451', 'tblTempVendorCDR_20' ) end [2025-04-04 01:23:18] Production.INFO: ProcessCDR(1,14829451,1,1,2) [2025-04-04 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829451', 'tblTempUsageDetail_20' ) start [2025-04-04 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829451', 'tblTempUsageDetail_20' ) end [2025-04-04 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:23:22] Production.INFO: ==22338== Releasing lock... [2025-04-04 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:24:05 [end_date_ymd] => 2025-04-04 01:24:05 [RateCDR] => 1 ) [2025-04-04 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:24:05' and `end` < '2025-04-04 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:24:18] Production.INFO: count ==508 [2025-04-04 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:24:05 - End Time 2025-04-04 01:24:05 [2025-04-04 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829456', 'tblTempUsageDetail_20' ) start [2025-04-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829456', 'tblTempUsageDetail_20' ) end [2025-04-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829456', 'tblTempVendorCDR_20' ) start [2025-04-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829456', 'tblTempVendorCDR_20' ) end [2025-04-04 01:24:18] Production.INFO: ProcessCDR(1,14829456,1,1,2) [2025-04-04 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829456', 'tblTempUsageDetail_20' ) start [2025-04-04 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829456', 'tblTempUsageDetail_20' ) end [2025-04-04 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:24:22] Production.INFO: ==22428== Releasing lock... [2025-04-04 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:24:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:25:05 [end_date_ymd] => 2025-04-04 01:25:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:25:05' and `end` < '2025-04-04 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-04 01:25:18] Production.INFO: count ==505 [2025-04-04 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:25:05 - End Time 2025-04-04 01:25:05 [2025-04-04 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829461', 'tblTempUsageDetail_20' ) start [2025-04-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829461', 'tblTempUsageDetail_20' ) end [2025-04-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829461', 'tblTempVendorCDR_20' ) start [2025-04-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829461', 'tblTempVendorCDR_20' ) end [2025-04-04 01:25:18] Production.INFO: ProcessCDR(1,14829461,1,1,2) [2025-04-04 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829461', 'tblTempUsageDetail_20' ) start [2025-04-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829461', 'tblTempUsageDetail_20' ) end [2025-04-04 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:25:21] Production.INFO: ==22504== Releasing lock... [2025-04-04 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:26:05 [end_date_ymd] => 2025-04-04 01:26:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:26:05' and `end` < '2025-04-04 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-04 01:26:18] Production.INFO: count ==507 [2025-04-04 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:26:05 - End Time 2025-04-04 01:26:05 [2025-04-04 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829466', 'tblTempUsageDetail_20' ) start [2025-04-04 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829466', 'tblTempUsageDetail_20' ) end [2025-04-04 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829466', 'tblTempVendorCDR_20' ) start [2025-04-04 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829466', 'tblTempVendorCDR_20' ) end [2025-04-04 01:26:18] Production.INFO: ProcessCDR(1,14829466,1,1,2) [2025-04-04 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829466', 'tblTempUsageDetail_20' ) start [2025-04-04 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829466', 'tblTempUsageDetail_20' ) end [2025-04-04 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:26:21] Production.INFO: ==22582== Releasing lock... [2025-04-04 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:27:05 [end_date_ymd] => 2025-04-04 01:27:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:27:05' and `end` < '2025-04-04 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-04 01:27:18] Production.INFO: count ==511 [2025-04-04 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:27:05 - End Time 2025-04-04 01:27:05 [2025-04-04 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829471', 'tblTempUsageDetail_20' ) start [2025-04-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829471', 'tblTempUsageDetail_20' ) end [2025-04-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829471', 'tblTempVendorCDR_20' ) start [2025-04-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829471', 'tblTempVendorCDR_20' ) end [2025-04-04 01:27:18] Production.INFO: ProcessCDR(1,14829471,1,1,2) [2025-04-04 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829471', 'tblTempUsageDetail_20' ) start [2025-04-04 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829471', 'tblTempUsageDetail_20' ) end [2025-04-04 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:27:22] Production.INFO: ==22660== Releasing lock... [2025-04-04 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:28:06 [end_date_ymd] => 2025-04-04 01:28:06 [RateCDR] => 1 ) [2025-04-04 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:28:06' and `end` < '2025-04-04 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:28:18] Production.INFO: count ==517 [2025-04-04 01:28:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:28:06 - End Time 2025-04-04 01:28:06 [2025-04-04 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829476', 'tblTempUsageDetail_20' ) start [2025-04-04 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829476', 'tblTempUsageDetail_20' ) end [2025-04-04 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829476', 'tblTempVendorCDR_20' ) start [2025-04-04 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829476', 'tblTempVendorCDR_20' ) end [2025-04-04 01:28:19] Production.INFO: ProcessCDR(1,14829476,1,1,2) [2025-04-04 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829476', 'tblTempUsageDetail_20' ) start [2025-04-04 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829476', 'tblTempUsageDetail_20' ) end [2025-04-04 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:28:22] Production.INFO: ==22738== Releasing lock... [2025-04-04 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:29:04 [end_date_ymd] => 2025-04-04 01:29:04 [RateCDR] => 1 ) [2025-04-04 01: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-03 22:29:04' and `end` < '2025-04-04 01: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-04 01:29:17] Production.INFO: count ==504 [2025-04-04 01:29:17] Production.ERROR: pbx CDR StartTime 2025-04-03 22:29:04 - End Time 2025-04-04 01:29:04 [2025-04-04 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829481', 'tblTempUsageDetail_20' ) start [2025-04-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829481', 'tblTempUsageDetail_20' ) end [2025-04-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829481', 'tblTempVendorCDR_20' ) start [2025-04-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829481', 'tblTempVendorCDR_20' ) end [2025-04-04 01:29:17] Production.INFO: ProcessCDR(1,14829481,1,1,2) [2025-04-04 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829481', 'tblTempUsageDetail_20' ) start [2025-04-04 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829481', 'tblTempUsageDetail_20' ) end [2025-04-04 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:29:21] Production.INFO: ==22810== Releasing lock... [2025-04-04 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:30:06 [end_date_ymd] => 2025-04-04 01:30:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:30:06' and `end` < '2025-04-04 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-04 01:30:19] Production.INFO: count ==515 [2025-04-04 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:30:06 - End Time 2025-04-04 01:30:06 [2025-04-04 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829486', 'tblTempUsageDetail_20' ) start [2025-04-04 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829486', 'tblTempUsageDetail_20' ) end [2025-04-04 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829486', 'tblTempVendorCDR_20' ) start [2025-04-04 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829486', 'tblTempVendorCDR_20' ) end [2025-04-04 01:30:19] Production.INFO: ProcessCDR(1,14829486,1,1,2) [2025-04-04 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829486', 'tblTempUsageDetail_20' ) start [2025-04-04 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829486', 'tblTempUsageDetail_20' ) end [2025-04-04 01:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:30:24] Production.INFO: ==22889== Releasing lock... [2025-04-04 01:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:30:24] Production.INFO: 33 MB #Memory Used# [2025-04-04 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:31:06 [end_date_ymd] => 2025-04-04 01:31:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:31:06' and `end` < '2025-04-04 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-04 01:31:18] Production.INFO: count ==525 [2025-04-04 01:31:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:31:06 - End Time 2025-04-04 01:31:06 [2025-04-04 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829492', 'tblTempUsageDetail_20' ) start [2025-04-04 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829492', 'tblTempUsageDetail_20' ) end [2025-04-04 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829492', 'tblTempVendorCDR_20' ) start [2025-04-04 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829492', 'tblTempVendorCDR_20' ) end [2025-04-04 01:31:19] Production.INFO: ProcessCDR(1,14829492,1,1,2) [2025-04-04 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829492', 'tblTempUsageDetail_20' ) start [2025-04-04 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829492', 'tblTempUsageDetail_20' ) end [2025-04-04 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:31:22] Production.INFO: ==22966== Releasing lock... [2025-04-04 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:32:05 [end_date_ymd] => 2025-04-04 01:32:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:32:05' and `end` < '2025-04-04 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-04 01:32:18] Production.INFO: count ==525 [2025-04-04 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:32:05 - End Time 2025-04-04 01:32:05 [2025-04-04 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829497', 'tblTempUsageDetail_20' ) start [2025-04-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829497', 'tblTempUsageDetail_20' ) end [2025-04-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829497', 'tblTempVendorCDR_20' ) start [2025-04-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829497', 'tblTempVendorCDR_20' ) end [2025-04-04 01:32:18] Production.INFO: ProcessCDR(1,14829497,1,1,2) [2025-04-04 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829497', 'tblTempUsageDetail_20' ) start [2025-04-04 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829497', 'tblTempUsageDetail_20' ) end [2025-04-04 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:32:21] Production.INFO: ==23079== Releasing lock... [2025-04-04 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:33:06 [end_date_ymd] => 2025-04-04 01:33:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:33:06' and `end` < '2025-04-04 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-04 01:33:18] Production.INFO: count ==525 [2025-04-04 01:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:33:06 - End Time 2025-04-04 01:33:06 [2025-04-04 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829502', 'tblTempUsageDetail_20' ) start [2025-04-04 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829502', 'tblTempUsageDetail_20' ) end [2025-04-04 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829502', 'tblTempVendorCDR_20' ) start [2025-04-04 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829502', 'tblTempVendorCDR_20' ) end [2025-04-04 01:33:19] Production.INFO: ProcessCDR(1,14829502,1,1,2) [2025-04-04 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829502', 'tblTempUsageDetail_20' ) start [2025-04-04 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829502', 'tblTempUsageDetail_20' ) end [2025-04-04 01:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:33:24] Production.INFO: ==23155== Releasing lock... [2025-04-04 01:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:33:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:34:05 [end_date_ymd] => 2025-04-04 01:34:05 [RateCDR] => 1 ) [2025-04-04 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:34:05' and `end` < '2025-04-04 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:34:18] Production.INFO: count ==524 [2025-04-04 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:34:05 - End Time 2025-04-04 01:34:05 [2025-04-04 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829507', 'tblTempUsageDetail_20' ) start [2025-04-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829507', 'tblTempUsageDetail_20' ) end [2025-04-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829507', 'tblTempVendorCDR_20' ) start [2025-04-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829507', 'tblTempVendorCDR_20' ) end [2025-04-04 01:34:18] Production.INFO: ProcessCDR(1,14829507,1,1,2) [2025-04-04 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829507', 'tblTempUsageDetail_20' ) start [2025-04-04 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829507', 'tblTempUsageDetail_20' ) end [2025-04-04 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:34:21] Production.INFO: ==23225== Releasing lock... [2025-04-04 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:35:05 [end_date_ymd] => 2025-04-04 01:35:05 [RateCDR] => 1 ) [2025-04-04 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:35:05' and `end` < '2025-04-04 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:35:18] Production.INFO: count ==523 [2025-04-04 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:35:05 - End Time 2025-04-04 01:35:05 [2025-04-04 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829512', 'tblTempUsageDetail_20' ) start [2025-04-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829512', 'tblTempUsageDetail_20' ) end [2025-04-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829512', 'tblTempVendorCDR_20' ) start [2025-04-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829512', 'tblTempVendorCDR_20' ) end [2025-04-04 01:35:18] Production.INFO: ProcessCDR(1,14829512,1,1,2) [2025-04-04 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829512', 'tblTempUsageDetail_20' ) start [2025-04-04 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829512', 'tblTempUsageDetail_20' ) end [2025-04-04 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:35:22] Production.INFO: ==23297== Releasing lock... [2025-04-04 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:35:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:36:05 [end_date_ymd] => 2025-04-04 01:36:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:36:05' and `end` < '2025-04-04 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-04 01:36:17] Production.INFO: count ==524 [2025-04-04 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:36:05 - End Time 2025-04-04 01:36:05 [2025-04-04 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829516', 'tblTempUsageDetail_20' ) start [2025-04-04 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829516', 'tblTempUsageDetail_20' ) end [2025-04-04 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829516', 'tblTempVendorCDR_20' ) start [2025-04-04 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829516', 'tblTempVendorCDR_20' ) end [2025-04-04 01:36:18] Production.INFO: ProcessCDR(1,14829516,1,1,2) [2025-04-04 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829516', 'tblTempUsageDetail_20' ) start [2025-04-04 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829516', 'tblTempUsageDetail_20' ) end [2025-04-04 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:36:21] Production.INFO: ==23367== Releasing lock... [2025-04-04 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:37:05 [end_date_ymd] => 2025-04-04 01:37:05 [RateCDR] => 1 ) [2025-04-04 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:37:05' and `end` < '2025-04-04 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-04 01:37:18] Production.INFO: count ==525 [2025-04-04 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:37:05 - End Time 2025-04-04 01:37:05 [2025-04-04 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829522', 'tblTempUsageDetail_20' ) start [2025-04-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829522', 'tblTempUsageDetail_20' ) end [2025-04-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829522', 'tblTempVendorCDR_20' ) start [2025-04-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829522', 'tblTempVendorCDR_20' ) end [2025-04-04 01:37:18] Production.INFO: ProcessCDR(1,14829522,1,1,2) [2025-04-04 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829522', 'tblTempUsageDetail_20' ) start [2025-04-04 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829522', 'tblTempUsageDetail_20' ) end [2025-04-04 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:37:22] Production.INFO: ==23443== Releasing lock... [2025-04-04 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:38:05 [end_date_ymd] => 2025-04-04 01:38:05 [RateCDR] => 1 ) [2025-04-04 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:38:05' and `end` < '2025-04-04 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:38:18] Production.INFO: count ==525 [2025-04-04 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:38:05 - End Time 2025-04-04 01:38:05 [2025-04-04 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829527', 'tblTempUsageDetail_20' ) start [2025-04-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829527', 'tblTempUsageDetail_20' ) end [2025-04-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829527', 'tblTempVendorCDR_20' ) start [2025-04-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829527', 'tblTempVendorCDR_20' ) end [2025-04-04 01:38:18] Production.INFO: ProcessCDR(1,14829527,1,1,2) [2025-04-04 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829527', 'tblTempUsageDetail_20' ) start [2025-04-04 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829527', 'tblTempUsageDetail_20' ) end [2025-04-04 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:38:21] Production.INFO: ==23512== Releasing lock... [2025-04-04 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:38:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:39:05 [end_date_ymd] => 2025-04-04 01:39:05 [RateCDR] => 1 ) [2025-04-04 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:39:05' and `end` < '2025-04-04 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:39:18] Production.INFO: count ==528 [2025-04-04 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:39:05 - End Time 2025-04-04 01:39:05 [2025-04-04 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829532', 'tblTempUsageDetail_20' ) start [2025-04-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829532', 'tblTempUsageDetail_20' ) end [2025-04-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829532', 'tblTempVendorCDR_20' ) start [2025-04-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829532', 'tblTempVendorCDR_20' ) end [2025-04-04 01:39:18] Production.INFO: ProcessCDR(1,14829532,1,1,2) [2025-04-04 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829532', 'tblTempUsageDetail_20' ) start [2025-04-04 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829532', 'tblTempUsageDetail_20' ) end [2025-04-04 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:39:22] Production.INFO: ==23584== Releasing lock... [2025-04-04 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:40:06 [end_date_ymd] => 2025-04-04 01:40:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:40:06' and `end` < '2025-04-04 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-04 01:40:18] Production.INFO: count ==536 [2025-04-04 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:40:06 - End Time 2025-04-04 01:40:06 [2025-04-04 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829538', 'tblTempUsageDetail_20' ) start [2025-04-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829538', 'tblTempUsageDetail_20' ) end [2025-04-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829538', 'tblTempVendorCDR_20' ) start [2025-04-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829538', 'tblTempVendorCDR_20' ) end [2025-04-04 01:40:18] Production.INFO: ProcessCDR(1,14829538,1,1,2) [2025-04-04 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829538', 'tblTempUsageDetail_20' ) start [2025-04-04 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829538', 'tblTempUsageDetail_20' ) end [2025-04-04 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:40:22] Production.INFO: ==23656== Releasing lock... [2025-04-04 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:41:05 [end_date_ymd] => 2025-04-04 01:41:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:41:05' and `end` < '2025-04-04 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-04 01:41:17] Production.INFO: count ==536 [2025-04-04 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:41:05 - End Time 2025-04-04 01:41:05 [2025-04-04 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829543', 'tblTempUsageDetail_20' ) start [2025-04-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829543', 'tblTempUsageDetail_20' ) end [2025-04-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829543', 'tblTempVendorCDR_20' ) start [2025-04-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829543', 'tblTempVendorCDR_20' ) end [2025-04-04 01:41:18] Production.INFO: ProcessCDR(1,14829543,1,1,2) [2025-04-04 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829543', 'tblTempUsageDetail_20' ) start [2025-04-04 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829543', 'tblTempUsageDetail_20' ) end [2025-04-04 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:41:21] Production.INFO: ==23729== Releasing lock... [2025-04-04 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:41:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:42:05 [end_date_ymd] => 2025-04-04 01:42:05 [RateCDR] => 1 ) [2025-04-04 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:42:05' and `end` < '2025-04-04 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:42:17] Production.INFO: count ==538 [2025-04-04 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:42:05 - End Time 2025-04-04 01:42:05 [2025-04-04 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829548', 'tblTempUsageDetail_20' ) start [2025-04-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829548', 'tblTempUsageDetail_20' ) end [2025-04-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829548', 'tblTempVendorCDR_20' ) start [2025-04-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829548', 'tblTempVendorCDR_20' ) end [2025-04-04 01:42:18] Production.INFO: ProcessCDR(1,14829548,1,1,2) [2025-04-04 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829548', 'tblTempUsageDetail_20' ) start [2025-04-04 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829548', 'tblTempUsageDetail_20' ) end [2025-04-04 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:42:21] Production.INFO: ==23803== Releasing lock... [2025-04-04 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:43:06 [end_date_ymd] => 2025-04-04 01:43:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:43:06' and `end` < '2025-04-04 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-04 01:43:18] Production.INFO: count ==553 [2025-04-04 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:43:06 - End Time 2025-04-04 01:43:06 [2025-04-04 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829553', 'tblTempUsageDetail_20' ) start [2025-04-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829553', 'tblTempUsageDetail_20' ) end [2025-04-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829553', 'tblTempVendorCDR_20' ) start [2025-04-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829553', 'tblTempVendorCDR_20' ) end [2025-04-04 01:43:18] Production.INFO: ProcessCDR(1,14829553,1,1,2) [2025-04-04 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829553', 'tblTempUsageDetail_20' ) start [2025-04-04 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829553', 'tblTempUsageDetail_20' ) end [2025-04-04 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:43:22] Production.INFO: ==23875== Releasing lock... [2025-04-04 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:44:05 [end_date_ymd] => 2025-04-04 01:44:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:44:05' and `end` < '2025-04-04 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-04 01:44:18] Production.INFO: count ==553 [2025-04-04 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:44:05 - End Time 2025-04-04 01:44:05 [2025-04-04 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829558', 'tblTempUsageDetail_20' ) start [2025-04-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829558', 'tblTempUsageDetail_20' ) end [2025-04-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829558', 'tblTempVendorCDR_20' ) start [2025-04-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829558', 'tblTempVendorCDR_20' ) end [2025-04-04 01:44:18] Production.INFO: ProcessCDR(1,14829558,1,1,2) [2025-04-04 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829558', 'tblTempUsageDetail_20' ) start [2025-04-04 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829558', 'tblTempUsageDetail_20' ) end [2025-04-04 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:44:21] Production.INFO: ==23946== Releasing lock... [2025-04-04 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:45:05 [end_date_ymd] => 2025-04-04 01:45:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:45:05' and `end` < '2025-04-04 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-04 01:45:18] Production.INFO: count ==549 [2025-04-04 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:45:05 - End Time 2025-04-04 01:45:05 [2025-04-04 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829563', 'tblTempUsageDetail_20' ) start [2025-04-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829563', 'tblTempUsageDetail_20' ) end [2025-04-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829563', 'tblTempVendorCDR_20' ) start [2025-04-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829563', 'tblTempVendorCDR_20' ) end [2025-04-04 01:45:18] Production.INFO: ProcessCDR(1,14829563,1,1,2) [2025-04-04 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829563', 'tblTempUsageDetail_20' ) start [2025-04-04 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829563', 'tblTempUsageDetail_20' ) end [2025-04-04 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:45:22] Production.INFO: ==24017== Releasing lock... [2025-04-04 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:45:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:46:06 [end_date_ymd] => 2025-04-04 01:46:06 [RateCDR] => 1 ) [2025-04-04 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:46:06' and `end` < '2025-04-04 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:46:19] Production.INFO: count ==549 [2025-04-04 01:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:46:06 - End Time 2025-04-04 01:46:06 [2025-04-04 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829568', 'tblTempUsageDetail_20' ) start [2025-04-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829568', 'tblTempUsageDetail_20' ) end [2025-04-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829568', 'tblTempVendorCDR_20' ) start [2025-04-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829568', 'tblTempVendorCDR_20' ) end [2025-04-04 01:46:19] Production.INFO: ProcessCDR(1,14829568,1,1,2) [2025-04-04 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829568', 'tblTempUsageDetail_20' ) start [2025-04-04 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829568', 'tblTempUsageDetail_20' ) end [2025-04-04 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:46:23] Production.INFO: ==24087== Releasing lock... [2025-04-04 01:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:46:23] Production.INFO: 33 MB #Memory Used# [2025-04-04 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:47:05 [end_date_ymd] => 2025-04-04 01:47:05 [RateCDR] => 1 ) [2025-04-04 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:47:05' and `end` < '2025-04-04 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:47:18] Production.INFO: count ==548 [2025-04-04 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:47:05 - End Time 2025-04-04 01:47:05 [2025-04-04 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829573', 'tblTempUsageDetail_20' ) start [2025-04-04 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829573', 'tblTempUsageDetail_20' ) end [2025-04-04 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829573', 'tblTempVendorCDR_20' ) start [2025-04-04 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829573', 'tblTempVendorCDR_20' ) end [2025-04-04 01:47:18] Production.INFO: ProcessCDR(1,14829573,1,1,2) [2025-04-04 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829573', 'tblTempUsageDetail_20' ) start [2025-04-04 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829573', 'tblTempUsageDetail_20' ) end [2025-04-04 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:47:21] Production.INFO: ==24197== Releasing lock... [2025-04-04 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:48:05 [end_date_ymd] => 2025-04-04 01:48:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:48:05' and `end` < '2025-04-04 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-04 01:48:18] Production.INFO: count ==547 [2025-04-04 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:48:05 - End Time 2025-04-04 01:48:05 [2025-04-04 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829578', 'tblTempUsageDetail_20' ) start [2025-04-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829578', 'tblTempUsageDetail_20' ) end [2025-04-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829578', 'tblTempVendorCDR_20' ) start [2025-04-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829578', 'tblTempVendorCDR_20' ) end [2025-04-04 01:48:18] Production.INFO: ProcessCDR(1,14829578,1,1,2) [2025-04-04 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829578', 'tblTempUsageDetail_20' ) start [2025-04-04 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829578', 'tblTempUsageDetail_20' ) end [2025-04-04 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:48:22] Production.INFO: ==24267== Releasing lock... [2025-04-04 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:49:05 [end_date_ymd] => 2025-04-04 01:49:05 [RateCDR] => 1 ) [2025-04-04 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:49:05' and `end` < '2025-04-04 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:49:18] Production.INFO: count ==547 [2025-04-04 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:49:05 - End Time 2025-04-04 01:49:05 [2025-04-04 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829583', 'tblTempUsageDetail_20' ) start [2025-04-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829583', 'tblTempUsageDetail_20' ) end [2025-04-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829583', 'tblTempVendorCDR_20' ) start [2025-04-04 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829583', 'tblTempVendorCDR_20' ) end [2025-04-04 01:49:18] Production.INFO: ProcessCDR(1,14829583,1,1,2) [2025-04-04 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829583', 'tblTempUsageDetail_20' ) start [2025-04-04 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829583', 'tblTempUsageDetail_20' ) end [2025-04-04 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:49:22] Production.INFO: ==24338== Releasing lock... [2025-04-04 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:50:06 [end_date_ymd] => 2025-04-04 01:50:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:50:06' and `end` < '2025-04-04 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-04 01:50:19] Production.INFO: count ==556 [2025-04-04 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:50:06 - End Time 2025-04-04 01:50:06 [2025-04-04 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829588', 'tblTempUsageDetail_20' ) start [2025-04-04 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829588', 'tblTempUsageDetail_20' ) end [2025-04-04 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829588', 'tblTempVendorCDR_20' ) start [2025-04-04 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829588', 'tblTempVendorCDR_20' ) end [2025-04-04 01:50:19] Production.INFO: ProcessCDR(1,14829588,1,1,2) [2025-04-04 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829588', 'tblTempUsageDetail_20' ) start [2025-04-04 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829588', 'tblTempUsageDetail_20' ) end [2025-04-04 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:50:23] Production.INFO: ==24411== Releasing lock... [2025-04-04 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:50:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:51:06 [end_date_ymd] => 2025-04-04 01:51:06 [RateCDR] => 1 ) [2025-04-04 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:51:06' and `end` < '2025-04-04 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:51:18] Production.INFO: count ==560 [2025-04-04 01:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:51:06 - End Time 2025-04-04 01:51:06 [2025-04-04 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829594', 'tblTempUsageDetail_20' ) start [2025-04-04 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829594', 'tblTempUsageDetail_20' ) end [2025-04-04 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829594', 'tblTempVendorCDR_20' ) start [2025-04-04 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829594', 'tblTempVendorCDR_20' ) end [2025-04-04 01:51:19] Production.INFO: ProcessCDR(1,14829594,1,1,2) [2025-04-04 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829594', 'tblTempUsageDetail_20' ) start [2025-04-04 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829594', 'tblTempUsageDetail_20' ) end [2025-04-04 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:51:22] Production.INFO: ==24483== Releasing lock... [2025-04-04 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:52:06 [end_date_ymd] => 2025-04-04 01:52:06 [RateCDR] => 1 ) [2025-04-04 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:52:06' and `end` < '2025-04-04 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:52:18] Production.INFO: count ==563 [2025-04-04 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:52:06 - End Time 2025-04-04 01:52:06 [2025-04-04 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829599', 'tblTempUsageDetail_20' ) start [2025-04-04 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829599', 'tblTempUsageDetail_20' ) end [2025-04-04 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829599', 'tblTempVendorCDR_20' ) start [2025-04-04 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829599', 'tblTempVendorCDR_20' ) end [2025-04-04 01:52:19] Production.INFO: ProcessCDR(1,14829599,1,1,2) [2025-04-04 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829599', 'tblTempUsageDetail_20' ) start [2025-04-04 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829599', 'tblTempUsageDetail_20' ) end [2025-04-04 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:52:22] Production.INFO: ==24554== Releasing lock... [2025-04-04 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:53:05 [end_date_ymd] => 2025-04-04 01:53:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:53:05' and `end` < '2025-04-04 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-04 01:53:18] Production.INFO: count ==563 [2025-04-04 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:53:05 - End Time 2025-04-04 01:53:05 [2025-04-04 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829604', 'tblTempUsageDetail_20' ) start [2025-04-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829604', 'tblTempUsageDetail_20' ) end [2025-04-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829604', 'tblTempVendorCDR_20' ) start [2025-04-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829604', 'tblTempVendorCDR_20' ) end [2025-04-04 01:53:18] Production.INFO: ProcessCDR(1,14829604,1,1,2) [2025-04-04 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829604', 'tblTempUsageDetail_20' ) start [2025-04-04 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829604', 'tblTempUsageDetail_20' ) end [2025-04-04 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:53:22] Production.INFO: ==24628== Releasing lock... [2025-04-04 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:54:05 [end_date_ymd] => 2025-04-04 01:54:05 [RateCDR] => 1 ) [2025-04-04 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:54:05' and `end` < '2025-04-04 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:54:18] Production.INFO: count ==563 [2025-04-04 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:54:05 - End Time 2025-04-04 01:54:05 [2025-04-04 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829609', 'tblTempUsageDetail_20' ) start [2025-04-04 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829609', 'tblTempUsageDetail_20' ) end [2025-04-04 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829609', 'tblTempVendorCDR_20' ) start [2025-04-04 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829609', 'tblTempVendorCDR_20' ) end [2025-04-04 01:54:18] Production.INFO: ProcessCDR(1,14829609,1,1,2) [2025-04-04 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829609', 'tblTempUsageDetail_20' ) start [2025-04-04 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829609', 'tblTempUsageDetail_20' ) end [2025-04-04 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:54:21] Production.INFO: ==24702== Releasing lock... [2025-04-04 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:54:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:55:05 [end_date_ymd] => 2025-04-04 01:55:05 [RateCDR] => 1 ) [2025-04-04 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 22:55:05' and `end` < '2025-04-04 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 01:55:18] Production.INFO: count ==568 [2025-04-04 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:55:05 - End Time 2025-04-04 01:55:05 [2025-04-04 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829614', 'tblTempUsageDetail_20' ) start [2025-04-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829614', 'tblTempUsageDetail_20' ) end [2025-04-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829614', 'tblTempVendorCDR_20' ) start [2025-04-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829614', 'tblTempVendorCDR_20' ) end [2025-04-04 01:55:18] Production.INFO: ProcessCDR(1,14829614,1,1,2) [2025-04-04 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829614', 'tblTempUsageDetail_20' ) start [2025-04-04 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829614', 'tblTempUsageDetail_20' ) end [2025-04-04 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:55:22] Production.INFO: ==24772== Releasing lock... [2025-04-04 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:55:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:56:06 [end_date_ymd] => 2025-04-04 01:56:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:56:06' and `end` < '2025-04-04 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-04 01:56:18] Production.INFO: count ==566 [2025-04-04 01:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:56:06 - End Time 2025-04-04 01:56:06 [2025-04-04 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829619', 'tblTempUsageDetail_20' ) start [2025-04-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829619', 'tblTempUsageDetail_20' ) end [2025-04-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829619', 'tblTempVendorCDR_20' ) start [2025-04-04 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829619', 'tblTempVendorCDR_20' ) end [2025-04-04 01:56:19] Production.INFO: ProcessCDR(1,14829619,1,1,2) [2025-04-04 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829619', 'tblTempUsageDetail_20' ) start [2025-04-04 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829619', 'tblTempUsageDetail_20' ) end [2025-04-04 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:56:22] Production.INFO: ==24849== Releasing lock... [2025-04-04 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:57:05 [end_date_ymd] => 2025-04-04 01:57:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:57:05' and `end` < '2025-04-04 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-04 01:57:17] Production.INFO: count ==567 [2025-04-04 01:57:17] Production.ERROR: pbx CDR StartTime 2025-04-03 22:57:05 - End Time 2025-04-04 01:57:05 [2025-04-04 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829624', 'tblTempUsageDetail_20' ) start [2025-04-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829624', 'tblTempUsageDetail_20' ) end [2025-04-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829624', 'tblTempVendorCDR_20' ) start [2025-04-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829624', 'tblTempVendorCDR_20' ) end [2025-04-04 01:57:17] Production.INFO: ProcessCDR(1,14829624,1,1,2) [2025-04-04 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829624', 'tblTempUsageDetail_20' ) start [2025-04-04 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829624', 'tblTempUsageDetail_20' ) end [2025-04-04 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:57:21] Production.INFO: ==24921== Releasing lock... [2025-04-04 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:57:21] Production.INFO: 33 MB #Memory Used# [2025-04-04 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:58:06 [end_date_ymd] => 2025-04-04 01:58:06 [RateCDR] => 1 ) [2025-04-04 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-03 22:58:06' and `end` < '2025-04-04 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-04 01:58:19] Production.INFO: count ==567 [2025-04-04 01:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 22:58:06 - End Time 2025-04-04 01:58:06 [2025-04-04 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829629', 'tblTempUsageDetail_20' ) start [2025-04-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829629', 'tblTempUsageDetail_20' ) end [2025-04-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829629', 'tblTempVendorCDR_20' ) start [2025-04-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829629', 'tblTempVendorCDR_20' ) end [2025-04-04 01:58:19] Production.INFO: ProcessCDR(1,14829629,1,1,2) [2025-04-04 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829629', 'tblTempUsageDetail_20' ) start [2025-04-04 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829629', 'tblTempUsageDetail_20' ) end [2025-04-04 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:58:22] Production.INFO: ==24993== Releasing lock... [2025-04-04 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:58:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 22:59:05 [end_date_ymd] => 2025-04-04 01:59:05 [RateCDR] => 1 ) [2025-04-04 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-03 22:59:05' and `end` < '2025-04-04 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-04 01:59:18] Production.INFO: count ==566 [2025-04-04 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-03 22:59:05 - End Time 2025-04-04 01:59:05 [2025-04-04 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829634', 'tblTempUsageDetail_20' ) start [2025-04-04 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829634', 'tblTempUsageDetail_20' ) end [2025-04-04 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829634', 'tblTempVendorCDR_20' ) start [2025-04-04 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829634', 'tblTempVendorCDR_20' ) end [2025-04-04 01:59:18] Production.INFO: ProcessCDR(1,14829634,1,1,2) [2025-04-04 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829634', 'tblTempUsageDetail_20' ) start [2025-04-04 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829634', 'tblTempUsageDetail_20' ) end [2025-04-04 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 01:59:21] Production.INFO: ==25064== Releasing lock... [2025-04-04 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 01:59:21] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:00:06 [end_date_ymd] => 2025-04-04 02:00:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:00:06' and `end` < '2025-04-04 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-04 02:00:19] Production.INFO: count ==569 [2025-04-04 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:00:06 - End Time 2025-04-04 02:00:06 [2025-04-04 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829640', 'tblTempUsageDetail_20' ) start [2025-04-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829640', 'tblTempUsageDetail_20' ) end [2025-04-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829640', 'tblTempVendorCDR_20' ) start [2025-04-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829640', 'tblTempVendorCDR_20' ) end [2025-04-04 02:00:19] Production.INFO: ProcessCDR(1,14829640,1,1,2) [2025-04-04 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829640', 'tblTempUsageDetail_20' ) start [2025-04-04 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829640', 'tblTempUsageDetail_20' ) end [2025-04-04 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:00:22] Production.INFO: ==25137== Releasing lock... [2025-04-04 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:00:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:01:07 [end_date_ymd] => 2025-04-04 02:01:07 [RateCDR] => 1 ) [2025-04-04 02:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:01:07' and `end` < '2025-04-04 02:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:01:20] Production.INFO: count ==571 [2025-04-04 02:01:20] Production.ERROR: pbx CDR StartTime 2025-04-03 23:01:07 - End Time 2025-04-04 02:01:07 [2025-04-04 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829645', 'tblTempUsageDetail_20' ) start [2025-04-04 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829645', 'tblTempUsageDetail_20' ) end [2025-04-04 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829645', 'tblTempVendorCDR_20' ) start [2025-04-04 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829645', 'tblTempVendorCDR_20' ) end [2025-04-04 02:01:20] Production.INFO: ProcessCDR(1,14829645,1,1,2) [2025-04-04 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829645', 'tblTempUsageDetail_20' ) start [2025-04-04 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829645', 'tblTempUsageDetail_20' ) end [2025-04-04 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:01:23] Production.INFO: ==25227== Releasing lock... [2025-04-04 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:01:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:02:06 [end_date_ymd] => 2025-04-04 02:02:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:02:06' and `end` < '2025-04-04 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-04 02:02:19] Production.INFO: count ==571 [2025-04-04 02:02:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:02:06 - End Time 2025-04-04 02:02:06 [2025-04-04 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829650', 'tblTempUsageDetail_20' ) start [2025-04-04 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829650', 'tblTempUsageDetail_20' ) end [2025-04-04 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829650', 'tblTempVendorCDR_20' ) start [2025-04-04 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829650', 'tblTempVendorCDR_20' ) end [2025-04-04 02:02:19] Production.INFO: ProcessCDR(1,14829650,1,1,2) [2025-04-04 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829650', 'tblTempUsageDetail_20' ) start [2025-04-04 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829650', 'tblTempUsageDetail_20' ) end [2025-04-04 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:02:23] Production.INFO: ==25382== Releasing lock... [2025-04-04 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:02:23] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:03:05 [end_date_ymd] => 2025-04-04 02:03:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:03:05' and `end` < '2025-04-04 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:03:18] Production.INFO: count ==569 [2025-04-04 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:03:05 - End Time 2025-04-04 02:03:05 [2025-04-04 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829655', 'tblTempUsageDetail_20' ) start [2025-04-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829655', 'tblTempUsageDetail_20' ) end [2025-04-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829655', 'tblTempVendorCDR_20' ) start [2025-04-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829655', 'tblTempVendorCDR_20' ) end [2025-04-04 02:03:18] Production.INFO: ProcessCDR(1,14829655,1,1,2) [2025-04-04 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829655', 'tblTempUsageDetail_20' ) start [2025-04-04 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829655', 'tblTempUsageDetail_20' ) end [2025-04-04 02:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:03:24] Production.INFO: ==25493== Releasing lock... [2025-04-04 02:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:03:24] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:04:06 [end_date_ymd] => 2025-04-04 02:04:06 [RateCDR] => 1 ) [2025-04-04 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:04:06' and `end` < '2025-04-04 02: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-04 02:04:19] Production.INFO: count ==566 [2025-04-04 02:04:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:04:06 - End Time 2025-04-04 02:04:06 [2025-04-04 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829660', 'tblTempUsageDetail_20' ) start [2025-04-04 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829660', 'tblTempUsageDetail_20' ) end [2025-04-04 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829660', 'tblTempVendorCDR_20' ) start [2025-04-04 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829660', 'tblTempVendorCDR_20' ) end [2025-04-04 02:04:19] Production.INFO: ProcessCDR(1,14829660,1,1,2) [2025-04-04 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829660', 'tblTempUsageDetail_20' ) start [2025-04-04 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829660', 'tblTempUsageDetail_20' ) end [2025-04-04 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:04:22] Production.INFO: ==25571== Releasing lock... [2025-04-04 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:05:06 [end_date_ymd] => 2025-04-04 02:05:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:05:06' and `end` < '2025-04-04 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-04 02:05:18] Production.INFO: count ==563 [2025-04-04 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:05:06 - End Time 2025-04-04 02:05:06 [2025-04-04 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829665', 'tblTempUsageDetail_20' ) start [2025-04-04 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829665', 'tblTempUsageDetail_20' ) end [2025-04-04 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829665', 'tblTempVendorCDR_20' ) start [2025-04-04 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829665', 'tblTempVendorCDR_20' ) end [2025-04-04 02:05:19] Production.INFO: ProcessCDR(1,14829665,1,1,2) [2025-04-04 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829665', 'tblTempUsageDetail_20' ) start [2025-04-04 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829665', 'tblTempUsageDetail_20' ) end [2025-04-04 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:05:22] Production.INFO: ==25640== Releasing lock... [2025-04-04 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:06:06 [end_date_ymd] => 2025-04-04 02:06:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:06:06' and `end` < '2025-04-04 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-04 02:06:19] Production.INFO: count ==564 [2025-04-04 02:06:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:06:06 - End Time 2025-04-04 02:06:06 [2025-04-04 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829670', 'tblTempUsageDetail_20' ) start [2025-04-04 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829670', 'tblTempUsageDetail_20' ) end [2025-04-04 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829670', 'tblTempVendorCDR_20' ) start [2025-04-04 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829670', 'tblTempVendorCDR_20' ) end [2025-04-04 02:06:19] Production.INFO: ProcessCDR(1,14829670,1,1,2) [2025-04-04 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829670', 'tblTempUsageDetail_20' ) start [2025-04-04 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829670', 'tblTempUsageDetail_20' ) end [2025-04-04 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:06:22] Production.INFO: ==25711== Releasing lock... [2025-04-04 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:06:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:07:06 [end_date_ymd] => 2025-04-04 02:07:06 [RateCDR] => 1 ) [2025-04-04 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:07:06' and `end` < '2025-04-04 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:07:19] Production.INFO: count ==574 [2025-04-04 02:07:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:07:06 - End Time 2025-04-04 02:07:06 [2025-04-04 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829675', 'tblTempUsageDetail_20' ) start [2025-04-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829675', 'tblTempUsageDetail_20' ) end [2025-04-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829675', 'tblTempVendorCDR_20' ) start [2025-04-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829675', 'tblTempVendorCDR_20' ) end [2025-04-04 02:07:19] Production.INFO: ProcessCDR(1,14829675,1,1,2) [2025-04-04 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829675', 'tblTempUsageDetail_20' ) start [2025-04-04 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829675', 'tblTempUsageDetail_20' ) end [2025-04-04 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:07:22] Production.INFO: ==25782== Releasing lock... [2025-04-04 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:07:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:08:06 [end_date_ymd] => 2025-04-04 02:08:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:08:06' and `end` < '2025-04-04 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-04 02:08:19] Production.INFO: count ==595 [2025-04-04 02:08:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:08:06 - End Time 2025-04-04 02:08:06 [2025-04-04 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829680', 'tblTempUsageDetail_20' ) start [2025-04-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829680', 'tblTempUsageDetail_20' ) end [2025-04-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829680', 'tblTempVendorCDR_20' ) start [2025-04-04 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829680', 'tblTempVendorCDR_20' ) end [2025-04-04 02:08:19] Production.INFO: ProcessCDR(1,14829680,1,1,2) [2025-04-04 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829680', 'tblTempUsageDetail_20' ) start [2025-04-04 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829680', 'tblTempUsageDetail_20' ) end [2025-04-04 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:08:23] Production.INFO: ==25853== Releasing lock... [2025-04-04 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:08:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:09:05 [end_date_ymd] => 2025-04-04 02:09:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:09:05' and `end` < '2025-04-04 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-04 02:09:18] Production.INFO: count ==581 [2025-04-04 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:09:05 - End Time 2025-04-04 02:09:05 [2025-04-04 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829685', 'tblTempUsageDetail_20' ) start [2025-04-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829685', 'tblTempUsageDetail_20' ) end [2025-04-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829685', 'tblTempVendorCDR_20' ) start [2025-04-04 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829685', 'tblTempVendorCDR_20' ) end [2025-04-04 02:09:18] Production.INFO: ProcessCDR(1,14829685,1,1,2) [2025-04-04 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829685', 'tblTempUsageDetail_20' ) start [2025-04-04 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829685', 'tblTempUsageDetail_20' ) end [2025-04-04 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:09:22] Production.INFO: ==25924== Releasing lock... [2025-04-04 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:09:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:10:06 [end_date_ymd] => 2025-04-04 02:10:06 [RateCDR] => 1 ) [2025-04-04 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:10:06' and `end` < '2025-04-04 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:10:19] Production.INFO: count ==596 [2025-04-04 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:10:06 - End Time 2025-04-04 02:10:06 [2025-04-04 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829691', 'tblTempUsageDetail_20' ) start [2025-04-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829691', 'tblTempUsageDetail_20' ) end [2025-04-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829691', 'tblTempVendorCDR_20' ) start [2025-04-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829691', 'tblTempVendorCDR_20' ) end [2025-04-04 02:10:19] Production.INFO: ProcessCDR(1,14829691,1,1,2) [2025-04-04 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829691', 'tblTempUsageDetail_20' ) start [2025-04-04 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829691', 'tblTempUsageDetail_20' ) end [2025-04-04 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:10:23] Production.INFO: ==26000== Releasing lock... [2025-04-04 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:10:23] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:11:06 [end_date_ymd] => 2025-04-04 02:11:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:11:06' and `end` < '2025-04-04 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-04 02:11:18] Production.INFO: count ==596 [2025-04-04 02:11:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:11:06 - End Time 2025-04-04 02:11:06 [2025-04-04 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829696', 'tblTempUsageDetail_20' ) start [2025-04-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829696', 'tblTempUsageDetail_20' ) end [2025-04-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829696', 'tblTempVendorCDR_20' ) start [2025-04-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829696', 'tblTempVendorCDR_20' ) end [2025-04-04 02:11:19] Production.INFO: ProcessCDR(1,14829696,1,1,2) [2025-04-04 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829696', 'tblTempUsageDetail_20' ) start [2025-04-04 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829696', 'tblTempUsageDetail_20' ) end [2025-04-04 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:11:22] Production.INFO: ==26073== Releasing lock... [2025-04-04 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:11:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:12:06 [end_date_ymd] => 2025-04-04 02:12:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:12:06' and `end` < '2025-04-04 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-04 02:12:19] Production.INFO: count ==599 [2025-04-04 02:12:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:12:06 - End Time 2025-04-04 02:12:06 [2025-04-04 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829701', 'tblTempUsageDetail_20' ) start [2025-04-04 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829701', 'tblTempUsageDetail_20' ) end [2025-04-04 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829701', 'tblTempVendorCDR_20' ) start [2025-04-04 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829701', 'tblTempVendorCDR_20' ) end [2025-04-04 02:12:19] Production.INFO: ProcessCDR(1,14829701,1,1,2) [2025-04-04 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829701', 'tblTempUsageDetail_20' ) start [2025-04-04 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829701', 'tblTempUsageDetail_20' ) end [2025-04-04 02:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:12:23] Production.INFO: ==26145== Releasing lock... [2025-04-04 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:12:23] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:13:05 [end_date_ymd] => 2025-04-04 02:13:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:13:05' and `end` < '2025-04-04 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-04 02:13:18] Production.INFO: count ==624 [2025-04-04 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:13:05 - End Time 2025-04-04 02:13:05 [2025-04-04 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829706', 'tblTempUsageDetail_20' ) start [2025-04-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829706', 'tblTempUsageDetail_20' ) end [2025-04-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829706', 'tblTempVendorCDR_20' ) start [2025-04-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829706', 'tblTempVendorCDR_20' ) end [2025-04-04 02:13:18] Production.INFO: ProcessCDR(1,14829706,1,1,2) [2025-04-04 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829706', 'tblTempUsageDetail_20' ) start [2025-04-04 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829706', 'tblTempUsageDetail_20' ) end [2025-04-04 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:13:22] Production.INFO: ==26213== Releasing lock... [2025-04-04 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:14:06 [end_date_ymd] => 2025-04-04 02:14:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:14:06' and `end` < '2025-04-04 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-04 02:14:18] Production.INFO: count ==624 [2025-04-04 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:14:06 - End Time 2025-04-04 02:14:06 [2025-04-04 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829711', 'tblTempUsageDetail_20' ) start [2025-04-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829711', 'tblTempUsageDetail_20' ) end [2025-04-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829711', 'tblTempVendorCDR_20' ) start [2025-04-04 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829711', 'tblTempVendorCDR_20' ) end [2025-04-04 02:14:18] Production.INFO: ProcessCDR(1,14829711,1,1,2) [2025-04-04 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829711', 'tblTempUsageDetail_20' ) start [2025-04-04 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829711', 'tblTempUsageDetail_20' ) end [2025-04-04 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:14:22] Production.INFO: ==26283== Releasing lock... [2025-04-04 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:15:05 [end_date_ymd] => 2025-04-04 02:15:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:15:05' and `end` < '2025-04-04 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-04 02:15:17] Production.INFO: count ==611 [2025-04-04 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:15:05 - End Time 2025-04-04 02:15:05 [2025-04-04 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829716', 'tblTempUsageDetail_20' ) start [2025-04-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829716', 'tblTempUsageDetail_20' ) end [2025-04-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829716', 'tblTempVendorCDR_20' ) start [2025-04-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829716', 'tblTempVendorCDR_20' ) end [2025-04-04 02:15:18] Production.INFO: ProcessCDR(1,14829716,1,1,2) [2025-04-04 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829716', 'tblTempUsageDetail_20' ) start [2025-04-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829716', 'tblTempUsageDetail_20' ) end [2025-04-04 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:15:21] Production.INFO: ==26359== Releasing lock... [2025-04-04 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:15:21] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:16:06 [end_date_ymd] => 2025-04-04 02:16:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:16:06' and `end` < '2025-04-04 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-04 02:16:19] Production.INFO: count ==608 [2025-04-04 02:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:16:06 - End Time 2025-04-04 02:16:06 [2025-04-04 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829721', 'tblTempUsageDetail_20' ) start [2025-04-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829721', 'tblTempUsageDetail_20' ) end [2025-04-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829721', 'tblTempVendorCDR_20' ) start [2025-04-04 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829721', 'tblTempVendorCDR_20' ) end [2025-04-04 02:16:19] Production.INFO: ProcessCDR(1,14829721,1,1,2) [2025-04-04 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829721', 'tblTempUsageDetail_20' ) start [2025-04-04 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829721', 'tblTempUsageDetail_20' ) end [2025-04-04 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:16:23] Production.INFO: ==26430== Releasing lock... [2025-04-04 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:16:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:17:05 [end_date_ymd] => 2025-04-04 02:17:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:17:05' and `end` < '2025-04-04 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-04 02:17:18] Production.INFO: count ==606 [2025-04-04 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:17:05 - End Time 2025-04-04 02:17:05 [2025-04-04 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829726', 'tblTempUsageDetail_20' ) start [2025-04-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829726', 'tblTempUsageDetail_20' ) end [2025-04-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829726', 'tblTempVendorCDR_20' ) start [2025-04-04 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829726', 'tblTempVendorCDR_20' ) end [2025-04-04 02:17:18] Production.INFO: ProcessCDR(1,14829726,1,1,2) [2025-04-04 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829726', 'tblTempUsageDetail_20' ) start [2025-04-04 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829726', 'tblTempUsageDetail_20' ) end [2025-04-04 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:17:21] Production.INFO: ==26500== Releasing lock... [2025-04-04 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:18:06 [end_date_ymd] => 2025-04-04 02:18:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:18:06' and `end` < '2025-04-04 02: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-04 02:18:18] Production.INFO: count ==592 [2025-04-04 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:18:06 - End Time 2025-04-04 02:18:06 [2025-04-04 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829731', 'tblTempUsageDetail_20' ) start [2025-04-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829731', 'tblTempUsageDetail_20' ) end [2025-04-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829731', 'tblTempVendorCDR_20' ) start [2025-04-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829731', 'tblTempVendorCDR_20' ) end [2025-04-04 02:18:18] Production.INFO: ProcessCDR(1,14829731,1,1,2) [2025-04-04 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829731', 'tblTempUsageDetail_20' ) start [2025-04-04 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829731', 'tblTempUsageDetail_20' ) end [2025-04-04 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:18:22] Production.INFO: ==26610== Releasing lock... [2025-04-04 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:19:06 [end_date_ymd] => 2025-04-04 02:19:06 [RateCDR] => 1 ) [2025-04-04 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:19:06' and `end` < '2025-04-04 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:19:18] Production.INFO: count ==589 [2025-04-04 02:19:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:19:06 - End Time 2025-04-04 02:19:06 [2025-04-04 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829736', 'tblTempUsageDetail_20' ) start [2025-04-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829736', 'tblTempUsageDetail_20' ) end [2025-04-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829736', 'tblTempVendorCDR_20' ) start [2025-04-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829736', 'tblTempVendorCDR_20' ) end [2025-04-04 02:19:19] Production.INFO: ProcessCDR(1,14829736,1,1,2) [2025-04-04 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829736', 'tblTempUsageDetail_20' ) start [2025-04-04 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829736', 'tblTempUsageDetail_20' ) end [2025-04-04 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:19:22] Production.INFO: ==26681== Releasing lock... [2025-04-04 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:19:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:20:06 [end_date_ymd] => 2025-04-04 02:20:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:20:06' and `end` < '2025-04-04 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-04 02:20:19] Production.INFO: count ==589 [2025-04-04 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:20:06 - End Time 2025-04-04 02:20:06 [2025-04-04 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829742', 'tblTempUsageDetail_20' ) start [2025-04-04 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829742', 'tblTempUsageDetail_20' ) end [2025-04-04 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829742', 'tblTempVendorCDR_20' ) start [2025-04-04 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829742', 'tblTempVendorCDR_20' ) end [2025-04-04 02:20:19] Production.INFO: ProcessCDR(1,14829742,1,1,2) [2025-04-04 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829742', 'tblTempUsageDetail_20' ) start [2025-04-04 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829742', 'tblTempUsageDetail_20' ) end [2025-04-04 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:20:23] Production.INFO: ==26754== Releasing lock... [2025-04-04 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:20:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:21:05 [end_date_ymd] => 2025-04-04 02:21:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:21:05' and `end` < '2025-04-04 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-04 02:21:18] Production.INFO: count ==653 [2025-04-04 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:21:05 - End Time 2025-04-04 02:21:05 [2025-04-04 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829747', 'tblTempUsageDetail_20' ) start [2025-04-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829747', 'tblTempUsageDetail_20' ) end [2025-04-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829747', 'tblTempVendorCDR_20' ) start [2025-04-04 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829747', 'tblTempVendorCDR_20' ) end [2025-04-04 02:21:18] Production.INFO: ProcessCDR(1,14829747,1,1,2) [2025-04-04 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829747', 'tblTempUsageDetail_20' ) start [2025-04-04 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829747', 'tblTempUsageDetail_20' ) end [2025-04-04 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:21:21] Production.INFO: ==26826== Releasing lock... [2025-04-04 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:22:05 [end_date_ymd] => 2025-04-04 02:22:05 [RateCDR] => 1 ) [2025-04-04 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:22:05' and `end` < '2025-04-04 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:22:18] Production.INFO: count ==652 [2025-04-04 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:22:05 - End Time 2025-04-04 02:22:05 [2025-04-04 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829752', 'tblTempUsageDetail_20' ) start [2025-04-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829752', 'tblTempUsageDetail_20' ) end [2025-04-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829752', 'tblTempVendorCDR_20' ) start [2025-04-04 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829752', 'tblTempVendorCDR_20' ) end [2025-04-04 02:22:18] Production.INFO: ProcessCDR(1,14829752,1,1,2) [2025-04-04 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829752', 'tblTempUsageDetail_20' ) start [2025-04-04 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829752', 'tblTempUsageDetail_20' ) end [2025-04-04 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:22:22] Production.INFO: ==26899== Releasing lock... [2025-04-04 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:23:05 [end_date_ymd] => 2025-04-04 02:23:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:23:05' and `end` < '2025-04-04 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-04 02:23:18] Production.INFO: count ==670 [2025-04-04 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:23:05 - End Time 2025-04-04 02:23:05 [2025-04-04 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829757', 'tblTempUsageDetail_20' ) start [2025-04-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829757', 'tblTempUsageDetail_20' ) end [2025-04-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829757', 'tblTempVendorCDR_20' ) start [2025-04-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829757', 'tblTempVendorCDR_20' ) end [2025-04-04 02:23:18] Production.INFO: ProcessCDR(1,14829757,1,1,2) [2025-04-04 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829757', 'tblTempUsageDetail_20' ) start [2025-04-04 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829757', 'tblTempUsageDetail_20' ) end [2025-04-04 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:23:22] Production.INFO: ==26970== Releasing lock... [2025-04-04 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:23:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:24:05 [end_date_ymd] => 2025-04-04 02:24:05 [RateCDR] => 1 ) [2025-04-04 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:24:05' and `end` < '2025-04-04 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:24:18] Production.INFO: count ==669 [2025-04-04 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:24:05 - End Time 2025-04-04 02:24:05 [2025-04-04 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829762', 'tblTempUsageDetail_20' ) start [2025-04-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829762', 'tblTempUsageDetail_20' ) end [2025-04-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829762', 'tblTempVendorCDR_20' ) start [2025-04-04 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829762', 'tblTempVendorCDR_20' ) end [2025-04-04 02:24:18] Production.INFO: ProcessCDR(1,14829762,1,1,2) [2025-04-04 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829762', 'tblTempUsageDetail_20' ) start [2025-04-04 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829762', 'tblTempUsageDetail_20' ) end [2025-04-04 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:24:21] Production.INFO: ==27041== Releasing lock... [2025-04-04 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:24:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:25:05 [end_date_ymd] => 2025-04-04 02:25:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:25:05' and `end` < '2025-04-04 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-04 02:25:18] Production.INFO: count ==670 [2025-04-04 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:25:05 - End Time 2025-04-04 02:25:05 [2025-04-04 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829767', 'tblTempUsageDetail_20' ) start [2025-04-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829767', 'tblTempUsageDetail_20' ) end [2025-04-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829767', 'tblTempVendorCDR_20' ) start [2025-04-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829767', 'tblTempVendorCDR_20' ) end [2025-04-04 02:25:18] Production.INFO: ProcessCDR(1,14829767,1,1,2) [2025-04-04 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829767', 'tblTempUsageDetail_20' ) start [2025-04-04 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829767', 'tblTempUsageDetail_20' ) end [2025-04-04 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:25:22] Production.INFO: ==27113== Releasing lock... [2025-04-04 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:25:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:26:05 [end_date_ymd] => 2025-04-04 02:26:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:26:05' and `end` < '2025-04-04 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-04 02:26:18] Production.INFO: count ==670 [2025-04-04 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:26:05 - End Time 2025-04-04 02:26:05 [2025-04-04 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829772', 'tblTempUsageDetail_20' ) start [2025-04-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829772', 'tblTempUsageDetail_20' ) end [2025-04-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829772', 'tblTempVendorCDR_20' ) start [2025-04-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829772', 'tblTempVendorCDR_20' ) end [2025-04-04 02:26:18] Production.INFO: ProcessCDR(1,14829772,1,1,2) [2025-04-04 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829772', 'tblTempUsageDetail_20' ) start [2025-04-04 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829772', 'tblTempUsageDetail_20' ) end [2025-04-04 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:26:22] Production.INFO: ==27186== Releasing lock... [2025-04-04 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:27:05 [end_date_ymd] => 2025-04-04 02:27:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:27:05' and `end` < '2025-04-04 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-04 02:27:18] Production.INFO: count ==667 [2025-04-04 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:27:05 - End Time 2025-04-04 02:27:05 [2025-04-04 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829777', 'tblTempUsageDetail_20' ) start [2025-04-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829777', 'tblTempUsageDetail_20' ) end [2025-04-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829777', 'tblTempVendorCDR_20' ) start [2025-04-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829777', 'tblTempVendorCDR_20' ) end [2025-04-04 02:27:18] Production.INFO: ProcessCDR(1,14829777,1,1,2) [2025-04-04 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829777', 'tblTempUsageDetail_20' ) start [2025-04-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829777', 'tblTempUsageDetail_20' ) end [2025-04-04 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:27:21] Production.INFO: ==27260== Releasing lock... [2025-04-04 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:27:21] Production.INFO: 34 MB #Memory Used# [2025-04-04 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:28:05 [end_date_ymd] => 2025-04-04 02:28:05 [RateCDR] => 1 ) [2025-04-04 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:28:05' and `end` < '2025-04-04 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:28:18] Production.INFO: count ==667 [2025-04-04 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:28:05 - End Time 2025-04-04 02:28:05 [2025-04-04 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829782', 'tblTempUsageDetail_20' ) start [2025-04-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829782', 'tblTempUsageDetail_20' ) end [2025-04-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829782', 'tblTempVendorCDR_20' ) start [2025-04-04 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829782', 'tblTempVendorCDR_20' ) end [2025-04-04 02:28:18] Production.INFO: ProcessCDR(1,14829782,1,1,2) [2025-04-04 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829782', 'tblTempUsageDetail_20' ) start [2025-04-04 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829782', 'tblTempUsageDetail_20' ) end [2025-04-04 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:28:22] Production.INFO: ==27335== Releasing lock... [2025-04-04 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:28:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:29:04 [end_date_ymd] => 2025-04-04 02:29:04 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:29:04' and `end` < '2025-04-04 02: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-04 02:29:17] Production.INFO: count ==667 [2025-04-04 02:29:17] Production.ERROR: pbx CDR StartTime 2025-04-03 23:29:04 - End Time 2025-04-04 02:29:04 [2025-04-04 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829787', 'tblTempUsageDetail_20' ) start [2025-04-04 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829787', 'tblTempUsageDetail_20' ) end [2025-04-04 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829787', 'tblTempVendorCDR_20' ) start [2025-04-04 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829787', 'tblTempVendorCDR_20' ) end [2025-04-04 02:29:17] Production.INFO: ProcessCDR(1,14829787,1,1,2) [2025-04-04 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829787', 'tblTempUsageDetail_20' ) start [2025-04-04 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829787', 'tblTempUsageDetail_20' ) end [2025-04-04 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:29:21] Production.INFO: ==27404== Releasing lock... [2025-04-04 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:29:21] Production.INFO: 34 MB #Memory Used# [2025-04-04 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:30:06 [end_date_ymd] => 2025-04-04 02:30:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:30:06' and `end` < '2025-04-04 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-04 02:30:19] Production.INFO: count ==667 [2025-04-04 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:30:06 - End Time 2025-04-04 02:30:06 [2025-04-04 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829793', 'tblTempUsageDetail_20' ) start [2025-04-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829793', 'tblTempUsageDetail_20' ) end [2025-04-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829793', 'tblTempVendorCDR_20' ) start [2025-04-04 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829793', 'tblTempVendorCDR_20' ) end [2025-04-04 02:30:19] Production.INFO: ProcessCDR(1,14829793,1,1,2) [2025-04-04 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829793', 'tblTempUsageDetail_20' ) start [2025-04-04 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829793', 'tblTempUsageDetail_20' ) end [2025-04-04 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:30:22] Production.INFO: ==27480== Releasing lock... [2025-04-04 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:31:06 [end_date_ymd] => 2025-04-04 02:31:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:31:06' and `end` < '2025-04-04 02: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-04 02:31:19] Production.INFO: count ==691 [2025-04-04 02:31:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:31:06 - End Time 2025-04-04 02:31:06 [2025-04-04 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829798', 'tblTempUsageDetail_20' ) start [2025-04-04 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829798', 'tblTempUsageDetail_20' ) end [2025-04-04 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829798', 'tblTempVendorCDR_20' ) start [2025-04-04 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829798', 'tblTempVendorCDR_20' ) end [2025-04-04 02:31:19] Production.INFO: ProcessCDR(1,14829798,1,1,2) [2025-04-04 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829798', 'tblTempUsageDetail_20' ) start [2025-04-04 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829798', 'tblTempUsageDetail_20' ) end [2025-04-04 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:31:22] Production.INFO: ==27553== Releasing lock... [2025-04-04 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:31:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:32:05 [end_date_ymd] => 2025-04-04 02:32:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:32:05' and `end` < '2025-04-04 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-04 02:32:18] Production.INFO: count ==687 [2025-04-04 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:32:05 - End Time 2025-04-04 02:32:05 [2025-04-04 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829803', 'tblTempUsageDetail_20' ) start [2025-04-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829803', 'tblTempUsageDetail_20' ) end [2025-04-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829803', 'tblTempVendorCDR_20' ) start [2025-04-04 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829803', 'tblTempVendorCDR_20' ) end [2025-04-04 02:32:18] Production.INFO: ProcessCDR(1,14829803,1,1,2) [2025-04-04 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829803', 'tblTempUsageDetail_20' ) start [2025-04-04 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829803', 'tblTempUsageDetail_20' ) end [2025-04-04 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:32:22] Production.INFO: ==27624== Releasing lock... [2025-04-04 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:32:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:33:05 [end_date_ymd] => 2025-04-04 02:33:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:33:05' and `end` < '2025-04-04 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-04 02:33:18] Production.INFO: count ==693 [2025-04-04 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:33:05 - End Time 2025-04-04 02:33:05 [2025-04-04 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829808', 'tblTempUsageDetail_20' ) start [2025-04-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829808', 'tblTempUsageDetail_20' ) end [2025-04-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829808', 'tblTempVendorCDR_20' ) start [2025-04-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829808', 'tblTempVendorCDR_20' ) end [2025-04-04 02:33:18] Production.INFO: ProcessCDR(1,14829808,1,1,2) [2025-04-04 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829808', 'tblTempUsageDetail_20' ) start [2025-04-04 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829808', 'tblTempUsageDetail_20' ) end [2025-04-04 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:33:22] Production.INFO: ==27695== Releasing lock... [2025-04-04 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:34:06 [end_date_ymd] => 2025-04-04 02:34:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:34:06' and `end` < '2025-04-04 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-04 02:34:18] Production.INFO: count ==692 [2025-04-04 02:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:34:06 - End Time 2025-04-04 02:34:06 [2025-04-04 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829813', 'tblTempUsageDetail_20' ) start [2025-04-04 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829813', 'tblTempUsageDetail_20' ) end [2025-04-04 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829813', 'tblTempVendorCDR_20' ) start [2025-04-04 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829813', 'tblTempVendorCDR_20' ) end [2025-04-04 02:34:19] Production.INFO: ProcessCDR(1,14829813,1,1,2) [2025-04-04 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829813', 'tblTempUsageDetail_20' ) start [2025-04-04 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829813', 'tblTempUsageDetail_20' ) end [2025-04-04 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:34:23] Production.INFO: ==27805== Releasing lock... [2025-04-04 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:35:06 [end_date_ymd] => 2025-04-04 02:35:06 [RateCDR] => 1 ) [2025-04-04 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:35:06' and `end` < '2025-04-04 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:35:19] Production.INFO: count ==691 [2025-04-04 02:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:35:06 - End Time 2025-04-04 02:35:06 [2025-04-04 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829818', 'tblTempUsageDetail_20' ) start [2025-04-04 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829818', 'tblTempUsageDetail_20' ) end [2025-04-04 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829818', 'tblTempVendorCDR_20' ) start [2025-04-04 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829818', 'tblTempVendorCDR_20' ) end [2025-04-04 02:35:19] Production.INFO: ProcessCDR(1,14829818,1,1,2) [2025-04-04 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829818', 'tblTempUsageDetail_20' ) start [2025-04-04 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829818', 'tblTempUsageDetail_20' ) end [2025-04-04 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:35:23] Production.INFO: ==27883== Releasing lock... [2025-04-04 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:35:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:36:06 [end_date_ymd] => 2025-04-04 02:36:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:36:06' and `end` < '2025-04-04 02: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-04 02:36:18] Production.INFO: count ==687 [2025-04-04 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:36:06 - End Time 2025-04-04 02:36:06 [2025-04-04 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829823', 'tblTempUsageDetail_20' ) start [2025-04-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829823', 'tblTempUsageDetail_20' ) end [2025-04-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829823', 'tblTempVendorCDR_20' ) start [2025-04-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829823', 'tblTempVendorCDR_20' ) end [2025-04-04 02:36:19] Production.INFO: ProcessCDR(1,14829823,1,1,2) [2025-04-04 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829823', 'tblTempUsageDetail_20' ) start [2025-04-04 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829823', 'tblTempUsageDetail_20' ) end [2025-04-04 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:36:23] Production.INFO: ==27953== Releasing lock... [2025-04-04 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:36:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:37:06 [end_date_ymd] => 2025-04-04 02:37:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:37:06' and `end` < '2025-04-04 02: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-04 02:37:19] Production.INFO: count ==687 [2025-04-04 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:37:06 - End Time 2025-04-04 02:37:06 [2025-04-04 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829828', 'tblTempUsageDetail_20' ) start [2025-04-04 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829828', 'tblTempUsageDetail_20' ) end [2025-04-04 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829828', 'tblTempVendorCDR_20' ) start [2025-04-04 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829828', 'tblTempVendorCDR_20' ) end [2025-04-04 02:37:19] Production.INFO: ProcessCDR(1,14829828,1,1,2) [2025-04-04 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829828', 'tblTempUsageDetail_20' ) start [2025-04-04 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829828', 'tblTempUsageDetail_20' ) end [2025-04-04 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:37:23] Production.INFO: ==28025== Releasing lock... [2025-04-04 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:37:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:38:05 [end_date_ymd] => 2025-04-04 02:38:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:38:05' and `end` < '2025-04-04 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-04 02:38:18] Production.INFO: count ==687 [2025-04-04 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:38:05 - End Time 2025-04-04 02:38:05 [2025-04-04 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829833', 'tblTempUsageDetail_20' ) start [2025-04-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829833', 'tblTempUsageDetail_20' ) end [2025-04-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829833', 'tblTempVendorCDR_20' ) start [2025-04-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829833', 'tblTempVendorCDR_20' ) end [2025-04-04 02:38:18] Production.INFO: ProcessCDR(1,14829833,1,1,2) [2025-04-04 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829833', 'tblTempUsageDetail_20' ) start [2025-04-04 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829833', 'tblTempUsageDetail_20' ) end [2025-04-04 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:38:22] Production.INFO: ==28096== Releasing lock... [2025-04-04 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 02:39:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:39:07 [end_date_ymd] => 2025-04-04 02:39:07 [RateCDR] => 1 ) [2025-04-04 02:39: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-03 23:39:07' and `end` < '2025-04-04 02:39: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-04 02:39:19] Production.INFO: count ==683 [2025-04-04 02:39:20] Production.ERROR: pbx CDR StartTime 2025-04-03 23:39:07 - End Time 2025-04-04 02:39:07 [2025-04-04 02:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829838', 'tblTempUsageDetail_20' ) start [2025-04-04 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829838', 'tblTempUsageDetail_20' ) end [2025-04-04 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829838', 'tblTempVendorCDR_20' ) start [2025-04-04 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829838', 'tblTempVendorCDR_20' ) end [2025-04-04 02:39:20] Production.INFO: ProcessCDR(1,14829838,1,1,2) [2025-04-04 02:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829838', 'tblTempUsageDetail_20' ) start [2025-04-04 02:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829838', 'tblTempUsageDetail_20' ) end [2025-04-04 02:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:39:24] Production.INFO: ==28168== Releasing lock... [2025-04-04 02:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:39:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:40:07 [end_date_ymd] => 2025-04-04 02:40:07 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:40:07' and `end` < '2025-04-04 02: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-04 02:40:20] Production.INFO: count ==693 [2025-04-04 02:40:20] Production.ERROR: pbx CDR StartTime 2025-04-03 23:40:07 - End Time 2025-04-04 02:40:07 [2025-04-04 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829844', 'tblTempUsageDetail_20' ) start [2025-04-04 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829844', 'tblTempUsageDetail_20' ) end [2025-04-04 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829844', 'tblTempVendorCDR_20' ) start [2025-04-04 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829844', 'tblTempVendorCDR_20' ) end [2025-04-04 02:40:20] Production.INFO: ProcessCDR(1,14829844,1,1,2) [2025-04-04 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829844', 'tblTempUsageDetail_20' ) start [2025-04-04 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829844', 'tblTempUsageDetail_20' ) end [2025-04-04 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:40:24] Production.INFO: ==28240== Releasing lock... [2025-04-04 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:40:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:41:06 [end_date_ymd] => 2025-04-04 02:41:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:41:06' and `end` < '2025-04-04 02: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-04 02:41:18] Production.INFO: count ==699 [2025-04-04 02:41:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:41:06 - End Time 2025-04-04 02:41:06 [2025-04-04 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829849', 'tblTempUsageDetail_20' ) start [2025-04-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829849', 'tblTempUsageDetail_20' ) end [2025-04-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829849', 'tblTempVendorCDR_20' ) start [2025-04-04 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829849', 'tblTempVendorCDR_20' ) end [2025-04-04 02:41:19] Production.INFO: ProcessCDR(1,14829849,1,1,2) [2025-04-04 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829849', 'tblTempUsageDetail_20' ) start [2025-04-04 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829849', 'tblTempUsageDetail_20' ) end [2025-04-04 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:41:23] Production.INFO: ==28313== Releasing lock... [2025-04-04 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:41:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:42:06 [end_date_ymd] => 2025-04-04 02:42:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:42:06' and `end` < '2025-04-04 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-04 02:42:19] Production.INFO: count ==690 [2025-04-04 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:42:06 - End Time 2025-04-04 02:42:06 [2025-04-04 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829854', 'tblTempUsageDetail_20' ) start [2025-04-04 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829854', 'tblTempUsageDetail_20' ) end [2025-04-04 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829854', 'tblTempVendorCDR_20' ) start [2025-04-04 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829854', 'tblTempVendorCDR_20' ) end [2025-04-04 02:42:19] Production.INFO: ProcessCDR(1,14829854,1,1,2) [2025-04-04 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829854', 'tblTempUsageDetail_20' ) start [2025-04-04 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829854', 'tblTempUsageDetail_20' ) end [2025-04-04 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:42:23] Production.INFO: ==28384== Releasing lock... [2025-04-04 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:42:23] Production.INFO: 33 MB #Memory Used# [2025-04-04 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:43:06 [end_date_ymd] => 2025-04-04 02:43:06 [RateCDR] => 1 ) [2025-04-04 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:43:06' and `end` < '2025-04-04 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:43:18] Production.INFO: count ==699 [2025-04-04 02:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:43:06 - End Time 2025-04-04 02:43:06 [2025-04-04 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829859', 'tblTempUsageDetail_20' ) start [2025-04-04 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829859', 'tblTempUsageDetail_20' ) end [2025-04-04 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829859', 'tblTempVendorCDR_20' ) start [2025-04-04 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829859', 'tblTempVendorCDR_20' ) end [2025-04-04 02:43:19] Production.INFO: ProcessCDR(1,14829859,1,1,2) [2025-04-04 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829859', 'tblTempUsageDetail_20' ) start [2025-04-04 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829859', 'tblTempUsageDetail_20' ) end [2025-04-04 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:43:22] Production.INFO: ==28456== Releasing lock... [2025-04-04 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:44:06 [end_date_ymd] => 2025-04-04 02:44:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:44:06' and `end` < '2025-04-04 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-04 02:44:19] Production.INFO: count ==692 [2025-04-04 02:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:44:06 - End Time 2025-04-04 02:44:06 [2025-04-04 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829864', 'tblTempUsageDetail_20' ) start [2025-04-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829864', 'tblTempUsageDetail_20' ) end [2025-04-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829864', 'tblTempVendorCDR_20' ) start [2025-04-04 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829864', 'tblTempVendorCDR_20' ) end [2025-04-04 02:44:19] Production.INFO: ProcessCDR(1,14829864,1,1,2) [2025-04-04 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829864', 'tblTempUsageDetail_20' ) start [2025-04-04 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829864', 'tblTempUsageDetail_20' ) end [2025-04-04 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:44:23] Production.INFO: ==28527== Releasing lock... [2025-04-04 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:45:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:45:07 [end_date_ymd] => 2025-04-04 02:45:07 [RateCDR] => 1 ) [2025-04-04 02:45: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-03 23:45:07' and `end` < '2025-04-04 02:45: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-04 02:45:19] Production.INFO: count ==694 [2025-04-04 02:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:45:07 - End Time 2025-04-04 02:45:07 [2025-04-04 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829869', 'tblTempUsageDetail_20' ) start [2025-04-04 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829869', 'tblTempUsageDetail_20' ) end [2025-04-04 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829869', 'tblTempVendorCDR_20' ) start [2025-04-04 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829869', 'tblTempVendorCDR_20' ) end [2025-04-04 02:45:19] Production.INFO: ProcessCDR(1,14829869,1,1,2) [2025-04-04 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829869', 'tblTempUsageDetail_20' ) start [2025-04-04 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829869', 'tblTempUsageDetail_20' ) end [2025-04-04 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:45:23] Production.INFO: ==28598== Releasing lock... [2025-04-04 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:45:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:46:06 [end_date_ymd] => 2025-04-04 02:46:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:46:06' and `end` < '2025-04-04 02: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-04 02:46:18] Production.INFO: count ==700 [2025-04-04 02:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:46:06 - End Time 2025-04-04 02:46:06 [2025-04-04 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829874', 'tblTempUsageDetail_20' ) start [2025-04-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829874', 'tblTempUsageDetail_20' ) end [2025-04-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829874', 'tblTempVendorCDR_20' ) start [2025-04-04 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829874', 'tblTempVendorCDR_20' ) end [2025-04-04 02:46:19] Production.INFO: ProcessCDR(1,14829874,1,1,2) [2025-04-04 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829874', 'tblTempUsageDetail_20' ) start [2025-04-04 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829874', 'tblTempUsageDetail_20' ) end [2025-04-04 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:46:23] Production.INFO: ==28669== Releasing lock... [2025-04-04 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:46:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:47:06 [end_date_ymd] => 2025-04-04 02:47:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:47:06' and `end` < '2025-04-04 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-04 02:47:18] Production.INFO: count ==700 [2025-04-04 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:47:06 - End Time 2025-04-04 02:47:06 [2025-04-04 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829879', 'tblTempUsageDetail_20' ) start [2025-04-04 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829879', 'tblTempUsageDetail_20' ) end [2025-04-04 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829879', 'tblTempVendorCDR_20' ) start [2025-04-04 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829879', 'tblTempVendorCDR_20' ) end [2025-04-04 02:47:19] Production.INFO: ProcessCDR(1,14829879,1,1,2) [2025-04-04 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829879', 'tblTempUsageDetail_20' ) start [2025-04-04 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829879', 'tblTempUsageDetail_20' ) end [2025-04-04 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:47:23] Production.INFO: ==28740== Releasing lock... [2025-04-04 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:48:05 [end_date_ymd] => 2025-04-04 02:48:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:48:05' and `end` < '2025-04-04 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-04 02:48:18] Production.INFO: count ==705 [2025-04-04 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:48:05 - End Time 2025-04-04 02:48:05 [2025-04-04 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829884', 'tblTempUsageDetail_20' ) start [2025-04-04 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829884', 'tblTempUsageDetail_20' ) end [2025-04-04 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829884', 'tblTempVendorCDR_20' ) start [2025-04-04 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829884', 'tblTempVendorCDR_20' ) end [2025-04-04 02:48:18] Production.INFO: ProcessCDR(1,14829884,1,1,2) [2025-04-04 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829884', 'tblTempUsageDetail_20' ) start [2025-04-04 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829884', 'tblTempUsageDetail_20' ) end [2025-04-04 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:48:22] Production.INFO: ==28810== Releasing lock... [2025-04-04 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:49:06 [end_date_ymd] => 2025-04-04 02:49:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:49:06' and `end` < '2025-04-04 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-04 02:49:19] Production.INFO: count ==710 [2025-04-04 02:49:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:49:06 - End Time 2025-04-04 02:49:06 [2025-04-04 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829889', 'tblTempUsageDetail_20' ) start [2025-04-04 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829889', 'tblTempUsageDetail_20' ) end [2025-04-04 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829889', 'tblTempVendorCDR_20' ) start [2025-04-04 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829889', 'tblTempVendorCDR_20' ) end [2025-04-04 02:49:19] Production.INFO: ProcessCDR(1,14829889,1,1,2) [2025-04-04 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829889', 'tblTempUsageDetail_20' ) start [2025-04-04 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829889', 'tblTempUsageDetail_20' ) end [2025-04-04 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:49:23] Production.INFO: ==28921== Releasing lock... [2025-04-04 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:49:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:50:06 [end_date_ymd] => 2025-04-04 02:50:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:50:06' and `end` < '2025-04-04 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-04 02:50:19] Production.INFO: count ==723 [2025-04-04 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:50:06 - End Time 2025-04-04 02:50:06 [2025-04-04 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829895', 'tblTempUsageDetail_20' ) start [2025-04-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829895', 'tblTempUsageDetail_20' ) end [2025-04-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829895', 'tblTempVendorCDR_20' ) start [2025-04-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829895', 'tblTempVendorCDR_20' ) end [2025-04-04 02:50:19] Production.INFO: ProcessCDR(1,14829895,1,1,2) [2025-04-04 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829895', 'tblTempUsageDetail_20' ) start [2025-04-04 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829895', 'tblTempUsageDetail_20' ) end [2025-04-04 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:50:23] Production.INFO: ==28993== Releasing lock... [2025-04-04 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:50:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:51:06 [end_date_ymd] => 2025-04-04 02:51:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:51:06' and `end` < '2025-04-04 02: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-04 02:51:18] Production.INFO: count ==746 [2025-04-04 02:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:51:06 - End Time 2025-04-04 02:51:06 [2025-04-04 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829900', 'tblTempUsageDetail_20' ) start [2025-04-04 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829900', 'tblTempUsageDetail_20' ) end [2025-04-04 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829900', 'tblTempVendorCDR_20' ) start [2025-04-04 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829900', 'tblTempVendorCDR_20' ) end [2025-04-04 02:51:19] Production.INFO: ProcessCDR(1,14829900,1,1,2) [2025-04-04 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829900', 'tblTempUsageDetail_20' ) start [2025-04-04 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829900', 'tblTempUsageDetail_20' ) end [2025-04-04 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:51:23] Production.INFO: ==29066== Releasing lock... [2025-04-04 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:51:23] Production.INFO: 34 MB #Memory Used# [2025-04-04 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:52:05 [end_date_ymd] => 2025-04-04 02:52:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:52:05' and `end` < '2025-04-04 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-04 02:52:18] Production.INFO: count ==776 [2025-04-04 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:52:05 - End Time 2025-04-04 02:52:05 [2025-04-04 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829905', 'tblTempUsageDetail_20' ) start [2025-04-04 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829905', 'tblTempUsageDetail_20' ) end [2025-04-04 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829905', 'tblTempVendorCDR_20' ) start [2025-04-04 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829905', 'tblTempVendorCDR_20' ) end [2025-04-04 02:52:18] Production.INFO: ProcessCDR(1,14829905,1,1,2) [2025-04-04 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829905', 'tblTempUsageDetail_20' ) start [2025-04-04 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829905', 'tblTempUsageDetail_20' ) end [2025-04-04 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:52:22] Production.INFO: ==29136== Releasing lock... [2025-04-04 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:52:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:53:05 [end_date_ymd] => 2025-04-04 02:53:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:53:05' and `end` < '2025-04-04 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:53:18] Production.INFO: count ==775 [2025-04-04 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:53:05 - End Time 2025-04-04 02:53:05 [2025-04-04 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829910', 'tblTempUsageDetail_20' ) start [2025-04-04 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829910', 'tblTempUsageDetail_20' ) end [2025-04-04 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829910', 'tblTempVendorCDR_20' ) start [2025-04-04 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829910', 'tblTempVendorCDR_20' ) end [2025-04-04 02:53:19] Production.INFO: ProcessCDR(1,14829910,1,1,2) [2025-04-04 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829910', 'tblTempUsageDetail_20' ) start [2025-04-04 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829910', 'tblTempUsageDetail_20' ) end [2025-04-04 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:53:22] Production.INFO: ==29208== Releasing lock... [2025-04-04 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:53:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:54:06 [end_date_ymd] => 2025-04-04 02:54:06 [RateCDR] => 1 ) [2025-04-04 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:54:06' and `end` < '2025-04-04 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:54:19] Production.INFO: count ==788 [2025-04-04 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:54:06 - End Time 2025-04-04 02:54:06 [2025-04-04 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829915', 'tblTempUsageDetail_20' ) start [2025-04-04 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829915', 'tblTempUsageDetail_20' ) end [2025-04-04 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829915', 'tblTempVendorCDR_20' ) start [2025-04-04 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829915', 'tblTempVendorCDR_20' ) end [2025-04-04 02:54:19] Production.INFO: ProcessCDR(1,14829915,1,1,2) [2025-04-04 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829915', 'tblTempUsageDetail_20' ) start [2025-04-04 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829915', 'tblTempUsageDetail_20' ) end [2025-04-04 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:54:23] Production.INFO: ==29284== Releasing lock... [2025-04-04 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:54:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:55:06 [end_date_ymd] => 2025-04-04 02:55:06 [RateCDR] => 1 ) [2025-04-04 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:55:06' and `end` < '2025-04-04 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:55:19] Production.INFO: count ==788 [2025-04-04 02:55:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:55:06 - End Time 2025-04-04 02:55:06 [2025-04-04 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829920', 'tblTempUsageDetail_20' ) start [2025-04-04 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829920', 'tblTempUsageDetail_20' ) end [2025-04-04 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829920', 'tblTempVendorCDR_20' ) start [2025-04-04 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829920', 'tblTempVendorCDR_20' ) end [2025-04-04 02:55:19] Production.INFO: ProcessCDR(1,14829920,1,1,2) [2025-04-04 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829920', 'tblTempUsageDetail_20' ) start [2025-04-04 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829920', 'tblTempUsageDetail_20' ) end [2025-04-04 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:55:23] Production.INFO: ==29355== Releasing lock... [2025-04-04 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:55:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:56:06 [end_date_ymd] => 2025-04-04 02:56:06 [RateCDR] => 1 ) [2025-04-04 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-03 23:56:06' and `end` < '2025-04-04 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-04 02:56:19] Production.INFO: count ==788 [2025-04-04 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:56:06 - End Time 2025-04-04 02:56:06 [2025-04-04 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829925', 'tblTempUsageDetail_20' ) start [2025-04-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829925', 'tblTempUsageDetail_20' ) end [2025-04-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829925', 'tblTempVendorCDR_20' ) start [2025-04-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829925', 'tblTempVendorCDR_20' ) end [2025-04-04 02:56:19] Production.INFO: ProcessCDR(1,14829925,1,1,2) [2025-04-04 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829925', 'tblTempUsageDetail_20' ) start [2025-04-04 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829925', 'tblTempUsageDetail_20' ) end [2025-04-04 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:56:23] Production.INFO: ==29427== Releasing lock... [2025-04-04 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:56:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:57:06 [end_date_ymd] => 2025-04-04 02:57:06 [RateCDR] => 1 ) [2025-04-04 02: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-03 23:57:06' and `end` < '2025-04-04 02: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-04 02:57:18] Production.INFO: count ==834 [2025-04-04 02:57:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:57:06 - End Time 2025-04-04 02:57:06 [2025-04-04 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829930', 'tblTempUsageDetail_20' ) start [2025-04-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829930', 'tblTempUsageDetail_20' ) end [2025-04-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829930', 'tblTempVendorCDR_20' ) start [2025-04-04 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829930', 'tblTempVendorCDR_20' ) end [2025-04-04 02:57:19] Production.INFO: ProcessCDR(1,14829930,1,1,2) [2025-04-04 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829930', 'tblTempUsageDetail_20' ) start [2025-04-04 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829930', 'tblTempUsageDetail_20' ) end [2025-04-04 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:57:22] Production.INFO: ==29500== Releasing lock... [2025-04-04 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:57:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:58:05 [end_date_ymd] => 2025-04-04 02:58:05 [RateCDR] => 1 ) [2025-04-04 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-03 23:58:05' and `end` < '2025-04-04 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-04 02:58:18] Production.INFO: count ==912 [2025-04-04 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-03 23:58:05 - End Time 2025-04-04 02:58:05 [2025-04-04 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829935', 'tblTempUsageDetail_20' ) start [2025-04-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829935', 'tblTempUsageDetail_20' ) end [2025-04-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829935', 'tblTempVendorCDR_20' ) start [2025-04-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829935', 'tblTempVendorCDR_20' ) end [2025-04-04 02:58:18] Production.INFO: ProcessCDR(1,14829935,1,1,2) [2025-04-04 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829935', 'tblTempUsageDetail_20' ) start [2025-04-04 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829935', 'tblTempUsageDetail_20' ) end [2025-04-04 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:58:22] Production.INFO: ==29570== Releasing lock... [2025-04-04 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:58:22] Production.INFO: 35 MB #Memory Used# [2025-04-04 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 23:59:06 [end_date_ymd] => 2025-04-04 02:59:06 [RateCDR] => 1 ) [2025-04-04 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 23:59:06' and `end` < '2025-04-04 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 02:59:19] Production.INFO: count ==908 [2025-04-04 02:59:19] Production.ERROR: pbx CDR StartTime 2025-04-03 23:59:06 - End Time 2025-04-04 02:59:06 [2025-04-04 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829940', 'tblTempUsageDetail_20' ) start [2025-04-04 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829940', 'tblTempUsageDetail_20' ) end [2025-04-04 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829940', 'tblTempVendorCDR_20' ) start [2025-04-04 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829940', 'tblTempVendorCDR_20' ) end [2025-04-04 02:59:19] Production.INFO: ProcessCDR(1,14829940,1,1,2) [2025-04-04 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829940', 'tblTempUsageDetail_20' ) start [2025-04-04 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829940', 'tblTempUsageDetail_20' ) end [2025-04-04 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 02:59:23] Production.INFO: ==29647== Releasing lock... [2025-04-04 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 02:59:23] Production.INFO: 35 MB #Memory Used# [2025-04-04 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:00:07 [end_date_ymd] => 2025-04-04 03:00:07 [RateCDR] => 1 ) [2025-04-04 03: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-04 00:00:07' and `end` < '2025-04-04 03: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-04 03:00:19] Production.INFO: count ==917 [2025-04-04 03:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 00:00:07 - End Time 2025-04-04 03:00:07 [2025-04-04 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829946', 'tblTempUsageDetail_20' ) start [2025-04-04 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829946', 'tblTempUsageDetail_20' ) end [2025-04-04 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829946', 'tblTempVendorCDR_20' ) start [2025-04-04 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829946', 'tblTempVendorCDR_20' ) end [2025-04-04 03:00:20] Production.INFO: ProcessCDR(1,14829946,1,1,2) [2025-04-04 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829946', 'tblTempUsageDetail_20' ) start [2025-04-04 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829946', 'tblTempUsageDetail_20' ) end [2025-04-04 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:00:24] Production.INFO: ==29755== Releasing lock... [2025-04-04 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:00:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:01:06 [end_date_ymd] => 2025-04-04 03:01:06 [RateCDR] => 1 ) [2025-04-04 03: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 00:01:06' and `end` < '2025-04-04 03: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-04 03:01:19] Production.INFO: count ==917 [2025-04-04 03:01:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:01:06 - End Time 2025-04-04 03:01:06 [2025-04-04 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829951', 'tblTempUsageDetail_20' ) start [2025-04-04 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829951', 'tblTempUsageDetail_20' ) end [2025-04-04 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829951', 'tblTempVendorCDR_20' ) start [2025-04-04 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829951', 'tblTempVendorCDR_20' ) end [2025-04-04 03:01:19] Production.INFO: ProcessCDR(1,14829951,1,1,2) [2025-04-04 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829951', 'tblTempUsageDetail_20' ) start [2025-04-04 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829951', 'tblTempUsageDetail_20' ) end [2025-04-04 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:01:23] Production.INFO: ==29869== Releasing lock... [2025-04-04 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:01:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:02:06 [end_date_ymd] => 2025-04-04 03:02:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:02:06' and `end` < '2025-04-04 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-04 03:02:18] Production.INFO: count ==913 [2025-04-04 03:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:02:06 - End Time 2025-04-04 03:02:06 [2025-04-04 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829956', 'tblTempUsageDetail_20' ) start [2025-04-04 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829956', 'tblTempUsageDetail_20' ) end [2025-04-04 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829956', 'tblTempVendorCDR_20' ) start [2025-04-04 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829956', 'tblTempVendorCDR_20' ) end [2025-04-04 03:02:19] Production.INFO: ProcessCDR(1,14829956,1,1,2) [2025-04-04 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829956', 'tblTempUsageDetail_20' ) start [2025-04-04 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829956', 'tblTempUsageDetail_20' ) end [2025-04-04 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:02:23] Production.INFO: ==30024== Releasing lock... [2025-04-04 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:02:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:03:06 [end_date_ymd] => 2025-04-04 03:03:06 [RateCDR] => 1 ) [2025-04-04 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:03:06' and `end` < '2025-04-04 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:03:18] Production.INFO: count ==894 [2025-04-04 03:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:03:06 - End Time 2025-04-04 03:03:06 [2025-04-04 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829961', 'tblTempUsageDetail_20' ) start [2025-04-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829961', 'tblTempUsageDetail_20' ) end [2025-04-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829961', 'tblTempVendorCDR_20' ) start [2025-04-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829961', 'tblTempVendorCDR_20' ) end [2025-04-04 03:03:19] Production.INFO: ProcessCDR(1,14829961,1,1,2) [2025-04-04 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829961', 'tblTempUsageDetail_20' ) start [2025-04-04 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829961', 'tblTempUsageDetail_20' ) end [2025-04-04 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:03:23] Production.INFO: ==30095== Releasing lock... [2025-04-04 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:03:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:04:05 [end_date_ymd] => 2025-04-04 03:04:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:04:05' and `end` < '2025-04-04 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-04 03:04:18] Production.INFO: count ==893 [2025-04-04 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:04:05 - End Time 2025-04-04 03:04:05 [2025-04-04 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829966', 'tblTempUsageDetail_20' ) start [2025-04-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829966', 'tblTempUsageDetail_20' ) end [2025-04-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829966', 'tblTempVendorCDR_20' ) start [2025-04-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829966', 'tblTempVendorCDR_20' ) end [2025-04-04 03:04:18] Production.INFO: ProcessCDR(1,14829966,1,1,2) [2025-04-04 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829966', 'tblTempUsageDetail_20' ) start [2025-04-04 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829966', 'tblTempUsageDetail_20' ) end [2025-04-04 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:04:22] Production.INFO: ==30167== Releasing lock... [2025-04-04 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:05:06 [end_date_ymd] => 2025-04-04 03:05:06 [RateCDR] => 1 ) [2025-04-04 03: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 00:05:06' and `end` < '2025-04-04 03: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-04 03:05:18] Production.INFO: count ==891 [2025-04-04 03:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:05:06 - End Time 2025-04-04 03:05:06 [2025-04-04 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829971', 'tblTempUsageDetail_20' ) start [2025-04-04 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829971', 'tblTempUsageDetail_20' ) end [2025-04-04 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829971', 'tblTempVendorCDR_20' ) start [2025-04-04 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829971', 'tblTempVendorCDR_20' ) end [2025-04-04 03:05:19] Production.INFO: ProcessCDR(1,14829971,1,1,2) [2025-04-04 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829971', 'tblTempUsageDetail_20' ) start [2025-04-04 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829971', 'tblTempUsageDetail_20' ) end [2025-04-04 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:05:22] Production.INFO: ==30276== Releasing lock... [2025-04-04 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:05:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:06:05 [end_date_ymd] => 2025-04-04 03:06:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:06:05' and `end` < '2025-04-04 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-04 03:06:18] Production.INFO: count ==876 [2025-04-04 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:06:05 - End Time 2025-04-04 03:06:05 [2025-04-04 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829976', 'tblTempUsageDetail_20' ) start [2025-04-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829976', 'tblTempUsageDetail_20' ) end [2025-04-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829976', 'tblTempVendorCDR_20' ) start [2025-04-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829976', 'tblTempVendorCDR_20' ) end [2025-04-04 03:06:18] Production.INFO: ProcessCDR(1,14829976,1,1,2) [2025-04-04 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829976', 'tblTempUsageDetail_20' ) start [2025-04-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829976', 'tblTempUsageDetail_20' ) end [2025-04-04 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:06:21] Production.INFO: ==30423== Releasing lock... [2025-04-04 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:06:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:07:06 [end_date_ymd] => 2025-04-04 03:07:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:07:06' and `end` < '2025-04-04 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-04 03:07:18] Production.INFO: count ==861 [2025-04-04 03:07:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:07:06 - End Time 2025-04-04 03:07:06 [2025-04-04 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829981', 'tblTempUsageDetail_20' ) start [2025-04-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829981', 'tblTempUsageDetail_20' ) end [2025-04-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829981', 'tblTempVendorCDR_20' ) start [2025-04-04 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829981', 'tblTempVendorCDR_20' ) end [2025-04-04 03:07:19] Production.INFO: ProcessCDR(1,14829981,1,1,2) [2025-04-04 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829981', 'tblTempUsageDetail_20' ) start [2025-04-04 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829981', 'tblTempUsageDetail_20' ) end [2025-04-04 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:07:22] Production.INFO: ==30491== Releasing lock... [2025-04-04 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:07:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:08:05 [end_date_ymd] => 2025-04-04 03:08:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:08:05' and `end` < '2025-04-04 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-04 03:08:18] Production.INFO: count ==1193 [2025-04-04 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:08:05 - End Time 2025-04-04 03:08:05 [2025-04-04 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829986', 'tblTempUsageDetail_20' ) start [2025-04-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829986', 'tblTempUsageDetail_20' ) end [2025-04-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829986', 'tblTempVendorCDR_20' ) start [2025-04-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829986', 'tblTempVendorCDR_20' ) end [2025-04-04 03:08:18] Production.INFO: ProcessCDR(1,14829986,1,1,2) [2025-04-04 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829986', 'tblTempUsageDetail_20' ) start [2025-04-04 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829986', 'tblTempUsageDetail_20' ) end [2025-04-04 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:08:22] Production.INFO: ==30560== Releasing lock... [2025-04-04 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:09:05 [end_date_ymd] => 2025-04-04 03:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:09:05' and `end` < '2025-04-04 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-04 03:09:18] Production.INFO: count ==1205 [2025-04-04 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:09:05 - End Time 2025-04-04 03:09:05 [2025-04-04 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829991', 'tblTempUsageDetail_20' ) start [2025-04-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829991', 'tblTempUsageDetail_20' ) end [2025-04-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829991', 'tblTempVendorCDR_20' ) start [2025-04-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829991', 'tblTempVendorCDR_20' ) end [2025-04-04 03:09:18] Production.INFO: ProcessCDR(1,14829991,1,1,2) [2025-04-04 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829991', 'tblTempUsageDetail_20' ) start [2025-04-04 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829991', 'tblTempUsageDetail_20' ) end [2025-04-04 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:09:22] Production.INFO: ==30707== Releasing lock... [2025-04-04 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:09:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:10:07 [end_date_ymd] => 2025-04-04 03:10:07 [RateCDR] => 1 ) [2025-04-04 03: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 00:10:07' and `end` < '2025-04-04 03: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-04 03:10:19] Production.INFO: count ==1196 [2025-04-04 03:10:20] Production.ERROR: pbx CDR StartTime 2025-04-04 00:10:07 - End Time 2025-04-04 03:10:07 [2025-04-04 03:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829997', 'tblTempUsageDetail_20' ) start [2025-04-04 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829997', 'tblTempUsageDetail_20' ) end [2025-04-04 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829997', 'tblTempVendorCDR_20' ) start [2025-04-04 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829997', 'tblTempVendorCDR_20' ) end [2025-04-04 03:10:20] Production.INFO: ProcessCDR(1,14829997,1,1,2) [2025-04-04 03:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829997', 'tblTempUsageDetail_20' ) start [2025-04-04 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829997', 'tblTempUsageDetail_20' ) end [2025-04-04 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:10:23] Production.INFO: ==30780== Releasing lock... [2025-04-04 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:11:05 [end_date_ymd] => 2025-04-04 03:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:11:05' and `end` < '2025-04-04 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-04 03:11:18] Production.INFO: count ==1184 [2025-04-04 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:11:05 - End Time 2025-04-04 03:11:05 [2025-04-04 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830002', 'tblTempUsageDetail_20' ) start [2025-04-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830002', 'tblTempUsageDetail_20' ) end [2025-04-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830002', 'tblTempVendorCDR_20' ) start [2025-04-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830002', 'tblTempVendorCDR_20' ) end [2025-04-04 03:11:18] Production.INFO: ProcessCDR(1,14830002,1,1,2) [2025-04-04 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830002', 'tblTempUsageDetail_20' ) start [2025-04-04 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830002', 'tblTempUsageDetail_20' ) end [2025-04-04 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:11:22] Production.INFO: ==30852== Releasing lock... [2025-04-04 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:12:05 [end_date_ymd] => 2025-04-04 03:12:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:12:05' and `end` < '2025-04-04 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-04 03:12:18] Production.INFO: count ==1183 [2025-04-04 03:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:12:05 - End Time 2025-04-04 03:12:05 [2025-04-04 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830007', 'tblTempUsageDetail_20' ) start [2025-04-04 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830007', 'tblTempUsageDetail_20' ) end [2025-04-04 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830007', 'tblTempVendorCDR_20' ) start [2025-04-04 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830007', 'tblTempVendorCDR_20' ) end [2025-04-04 03:12:19] Production.INFO: ProcessCDR(1,14830007,1,1,2) [2025-04-04 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830007', 'tblTempUsageDetail_20' ) start [2025-04-04 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830007', 'tblTempUsageDetail_20' ) end [2025-04-04 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:12:22] Production.INFO: ==30927== Releasing lock... [2025-04-04 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:12:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:13:05 [end_date_ymd] => 2025-04-04 03:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:13:05' and `end` < '2025-04-04 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-04 03:13:18] Production.INFO: count ==1181 [2025-04-04 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:13:05 - End Time 2025-04-04 03:13:05 [2025-04-04 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830012', 'tblTempUsageDetail_20' ) start [2025-04-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830012', 'tblTempUsageDetail_20' ) end [2025-04-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830012', 'tblTempVendorCDR_20' ) start [2025-04-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830012', 'tblTempVendorCDR_20' ) end [2025-04-04 03:13:18] Production.INFO: ProcessCDR(1,14830012,1,1,2) [2025-04-04 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830012', 'tblTempUsageDetail_20' ) start [2025-04-04 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830012', 'tblTempUsageDetail_20' ) end [2025-04-04 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:13:22] Production.INFO: ==31079== Releasing lock... [2025-04-04 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:13:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:14:06 [end_date_ymd] => 2025-04-04 03:14:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:14:06' and `end` < '2025-04-04 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-04 03:14:18] Production.INFO: count ==1183 [2025-04-04 03:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:14:06 - End Time 2025-04-04 03:14:06 [2025-04-04 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830017', 'tblTempUsageDetail_20' ) start [2025-04-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830017', 'tblTempUsageDetail_20' ) end [2025-04-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830017', 'tblTempVendorCDR_20' ) start [2025-04-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830017', 'tblTempVendorCDR_20' ) end [2025-04-04 03:14:19] Production.INFO: ProcessCDR(1,14830017,1,1,2) [2025-04-04 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830017', 'tblTempUsageDetail_20' ) start [2025-04-04 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830017', 'tblTempUsageDetail_20' ) end [2025-04-04 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:14:22] Production.INFO: ==31147== Releasing lock... [2025-04-04 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:15:05 [end_date_ymd] => 2025-04-04 03:15:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:15:05' and `end` < '2025-04-04 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-04 03:15:18] Production.INFO: count ==1183 [2025-04-04 03:15:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:15:05 - End Time 2025-04-04 03:15:05 [2025-04-04 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830022', 'tblTempUsageDetail_20' ) start [2025-04-04 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830022', 'tblTempUsageDetail_20' ) end [2025-04-04 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830022', 'tblTempVendorCDR_20' ) start [2025-04-04 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830022', 'tblTempVendorCDR_20' ) end [2025-04-04 03:15:19] Production.INFO: ProcessCDR(1,14830022,1,1,2) [2025-04-04 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830022', 'tblTempUsageDetail_20' ) start [2025-04-04 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830022', 'tblTempUsageDetail_20' ) end [2025-04-04 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:15:22] Production.INFO: ==31219== Releasing lock... [2025-04-04 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:16:06 [end_date_ymd] => 2025-04-04 03:16:06 [RateCDR] => 1 ) [2025-04-04 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:16:06' and `end` < '2025-04-04 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:16:19] Production.INFO: count ==1176 [2025-04-04 03:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:16:06 - End Time 2025-04-04 03:16:06 [2025-04-04 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830027', 'tblTempUsageDetail_20' ) start [2025-04-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830027', 'tblTempUsageDetail_20' ) end [2025-04-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830027', 'tblTempVendorCDR_20' ) start [2025-04-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830027', 'tblTempVendorCDR_20' ) end [2025-04-04 03:16:19] Production.INFO: ProcessCDR(1,14830027,1,1,2) [2025-04-04 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830027', 'tblTempUsageDetail_20' ) start [2025-04-04 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830027', 'tblTempUsageDetail_20' ) end [2025-04-04 03:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:16:23] Production.INFO: ==31291== Releasing lock... [2025-04-04 03:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:16:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:17:05 [end_date_ymd] => 2025-04-04 03:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:17:05' and `end` < '2025-04-04 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-04 03:17:18] Production.INFO: count ==1179 [2025-04-04 03:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:17:05 - End Time 2025-04-04 03:17:05 [2025-04-04 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830032', 'tblTempUsageDetail_20' ) start [2025-04-04 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830032', 'tblTempUsageDetail_20' ) end [2025-04-04 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830032', 'tblTempVendorCDR_20' ) start [2025-04-04 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830032', 'tblTempVendorCDR_20' ) end [2025-04-04 03:17:19] Production.INFO: ProcessCDR(1,14830032,1,1,2) [2025-04-04 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830032', 'tblTempUsageDetail_20' ) start [2025-04-04 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830032', 'tblTempUsageDetail_20' ) end [2025-04-04 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:17:22] Production.INFO: ==31437== Releasing lock... [2025-04-04 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:17:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:18:06 [end_date_ymd] => 2025-04-04 03:18:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:18:06' and `end` < '2025-04-04 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-04 03:18:18] Production.INFO: count ==1179 [2025-04-04 03:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:18:06 - End Time 2025-04-04 03:18:06 [2025-04-04 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830037', 'tblTempUsageDetail_20' ) start [2025-04-04 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830037', 'tblTempUsageDetail_20' ) end [2025-04-04 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830037', 'tblTempVendorCDR_20' ) start [2025-04-04 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830037', 'tblTempVendorCDR_20' ) end [2025-04-04 03:18:19] Production.INFO: ProcessCDR(1,14830037,1,1,2) [2025-04-04 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830037', 'tblTempUsageDetail_20' ) start [2025-04-04 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830037', 'tblTempUsageDetail_20' ) end [2025-04-04 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:18:22] Production.INFO: ==31506== Releasing lock... [2025-04-04 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:18:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:19:05 [end_date_ymd] => 2025-04-04 03:19:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:19:05' and `end` < '2025-04-04 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-04 03:19:18] Production.INFO: count ==1172 [2025-04-04 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:19:05 - End Time 2025-04-04 03:19:05 [2025-04-04 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830042', 'tblTempUsageDetail_20' ) start [2025-04-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830042', 'tblTempUsageDetail_20' ) end [2025-04-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830042', 'tblTempVendorCDR_20' ) start [2025-04-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830042', 'tblTempVendorCDR_20' ) end [2025-04-04 03:19:18] Production.INFO: ProcessCDR(1,14830042,1,1,2) [2025-04-04 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830042', 'tblTempUsageDetail_20' ) start [2025-04-04 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830042', 'tblTempUsageDetail_20' ) end [2025-04-04 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:19:22] Production.INFO: ==31575== Releasing lock... [2025-04-04 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:19:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:20:06 [end_date_ymd] => 2025-04-04 03:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:20:06' and `end` < '2025-04-04 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-04 03:20:19] Production.INFO: count ==1160 [2025-04-04 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:20:06 - End Time 2025-04-04 03:20:06 [2025-04-04 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830047', 'tblTempUsageDetail_20' ) start [2025-04-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830047', 'tblTempUsageDetail_20' ) end [2025-04-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830047', 'tblTempVendorCDR_20' ) start [2025-04-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830047', 'tblTempVendorCDR_20' ) end [2025-04-04 03:20:19] Production.INFO: ProcessCDR(1,14830047,1,1,2) [2025-04-04 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830047', 'tblTempUsageDetail_20' ) start [2025-04-04 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830047', 'tblTempUsageDetail_20' ) end [2025-04-04 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:20:23] Production.INFO: ==31646== Releasing lock... [2025-04-04 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:20:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:21:06 [end_date_ymd] => 2025-04-04 03:21:06 [RateCDR] => 1 ) [2025-04-04 03: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-04 00:21:06' and `end` < '2025-04-04 03: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-04 03:21:18] Production.INFO: count ==1161 [2025-04-04 03:21:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:21:06 - End Time 2025-04-04 03:21:06 [2025-04-04 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830053', 'tblTempUsageDetail_20' ) start [2025-04-04 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830053', 'tblTempUsageDetail_20' ) end [2025-04-04 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830053', 'tblTempVendorCDR_20' ) start [2025-04-04 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830053', 'tblTempVendorCDR_20' ) end [2025-04-04 03:21:19] Production.INFO: ProcessCDR(1,14830053,1,1,2) [2025-04-04 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830053', 'tblTempUsageDetail_20' ) start [2025-04-04 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830053', 'tblTempUsageDetail_20' ) end [2025-04-04 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:21:23] Production.INFO: ==31717== Releasing lock... [2025-04-04 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:21:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:22:06 [end_date_ymd] => 2025-04-04 03:22:06 [RateCDR] => 1 ) [2025-04-04 03: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 00:22:06' and `end` < '2025-04-04 03: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-04 03:22:18] Production.INFO: count ==1169 [2025-04-04 03:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:22:06 - End Time 2025-04-04 03:22:06 [2025-04-04 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830058', 'tblTempUsageDetail_20' ) start [2025-04-04 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830058', 'tblTempUsageDetail_20' ) end [2025-04-04 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830058', 'tblTempVendorCDR_20' ) start [2025-04-04 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830058', 'tblTempVendorCDR_20' ) end [2025-04-04 03:22:19] Production.INFO: ProcessCDR(1,14830058,1,1,2) [2025-04-04 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830058', 'tblTempUsageDetail_20' ) start [2025-04-04 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830058', 'tblTempUsageDetail_20' ) end [2025-04-04 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:22:22] Production.INFO: ==31826== Releasing lock... [2025-04-04 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:22:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:23:05 [end_date_ymd] => 2025-04-04 03:23:05 [RateCDR] => 1 ) [2025-04-04 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:23:05' and `end` < '2025-04-04 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-04 03:23:18] Production.INFO: count ==1165 [2025-04-04 03:23:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:23:05 - End Time 2025-04-04 03:23:05 [2025-04-04 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830063', 'tblTempUsageDetail_20' ) start [2025-04-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830063', 'tblTempUsageDetail_20' ) end [2025-04-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830063', 'tblTempVendorCDR_20' ) start [2025-04-04 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830063', 'tblTempVendorCDR_20' ) end [2025-04-04 03:23:19] Production.INFO: ProcessCDR(1,14830063,1,1,2) [2025-04-04 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830063', 'tblTempUsageDetail_20' ) start [2025-04-04 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830063', 'tblTempUsageDetail_20' ) end [2025-04-04 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:23:22] Production.INFO: ==31901== Releasing lock... [2025-04-04 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:24:06 [end_date_ymd] => 2025-04-04 03:24:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:24:06' and `end` < '2025-04-04 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-04 03:24:19] Production.INFO: count ==1170 [2025-04-04 03:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:24:06 - End Time 2025-04-04 03:24:06 [2025-04-04 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830068', 'tblTempUsageDetail_20' ) start [2025-04-04 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830068', 'tblTempUsageDetail_20' ) end [2025-04-04 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830068', 'tblTempVendorCDR_20' ) start [2025-04-04 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830068', 'tblTempVendorCDR_20' ) end [2025-04-04 03:24:19] Production.INFO: ProcessCDR(1,14830068,1,1,2) [2025-04-04 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830068', 'tblTempUsageDetail_20' ) start [2025-04-04 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830068', 'tblTempUsageDetail_20' ) end [2025-04-04 03:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:24:23] Production.INFO: ==31971== Releasing lock... [2025-04-04 03:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:24:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:25:05 [end_date_ymd] => 2025-04-04 03:25:05 [RateCDR] => 1 ) [2025-04-04 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:25:05' and `end` < '2025-04-04 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:25:18] Production.INFO: count ==1170 [2025-04-04 03:25:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:25:05 - End Time 2025-04-04 03:25:05 [2025-04-04 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830073', 'tblTempUsageDetail_20' ) start [2025-04-04 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830073', 'tblTempUsageDetail_20' ) end [2025-04-04 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830073', 'tblTempVendorCDR_20' ) start [2025-04-04 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830073', 'tblTempVendorCDR_20' ) end [2025-04-04 03:25:19] Production.INFO: ProcessCDR(1,14830073,1,1,2) [2025-04-04 03:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830073', 'tblTempUsageDetail_20' ) start [2025-04-04 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830073', 'tblTempUsageDetail_20' ) end [2025-04-04 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:25:22] Production.INFO: ==32041== Releasing lock... [2025-04-04 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:25:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:26:05 [end_date_ymd] => 2025-04-04 03:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:26:05' and `end` < '2025-04-04 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-04 03:26:18] Production.INFO: count ==1170 [2025-04-04 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:26:05 - End Time 2025-04-04 03:26:05 [2025-04-04 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830078', 'tblTempUsageDetail_20' ) start [2025-04-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830078', 'tblTempUsageDetail_20' ) end [2025-04-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830078', 'tblTempVendorCDR_20' ) start [2025-04-04 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830078', 'tblTempVendorCDR_20' ) end [2025-04-04 03:26:18] Production.INFO: ProcessCDR(1,14830078,1,1,2) [2025-04-04 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830078', 'tblTempUsageDetail_20' ) start [2025-04-04 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830078', 'tblTempUsageDetail_20' ) end [2025-04-04 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:26:22] Production.INFO: ==32114== Releasing lock... [2025-04-04 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:26:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:27:05 [end_date_ymd] => 2025-04-04 03:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:27:05' and `end` < '2025-04-04 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-04 03:27:18] Production.INFO: count ==1170 [2025-04-04 03:27:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:27:05 - End Time 2025-04-04 03:27:05 [2025-04-04 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830083', 'tblTempUsageDetail_20' ) start [2025-04-04 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830083', 'tblTempUsageDetail_20' ) end [2025-04-04 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830083', 'tblTempVendorCDR_20' ) start [2025-04-04 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830083', 'tblTempVendorCDR_20' ) end [2025-04-04 03:27:19] Production.INFO: ProcessCDR(1,14830083,1,1,2) [2025-04-04 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830083', 'tblTempUsageDetail_20' ) start [2025-04-04 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830083', 'tblTempUsageDetail_20' ) end [2025-04-04 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:27:22] Production.INFO: ==32183== Releasing lock... [2025-04-04 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:27:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:28:05 [end_date_ymd] => 2025-04-04 03:28:05 [RateCDR] => 1 ) [2025-04-04 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:28:05' and `end` < '2025-04-04 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:28:18] Production.INFO: count ==1170 [2025-04-04 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:28:05 - End Time 2025-04-04 03:28:05 [2025-04-04 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830088', 'tblTempUsageDetail_20' ) start [2025-04-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830088', 'tblTempUsageDetail_20' ) end [2025-04-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830088', 'tblTempVendorCDR_20' ) start [2025-04-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830088', 'tblTempVendorCDR_20' ) end [2025-04-04 03:28:18] Production.INFO: ProcessCDR(1,14830088,1,1,2) [2025-04-04 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830088', 'tblTempUsageDetail_20' ) start [2025-04-04 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830088', 'tblTempUsageDetail_20' ) end [2025-04-04 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:28:22] Production.INFO: ==32253== Releasing lock... [2025-04-04 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:28:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:29:05 [end_date_ymd] => 2025-04-04 03:29:05 [RateCDR] => 1 ) [2025-04-04 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:29:05' and `end` < '2025-04-04 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:29:18] Production.INFO: count ==1170 [2025-04-04 03:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:29:05 - End Time 2025-04-04 03:29:05 [2025-04-04 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830093', 'tblTempUsageDetail_20' ) start [2025-04-04 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830093', 'tblTempUsageDetail_20' ) end [2025-04-04 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830093', 'tblTempVendorCDR_20' ) start [2025-04-04 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830093', 'tblTempVendorCDR_20' ) end [2025-04-04 03:29:19] Production.INFO: ProcessCDR(1,14830093,1,1,2) [2025-04-04 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830093', 'tblTempUsageDetail_20' ) start [2025-04-04 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830093', 'tblTempUsageDetail_20' ) end [2025-04-04 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:29:22] Production.INFO: ==32321== Releasing lock... [2025-04-04 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:29:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:30:06 [end_date_ymd] => 2025-04-04 03:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:30:06' and `end` < '2025-04-04 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-04 03:30:19] Production.INFO: count ==1167 [2025-04-04 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:30:06 - End Time 2025-04-04 03:30:06 [2025-04-04 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830099', 'tblTempUsageDetail_20' ) start [2025-04-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830099', 'tblTempUsageDetail_20' ) end [2025-04-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830099', 'tblTempVendorCDR_20' ) start [2025-04-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830099', 'tblTempVendorCDR_20' ) end [2025-04-04 03:30:19] Production.INFO: ProcessCDR(1,14830099,1,1,2) [2025-04-04 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830099', 'tblTempUsageDetail_20' ) start [2025-04-04 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830099', 'tblTempUsageDetail_20' ) end [2025-04-04 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:30:23] Production.INFO: ==32394== Releasing lock... [2025-04-04 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:31:05 [end_date_ymd] => 2025-04-04 03:31:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:31:05' and `end` < '2025-04-04 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-04 03:31:18] Production.INFO: count ==1167 [2025-04-04 03:31:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:31:05 - End Time 2025-04-04 03:31:05 [2025-04-04 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830104', 'tblTempUsageDetail_20' ) start [2025-04-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830104', 'tblTempUsageDetail_20' ) end [2025-04-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830104', 'tblTempVendorCDR_20' ) start [2025-04-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830104', 'tblTempVendorCDR_20' ) end [2025-04-04 03:31:19] Production.INFO: ProcessCDR(1,14830104,1,1,2) [2025-04-04 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830104', 'tblTempUsageDetail_20' ) start [2025-04-04 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830104', 'tblTempUsageDetail_20' ) end [2025-04-04 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:31:23] Production.INFO: ==32466== Releasing lock... [2025-04-04 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:31:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:32:05 [end_date_ymd] => 2025-04-04 03:32:05 [RateCDR] => 1 ) [2025-04-04 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:32:05' and `end` < '2025-04-04 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:32:18] Production.INFO: count ==1165 [2025-04-04 03:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:32:05 - End Time 2025-04-04 03:32:05 [2025-04-04 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830109', 'tblTempUsageDetail_20' ) start [2025-04-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830109', 'tblTempUsageDetail_20' ) end [2025-04-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830109', 'tblTempVendorCDR_20' ) start [2025-04-04 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830109', 'tblTempVendorCDR_20' ) end [2025-04-04 03:32:19] Production.INFO: ProcessCDR(1,14830109,1,1,2) [2025-04-04 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830109', 'tblTempUsageDetail_20' ) start [2025-04-04 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830109', 'tblTempUsageDetail_20' ) end [2025-04-04 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:32:23] Production.INFO: ==32534== Releasing lock... [2025-04-04 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:32:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:33:06 [end_date_ymd] => 2025-04-04 03:33:06 [RateCDR] => 1 ) [2025-04-04 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:33:06' and `end` < '2025-04-04 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:33:18] Production.INFO: count ==1162 [2025-04-04 03:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:33:06 - End Time 2025-04-04 03:33:06 [2025-04-04 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830114', 'tblTempUsageDetail_20' ) start [2025-04-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830114', 'tblTempUsageDetail_20' ) end [2025-04-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830114', 'tblTempVendorCDR_20' ) start [2025-04-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830114', 'tblTempVendorCDR_20' ) end [2025-04-04 03:33:19] Production.INFO: ProcessCDR(1,14830114,1,1,2) [2025-04-04 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830114', 'tblTempUsageDetail_20' ) start [2025-04-04 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830114', 'tblTempUsageDetail_20' ) end [2025-04-04 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:33:23] Production.INFO: ==32626== Releasing lock... [2025-04-04 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:33:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:34:05 [end_date_ymd] => 2025-04-04 03:34:05 [RateCDR] => 1 ) [2025-04-04 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:34:05' and `end` < '2025-04-04 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:34:18] Production.INFO: count ==1162 [2025-04-04 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-04 00:34:05 - End Time 2025-04-04 03:34:05 [2025-04-04 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830119', 'tblTempUsageDetail_20' ) start [2025-04-04 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830119', 'tblTempUsageDetail_20' ) end [2025-04-04 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830119', 'tblTempVendorCDR_20' ) start [2025-04-04 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830119', 'tblTempVendorCDR_20' ) end [2025-04-04 03:34:19] Production.INFO: ProcessCDR(1,14830119,1,1,2) [2025-04-04 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830119', 'tblTempUsageDetail_20' ) start [2025-04-04 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830119', 'tblTempUsageDetail_20' ) end [2025-04-04 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:34:22] Production.INFO: ==32717== Releasing lock... [2025-04-04 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:34:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:35:06 [end_date_ymd] => 2025-04-04 03:35:06 [RateCDR] => 1 ) [2025-04-04 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:35:06' and `end` < '2025-04-04 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:35:19] Production.INFO: count ==1162 [2025-04-04 03:35:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:35:06 - End Time 2025-04-04 03:35:06 [2025-04-04 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830124', 'tblTempUsageDetail_20' ) start [2025-04-04 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830124', 'tblTempUsageDetail_20' ) end [2025-04-04 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830124', 'tblTempVendorCDR_20' ) start [2025-04-04 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830124', 'tblTempVendorCDR_20' ) end [2025-04-04 03:35:19] Production.INFO: ProcessCDR(1,14830124,1,1,2) [2025-04-04 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830124', 'tblTempUsageDetail_20' ) start [2025-04-04 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830124', 'tblTempUsageDetail_20' ) end [2025-04-04 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:35:23] Production.INFO: ==325== Releasing lock... [2025-04-04 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:35:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:36:06 [end_date_ymd] => 2025-04-04 03:36:06 [RateCDR] => 1 ) [2025-04-04 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:36:06' and `end` < '2025-04-04 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:36:18] Production.INFO: count ==1161 [2025-04-04 03:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:36:06 - End Time 2025-04-04 03:36:06 [2025-04-04 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830129', 'tblTempUsageDetail_20' ) start [2025-04-04 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830129', 'tblTempUsageDetail_20' ) end [2025-04-04 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830129', 'tblTempVendorCDR_20' ) start [2025-04-04 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830129', 'tblTempVendorCDR_20' ) end [2025-04-04 03:36:19] Production.INFO: ProcessCDR(1,14830129,1,1,2) [2025-04-04 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830129', 'tblTempUsageDetail_20' ) start [2025-04-04 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830129', 'tblTempUsageDetail_20' ) end [2025-04-04 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:36:23] Production.INFO: ==406== Releasing lock... [2025-04-04 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:36:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:37:06 [end_date_ymd] => 2025-04-04 03:37:06 [RateCDR] => 1 ) [2025-04-04 03: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-04 00:37:06' and `end` < '2025-04-04 03: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-04 03:37:19] Production.INFO: count ==1157 [2025-04-04 03:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:37:06 - End Time 2025-04-04 03:37:06 [2025-04-04 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830134', 'tblTempUsageDetail_20' ) start [2025-04-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830134', 'tblTempUsageDetail_20' ) end [2025-04-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830134', 'tblTempVendorCDR_20' ) start [2025-04-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830134', 'tblTempVendorCDR_20' ) end [2025-04-04 03:37:19] Production.INFO: ProcessCDR(1,14830134,1,1,2) [2025-04-04 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830134', 'tblTempUsageDetail_20' ) start [2025-04-04 03:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830134', 'tblTempUsageDetail_20' ) end [2025-04-04 03:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:37:23] Production.INFO: ==520== Releasing lock... [2025-04-04 03:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:38:05 [end_date_ymd] => 2025-04-04 03:38:05 [RateCDR] => 1 ) [2025-04-04 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:38:05' and `end` < '2025-04-04 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:38:18] Production.INFO: count ==1156 [2025-04-04 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:38:05 - End Time 2025-04-04 03:38:05 [2025-04-04 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830139', 'tblTempUsageDetail_20' ) start [2025-04-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830139', 'tblTempUsageDetail_20' ) end [2025-04-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830139', 'tblTempVendorCDR_20' ) start [2025-04-04 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830139', 'tblTempVendorCDR_20' ) end [2025-04-04 03:38:19] Production.INFO: ProcessCDR(1,14830139,1,1,2) [2025-04-04 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830139', 'tblTempUsageDetail_20' ) start [2025-04-04 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830139', 'tblTempUsageDetail_20' ) end [2025-04-04 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:38:22] Production.INFO: ==591== Releasing lock... [2025-04-04 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:38:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:39:06 [end_date_ymd] => 2025-04-04 03:39:06 [RateCDR] => 1 ) [2025-04-04 03: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 00:39:06' and `end` < '2025-04-04 03: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-04 03:39:18] Production.INFO: count ==1156 [2025-04-04 03:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:39:06 - End Time 2025-04-04 03:39:06 [2025-04-04 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830144', 'tblTempUsageDetail_20' ) start [2025-04-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830144', 'tblTempUsageDetail_20' ) end [2025-04-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830144', 'tblTempVendorCDR_20' ) start [2025-04-04 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830144', 'tblTempVendorCDR_20' ) end [2025-04-04 03:39:19] Production.INFO: ProcessCDR(1,14830144,1,1,2) [2025-04-04 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830144', 'tblTempUsageDetail_20' ) start [2025-04-04 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830144', 'tblTempUsageDetail_20' ) end [2025-04-04 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:39:23] Production.INFO: ==693== Releasing lock... [2025-04-04 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:39:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:40:06 [end_date_ymd] => 2025-04-04 03:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:40:06' and `end` < '2025-04-04 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-04 03:40:19] Production.INFO: count ==1145 [2025-04-04 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:40:06 - End Time 2025-04-04 03:40:06 [2025-04-04 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830150', 'tblTempUsageDetail_20' ) start [2025-04-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830150', 'tblTempUsageDetail_20' ) end [2025-04-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830150', 'tblTempVendorCDR_20' ) start [2025-04-04 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830150', 'tblTempVendorCDR_20' ) end [2025-04-04 03:40:19] Production.INFO: ProcessCDR(1,14830150,1,1,2) [2025-04-04 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830150', 'tblTempUsageDetail_20' ) start [2025-04-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830150', 'tblTempUsageDetail_20' ) end [2025-04-04 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:40:23] Production.INFO: ==775== Releasing lock... [2025-04-04 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:40:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:41:06 [end_date_ymd] => 2025-04-04 03:41:06 [RateCDR] => 1 ) [2025-04-04 03: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 00:41:06' and `end` < '2025-04-04 03: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-04 03:41:19] Production.INFO: count ==1141 [2025-04-04 03:41:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:41:06 - End Time 2025-04-04 03:41:06 [2025-04-04 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830155', 'tblTempUsageDetail_20' ) start [2025-04-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830155', 'tblTempUsageDetail_20' ) end [2025-04-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830155', 'tblTempVendorCDR_20' ) start [2025-04-04 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830155', 'tblTempVendorCDR_20' ) end [2025-04-04 03:41:19] Production.INFO: ProcessCDR(1,14830155,1,1,2) [2025-04-04 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830155', 'tblTempUsageDetail_20' ) start [2025-04-04 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830155', 'tblTempUsageDetail_20' ) end [2025-04-04 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:41:23] Production.INFO: ==857== Releasing lock... [2025-04-04 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:41:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:42:06 [end_date_ymd] => 2025-04-04 03:42:06 [RateCDR] => 1 ) [2025-04-04 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:42:06' and `end` < '2025-04-04 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:42:18] Production.INFO: count ==1145 [2025-04-04 03:42:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:42:06 - End Time 2025-04-04 03:42:06 [2025-04-04 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830160', 'tblTempUsageDetail_20' ) start [2025-04-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830160', 'tblTempUsageDetail_20' ) end [2025-04-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830160', 'tblTempVendorCDR_20' ) start [2025-04-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830160', 'tblTempVendorCDR_20' ) end [2025-04-04 03:42:19] Production.INFO: ProcessCDR(1,14830160,1,1,2) [2025-04-04 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830160', 'tblTempUsageDetail_20' ) start [2025-04-04 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830160', 'tblTempUsageDetail_20' ) end [2025-04-04 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:42:23] Production.INFO: ==926== Releasing lock... [2025-04-04 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:42:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:43:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:43:07 [end_date_ymd] => 2025-04-04 03:43:07 [RateCDR] => 1 ) [2025-04-04 03:43: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 00:43:07' and `end` < '2025-04-04 03:43: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-04 03:43:19] Production.INFO: count ==1145 [2025-04-04 03:43:20] Production.ERROR: pbx CDR StartTime 2025-04-04 00:43:07 - End Time 2025-04-04 03:43:07 [2025-04-04 03:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830165', 'tblTempUsageDetail_20' ) start [2025-04-04 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830165', 'tblTempUsageDetail_20' ) end [2025-04-04 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830165', 'tblTempVendorCDR_20' ) start [2025-04-04 03:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830165', 'tblTempVendorCDR_20' ) end [2025-04-04 03:43:20] Production.INFO: ProcessCDR(1,14830165,1,1,2) [2025-04-04 03:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830165', 'tblTempUsageDetail_20' ) start [2025-04-04 03:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830165', 'tblTempUsageDetail_20' ) end [2025-04-04 03:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:43:24] Production.INFO: ==1000== Releasing lock... [2025-04-04 03:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:43:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:44:06 [end_date_ymd] => 2025-04-04 03:44:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:44:06' and `end` < '2025-04-04 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-04 03:44:19] Production.INFO: count ==1145 [2025-04-04 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:44:06 - End Time 2025-04-04 03:44:06 [2025-04-04 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830170', 'tblTempUsageDetail_20' ) start [2025-04-04 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830170', 'tblTempUsageDetail_20' ) end [2025-04-04 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830170', 'tblTempVendorCDR_20' ) start [2025-04-04 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830170', 'tblTempVendorCDR_20' ) end [2025-04-04 03:44:19] Production.INFO: ProcessCDR(1,14830170,1,1,2) [2025-04-04 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830170', 'tblTempUsageDetail_20' ) start [2025-04-04 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830170', 'tblTempUsageDetail_20' ) end [2025-04-04 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:44:23] Production.INFO: ==1069== Releasing lock... [2025-04-04 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:44:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:45:06 [end_date_ymd] => 2025-04-04 03:45:06 [RateCDR] => 1 ) [2025-04-04 03: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-04 00:45:06' and `end` < '2025-04-04 03: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-04 03:45:19] Production.INFO: count ==1141 [2025-04-04 03:45:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:45:06 - End Time 2025-04-04 03:45:06 [2025-04-04 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830175', 'tblTempUsageDetail_20' ) start [2025-04-04 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830175', 'tblTempUsageDetail_20' ) end [2025-04-04 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830175', 'tblTempVendorCDR_20' ) start [2025-04-04 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830175', 'tblTempVendorCDR_20' ) end [2025-04-04 03:45:19] Production.INFO: ProcessCDR(1,14830175,1,1,2) [2025-04-04 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830175', 'tblTempUsageDetail_20' ) start [2025-04-04 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830175', 'tblTempUsageDetail_20' ) end [2025-04-04 03:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:45:23] Production.INFO: ==1144== Releasing lock... [2025-04-04 03:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:45:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:46:06 [end_date_ymd] => 2025-04-04 03:46:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:46:06' and `end` < '2025-04-04 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-04 03:46:18] Production.INFO: count ==1137 [2025-04-04 03:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:46:06 - End Time 2025-04-04 03:46:06 [2025-04-04 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830180', 'tblTempUsageDetail_20' ) start [2025-04-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830180', 'tblTempUsageDetail_20' ) end [2025-04-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830180', 'tblTempVendorCDR_20' ) start [2025-04-04 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830180', 'tblTempVendorCDR_20' ) end [2025-04-04 03:46:19] Production.INFO: ProcessCDR(1,14830180,1,1,2) [2025-04-04 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830180', 'tblTempUsageDetail_20' ) start [2025-04-04 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830180', 'tblTempUsageDetail_20' ) end [2025-04-04 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:46:23] Production.INFO: ==1218== Releasing lock... [2025-04-04 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:46:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 03:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:47:07 [end_date_ymd] => 2025-04-04 03:47:07 [RateCDR] => 1 ) [2025-04-04 03:47: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 00:47:07' and `end` < '2025-04-04 03:47: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-04 03:47:19] Production.INFO: count ==1137 [2025-04-04 03:47:20] Production.ERROR: pbx CDR StartTime 2025-04-04 00:47:07 - End Time 2025-04-04 03:47:07 [2025-04-04 03:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830185', 'tblTempUsageDetail_20' ) start [2025-04-04 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830185', 'tblTempUsageDetail_20' ) end [2025-04-04 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830185', 'tblTempVendorCDR_20' ) start [2025-04-04 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830185', 'tblTempVendorCDR_20' ) end [2025-04-04 03:47:20] Production.INFO: ProcessCDR(1,14830185,1,1,2) [2025-04-04 03:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830185', 'tblTempUsageDetail_20' ) start [2025-04-04 03:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830185', 'tblTempUsageDetail_20' ) end [2025-04-04 03:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:47:24] Production.INFO: ==1300== Releasing lock... [2025-04-04 03:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:47:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:48:06 [end_date_ymd] => 2025-04-04 03:48:06 [RateCDR] => 1 ) [2025-04-04 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-04 00:48:06' and `end` < '2025-04-04 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-04 03:48:19] Production.INFO: count ==1137 [2025-04-04 03:48:20] Production.ERROR: pbx CDR StartTime 2025-04-04 00:48:06 - End Time 2025-04-04 03:48:06 [2025-04-04 03:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830190', 'tblTempUsageDetail_20' ) start [2025-04-04 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830190', 'tblTempUsageDetail_20' ) end [2025-04-04 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830190', 'tblTempVendorCDR_20' ) start [2025-04-04 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830190', 'tblTempVendorCDR_20' ) end [2025-04-04 03:48:20] Production.INFO: ProcessCDR(1,14830190,1,1,2) [2025-04-04 03:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830190', 'tblTempUsageDetail_20' ) start [2025-04-04 03:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830190', 'tblTempUsageDetail_20' ) end [2025-04-04 03:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:48:24] Production.INFO: ==1370== Releasing lock... [2025-04-04 03:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:48:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:49:06 [end_date_ymd] => 2025-04-04 03:49:06 [RateCDR] => 1 ) [2025-04-04 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:49:06' and `end` < '2025-04-04 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:49:19] Production.INFO: count ==1137 [2025-04-04 03:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:49:06 - End Time 2025-04-04 03:49:06 [2025-04-04 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830195', 'tblTempUsageDetail_20' ) start [2025-04-04 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830195', 'tblTempUsageDetail_20' ) end [2025-04-04 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830195', 'tblTempVendorCDR_20' ) start [2025-04-04 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830195', 'tblTempVendorCDR_20' ) end [2025-04-04 03:49:19] Production.INFO: ProcessCDR(1,14830195,1,1,2) [2025-04-04 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830195', 'tblTempUsageDetail_20' ) start [2025-04-04 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830195', 'tblTempUsageDetail_20' ) end [2025-04-04 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:49:23] Production.INFO: ==1441== Releasing lock... [2025-04-04 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:49:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:50:07 [end_date_ymd] => 2025-04-04 03:50:07 [RateCDR] => 1 ) [2025-04-04 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:50:07' and `end` < '2025-04-04 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:50:20] Production.INFO: count ==1128 [2025-04-04 03:50:20] Production.ERROR: pbx CDR StartTime 2025-04-04 00:50:07 - End Time 2025-04-04 03:50:07 [2025-04-04 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830201', 'tblTempUsageDetail_20' ) start [2025-04-04 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830201', 'tblTempUsageDetail_20' ) end [2025-04-04 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830201', 'tblTempVendorCDR_20' ) start [2025-04-04 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830201', 'tblTempVendorCDR_20' ) end [2025-04-04 03:50:20] Production.INFO: ProcessCDR(1,14830201,1,1,2) [2025-04-04 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830201', 'tblTempUsageDetail_20' ) start [2025-04-04 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830201', 'tblTempUsageDetail_20' ) end [2025-04-04 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:50:24] Production.INFO: ==1547== Releasing lock... [2025-04-04 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:50:24] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:51:05 [end_date_ymd] => 2025-04-04 03:51:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:51:05' and `end` < '2025-04-04 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-04 03:51:18] Production.INFO: count ==1128 [2025-04-04 03:51:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:51:05 - End Time 2025-04-04 03:51:05 [2025-04-04 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830206', 'tblTempUsageDetail_20' ) start [2025-04-04 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830206', 'tblTempUsageDetail_20' ) end [2025-04-04 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830206', 'tblTempVendorCDR_20' ) start [2025-04-04 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830206', 'tblTempVendorCDR_20' ) end [2025-04-04 03:51:19] Production.INFO: ProcessCDR(1,14830206,1,1,2) [2025-04-04 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830206', 'tblTempUsageDetail_20' ) start [2025-04-04 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830206', 'tblTempUsageDetail_20' ) end [2025-04-04 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:51:22] Production.INFO: ==1626== Releasing lock... [2025-04-04 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:51:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:52:06 [end_date_ymd] => 2025-04-04 03:52:06 [RateCDR] => 1 ) [2025-04-04 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:52:06' and `end` < '2025-04-04 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:52:19] Production.INFO: count ==1128 [2025-04-04 03:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:52:06 - End Time 2025-04-04 03:52:06 [2025-04-04 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830211', 'tblTempUsageDetail_20' ) start [2025-04-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830211', 'tblTempUsageDetail_20' ) end [2025-04-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830211', 'tblTempVendorCDR_20' ) start [2025-04-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830211', 'tblTempVendorCDR_20' ) end [2025-04-04 03:52:19] Production.INFO: ProcessCDR(1,14830211,1,1,2) [2025-04-04 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830211', 'tblTempUsageDetail_20' ) start [2025-04-04 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830211', 'tblTempUsageDetail_20' ) end [2025-04-04 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:52:23] Production.INFO: ==1702== Releasing lock... [2025-04-04 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:52:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:53:05 [end_date_ymd] => 2025-04-04 03:53:05 [RateCDR] => 1 ) [2025-04-04 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:53:05' and `end` < '2025-04-04 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:53:18] Production.INFO: count ==1128 [2025-04-04 03:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:53:05 - End Time 2025-04-04 03:53:05 [2025-04-04 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830216', 'tblTempUsageDetail_20' ) start [2025-04-04 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830216', 'tblTempUsageDetail_20' ) end [2025-04-04 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830216', 'tblTempVendorCDR_20' ) start [2025-04-04 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830216', 'tblTempVendorCDR_20' ) end [2025-04-04 03:53:19] Production.INFO: ProcessCDR(1,14830216,1,1,2) [2025-04-04 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830216', 'tblTempUsageDetail_20' ) start [2025-04-04 03:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830216', 'tblTempUsageDetail_20' ) end [2025-04-04 03:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:53:23] Production.INFO: ==1814== Releasing lock... [2025-04-04 03:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:53:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:54:06 [end_date_ymd] => 2025-04-04 03:54:06 [RateCDR] => 1 ) [2025-04-04 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:54:06' and `end` < '2025-04-04 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:54:19] Production.INFO: count ==1128 [2025-04-04 03:54:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:54:06 - End Time 2025-04-04 03:54:06 [2025-04-04 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830221', 'tblTempUsageDetail_20' ) start [2025-04-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830221', 'tblTempUsageDetail_20' ) end [2025-04-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830221', 'tblTempVendorCDR_20' ) start [2025-04-04 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830221', 'tblTempVendorCDR_20' ) end [2025-04-04 03:54:19] Production.INFO: ProcessCDR(1,14830221,1,1,2) [2025-04-04 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830221', 'tblTempUsageDetail_20' ) start [2025-04-04 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830221', 'tblTempUsageDetail_20' ) end [2025-04-04 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:54:23] Production.INFO: ==1889== Releasing lock... [2025-04-04 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:54:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:55:06 [end_date_ymd] => 2025-04-04 03:55:06 [RateCDR] => 1 ) [2025-04-04 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 00:55:06' and `end` < '2025-04-04 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 03:55:18] Production.INFO: count ==1128 [2025-04-04 03:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:55:06 - End Time 2025-04-04 03:55:06 [2025-04-04 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830226', 'tblTempUsageDetail_20' ) start [2025-04-04 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830226', 'tblTempUsageDetail_20' ) end [2025-04-04 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830226', 'tblTempVendorCDR_20' ) start [2025-04-04 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830226', 'tblTempVendorCDR_20' ) end [2025-04-04 03:55:19] Production.INFO: ProcessCDR(1,14830226,1,1,2) [2025-04-04 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830226', 'tblTempUsageDetail_20' ) start [2025-04-04 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830226', 'tblTempUsageDetail_20' ) end [2025-04-04 03:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:55:23] Production.INFO: ==1959== Releasing lock... [2025-04-04 03:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:55:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:56:05 [end_date_ymd] => 2025-04-04 03:56:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:56:05' and `end` < '2025-04-04 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-04 03:56:18] Production.INFO: count ==1127 [2025-04-04 03:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:56:05 - End Time 2025-04-04 03:56:05 [2025-04-04 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830231', 'tblTempUsageDetail_20' ) start [2025-04-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830231', 'tblTempUsageDetail_20' ) end [2025-04-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830231', 'tblTempVendorCDR_20' ) start [2025-04-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830231', 'tblTempVendorCDR_20' ) end [2025-04-04 03:56:19] Production.INFO: ProcessCDR(1,14830231,1,1,2) [2025-04-04 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830231', 'tblTempUsageDetail_20' ) start [2025-04-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830231', 'tblTempUsageDetail_20' ) end [2025-04-04 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:56:22] Production.INFO: ==2031== Releasing lock... [2025-04-04 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:56:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:57:06 [end_date_ymd] => 2025-04-04 03:57:06 [RateCDR] => 1 ) [2025-04-04 03: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-04 00:57:06' and `end` < '2025-04-04 03: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-04 03:57:19] Production.INFO: count ==1123 [2025-04-04 03:57:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:57:06 - End Time 2025-04-04 03:57:06 [2025-04-04 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830236', 'tblTempUsageDetail_20' ) start [2025-04-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830236', 'tblTempUsageDetail_20' ) end [2025-04-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830236', 'tblTempVendorCDR_20' ) start [2025-04-04 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830236', 'tblTempVendorCDR_20' ) end [2025-04-04 03:57:19] Production.INFO: ProcessCDR(1,14830236,1,1,2) [2025-04-04 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830236', 'tblTempUsageDetail_20' ) start [2025-04-04 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830236', 'tblTempUsageDetail_20' ) end [2025-04-04 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:57:23] Production.INFO: ==2103== Releasing lock... [2025-04-04 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:57:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:58:05 [end_date_ymd] => 2025-04-04 03:58:05 [RateCDR] => 1 ) [2025-04-04 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-04 00:58:05' and `end` < '2025-04-04 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-04 03:58:18] Production.INFO: count ==1123 [2025-04-04 03:58:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:58:05 - End Time 2025-04-04 03:58:05 [2025-04-04 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830241', 'tblTempUsageDetail_20' ) start [2025-04-04 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830241', 'tblTempUsageDetail_20' ) end [2025-04-04 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830241', 'tblTempVendorCDR_20' ) start [2025-04-04 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830241', 'tblTempVendorCDR_20' ) end [2025-04-04 03:58:19] Production.INFO: ProcessCDR(1,14830241,1,1,2) [2025-04-04 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830241', 'tblTempUsageDetail_20' ) start [2025-04-04 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830241', 'tblTempUsageDetail_20' ) end [2025-04-04 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:58:22] Production.INFO: ==2174== Releasing lock... [2025-04-04 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 00:59:06 [end_date_ymd] => 2025-04-04 03:59:06 [RateCDR] => 1 ) [2025-04-04 03: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-04 00:59:06' and `end` < '2025-04-04 03: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-04 03:59:19] Production.INFO: count ==1123 [2025-04-04 03:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 00:59:06 - End Time 2025-04-04 03:59:06 [2025-04-04 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830246', 'tblTempUsageDetail_20' ) start [2025-04-04 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830246', 'tblTempUsageDetail_20' ) end [2025-04-04 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830246', 'tblTempVendorCDR_20' ) start [2025-04-04 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830246', 'tblTempVendorCDR_20' ) end [2025-04-04 03:59:19] Production.INFO: ProcessCDR(1,14830246,1,1,2) [2025-04-04 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 03:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830246', 'tblTempUsageDetail_20' ) start [2025-04-04 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830246', 'tblTempUsageDetail_20' ) end [2025-04-04 03:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 03:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 03:59:23] Production.INFO: ==2248== Releasing lock... [2025-04-04 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 03:59:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:00:06 [end_date_ymd] => 2025-04-04 04:00:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:00:06' and `end` < '2025-04-04 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-04 04:00:19] Production.INFO: count ==1126 [2025-04-04 04:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:00:06 - End Time 2025-04-04 04:00:06 [2025-04-04 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830252', 'tblTempUsageDetail_20' ) start [2025-04-04 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830252', 'tblTempUsageDetail_20' ) end [2025-04-04 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830252', 'tblTempVendorCDR_20' ) start [2025-04-04 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830252', 'tblTempVendorCDR_20' ) end [2025-04-04 04:00:20] Production.INFO: ProcessCDR(1,14830252,1,1,2) [2025-04-04 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830252', 'tblTempUsageDetail_20' ) start [2025-04-04 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830252', 'tblTempUsageDetail_20' ) end [2025-04-04 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:00:25] Production.INFO: ==2321== Releasing lock... [2025-04-04 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:00:25] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:01:06 [end_date_ymd] => 2025-04-04 04:01:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:01:06' and `end` < '2025-04-04 04: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-04 04:01:19] Production.INFO: count ==1122 [2025-04-04 04:01:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:01:06 - End Time 2025-04-04 04:01:06 [2025-04-04 04:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830258', 'tblTempUsageDetail_20' ) start [2025-04-04 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830258', 'tblTempUsageDetail_20' ) end [2025-04-04 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830258', 'tblTempVendorCDR_20' ) start [2025-04-04 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830258', 'tblTempVendorCDR_20' ) end [2025-04-04 04:01:20] Production.INFO: ProcessCDR(1,14830258,1,1,2) [2025-04-04 04:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830258', 'tblTempUsageDetail_20' ) start [2025-04-04 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830258', 'tblTempUsageDetail_20' ) end [2025-04-04 04:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:01:24] Production.INFO: ==2409== Releasing lock... [2025-04-04 04:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:01:24] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:02:05 [end_date_ymd] => 2025-04-04 04:02:05 [RateCDR] => 1 ) [2025-04-04 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:02:05' and `end` < '2025-04-04 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:02:18] Production.INFO: count ==1124 [2025-04-04 04:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:02:05 - End Time 2025-04-04 04:02:05 [2025-04-04 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830263', 'tblTempUsageDetail_20' ) start [2025-04-04 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830263', 'tblTempUsageDetail_20' ) end [2025-04-04 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830263', 'tblTempVendorCDR_20' ) start [2025-04-04 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830263', 'tblTempVendorCDR_20' ) end [2025-04-04 04:02:19] Production.INFO: ProcessCDR(1,14830263,1,1,2) [2025-04-04 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830263', 'tblTempUsageDetail_20' ) start [2025-04-04 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830263', 'tblTempUsageDetail_20' ) end [2025-04-04 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:02:23] Production.INFO: ==2480== Releasing lock... [2025-04-04 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:02:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:03:06 [end_date_ymd] => 2025-04-04 04:03:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:03:06' and `end` < '2025-04-04 04: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-04 04:03:19] Production.INFO: count ==1127 [2025-04-04 04:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:03:06 - End Time 2025-04-04 04:03:06 [2025-04-04 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830268', 'tblTempUsageDetail_20' ) start [2025-04-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830268', 'tblTempUsageDetail_20' ) end [2025-04-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830268', 'tblTempVendorCDR_20' ) start [2025-04-04 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830268', 'tblTempVendorCDR_20' ) end [2025-04-04 04:03:19] Production.INFO: ProcessCDR(1,14830268,1,1,2) [2025-04-04 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830268', 'tblTempUsageDetail_20' ) start [2025-04-04 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830268', 'tblTempUsageDetail_20' ) end [2025-04-04 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:03:23] Production.INFO: ==2553== Releasing lock... [2025-04-04 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:03:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:04:05 [end_date_ymd] => 2025-04-04 04:04:05 [RateCDR] => 1 ) [2025-04-04 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:04:05' and `end` < '2025-04-04 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:04:18] Production.INFO: count ==1127 [2025-04-04 04:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:04:05 - End Time 2025-04-04 04:04:05 [2025-04-04 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830273', 'tblTempUsageDetail_20' ) start [2025-04-04 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830273', 'tblTempUsageDetail_20' ) end [2025-04-04 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830273', 'tblTempVendorCDR_20' ) start [2025-04-04 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830273', 'tblTempVendorCDR_20' ) end [2025-04-04 04:04:19] Production.INFO: ProcessCDR(1,14830273,1,1,2) [2025-04-04 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830273', 'tblTempUsageDetail_20' ) start [2025-04-04 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830273', 'tblTempUsageDetail_20' ) end [2025-04-04 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:04:22] Production.INFO: ==2624== Releasing lock... [2025-04-04 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:04:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:05:06 [end_date_ymd] => 2025-04-04 04:05:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:05:06' and `end` < '2025-04-04 04: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-04 04:05:19] Production.INFO: count ==1123 [2025-04-04 04:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:05:06 - End Time 2025-04-04 04:05:06 [2025-04-04 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830278', 'tblTempUsageDetail_20' ) start [2025-04-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830278', 'tblTempUsageDetail_20' ) end [2025-04-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830278', 'tblTempVendorCDR_20' ) start [2025-04-04 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830278', 'tblTempVendorCDR_20' ) end [2025-04-04 04:05:19] Production.INFO: ProcessCDR(1,14830278,1,1,2) [2025-04-04 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830278', 'tblTempUsageDetail_20' ) start [2025-04-04 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830278', 'tblTempUsageDetail_20' ) end [2025-04-04 04:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:05:23] Production.INFO: ==2695== Releasing lock... [2025-04-04 04:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:05:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:06:05 [end_date_ymd] => 2025-04-04 04:06:05 [RateCDR] => 1 ) [2025-04-04 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:06:05' and `end` < '2025-04-04 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-04 04:06:18] Production.INFO: count ==1105 [2025-04-04 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:06:05 - End Time 2025-04-04 04:06:05 [2025-04-04 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830283', 'tblTempUsageDetail_20' ) start [2025-04-04 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830283', 'tblTempUsageDetail_20' ) end [2025-04-04 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830283', 'tblTempVendorCDR_20' ) start [2025-04-04 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830283', 'tblTempVendorCDR_20' ) end [2025-04-04 04:06:19] Production.INFO: ProcessCDR(1,14830283,1,1,2) [2025-04-04 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830283', 'tblTempUsageDetail_20' ) start [2025-04-04 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830283', 'tblTempUsageDetail_20' ) end [2025-04-04 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:06:22] Production.INFO: ==2765== Releasing lock... [2025-04-04 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:06:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:07:06 [end_date_ymd] => 2025-04-04 04:07:06 [RateCDR] => 1 ) [2025-04-04 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:07:06' and `end` < '2025-04-04 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:07:19] Production.INFO: count ==1105 [2025-04-04 04:07:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:07:06 - End Time 2025-04-04 04:07:06 [2025-04-04 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830288', 'tblTempUsageDetail_20' ) start [2025-04-04 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830288', 'tblTempUsageDetail_20' ) end [2025-04-04 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830288', 'tblTempVendorCDR_20' ) start [2025-04-04 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830288', 'tblTempVendorCDR_20' ) end [2025-04-04 04:07:19] Production.INFO: ProcessCDR(1,14830288,1,1,2) [2025-04-04 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830288', 'tblTempUsageDetail_20' ) start [2025-04-04 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830288', 'tblTempUsageDetail_20' ) end [2025-04-04 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:07:23] Production.INFO: ==2835== Releasing lock... [2025-04-04 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:07:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:08:06 [end_date_ymd] => 2025-04-04 04:08:06 [RateCDR] => 1 ) [2025-04-04 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:08:06' and `end` < '2025-04-04 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:08:18] Production.INFO: count ==1104 [2025-04-04 04:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:08:06 - End Time 2025-04-04 04:08:06 [2025-04-04 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830293', 'tblTempUsageDetail_20' ) start [2025-04-04 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830293', 'tblTempUsageDetail_20' ) end [2025-04-04 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830293', 'tblTempVendorCDR_20' ) start [2025-04-04 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830293', 'tblTempVendorCDR_20' ) end [2025-04-04 04:08:19] Production.INFO: ProcessCDR(1,14830293,1,1,2) [2025-04-04 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830293', 'tblTempUsageDetail_20' ) start [2025-04-04 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830293', 'tblTempUsageDetail_20' ) end [2025-04-04 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:08:22] Production.INFO: ==2946== Releasing lock... [2025-04-04 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:09:05 [end_date_ymd] => 2025-04-04 04:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:09:05' and `end` < '2025-04-04 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-04 04:09:17] Production.INFO: count ==1102 [2025-04-04 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:09:05 - End Time 2025-04-04 04:09:05 [2025-04-04 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830298', 'tblTempUsageDetail_20' ) start [2025-04-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830298', 'tblTempUsageDetail_20' ) end [2025-04-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830298', 'tblTempVendorCDR_20' ) start [2025-04-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830298', 'tblTempVendorCDR_20' ) end [2025-04-04 04:09:18] Production.INFO: ProcessCDR(1,14830298,1,1,2) [2025-04-04 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830298', 'tblTempUsageDetail_20' ) start [2025-04-04 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830298', 'tblTempUsageDetail_20' ) end [2025-04-04 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:09:22] Production.INFO: ==3017== Releasing lock... [2025-04-04 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:09:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:10:06 [end_date_ymd] => 2025-04-04 04:10:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:10:06' and `end` < '2025-04-04 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-04 04:10:19] Production.INFO: count ==1089 [2025-04-04 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:10:06 - End Time 2025-04-04 04:10:06 [2025-04-04 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830303', 'tblTempUsageDetail_20' ) start [2025-04-04 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830303', 'tblTempUsageDetail_20' ) end [2025-04-04 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830303', 'tblTempVendorCDR_20' ) start [2025-04-04 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830303', 'tblTempVendorCDR_20' ) end [2025-04-04 04:10:19] Production.INFO: ProcessCDR(1,14830303,1,1,2) [2025-04-04 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830303', 'tblTempUsageDetail_20' ) start [2025-04-04 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830303', 'tblTempUsageDetail_20' ) end [2025-04-04 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:10:23] Production.INFO: ==3098== Releasing lock... [2025-04-04 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:10:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:11:06 [end_date_ymd] => 2025-04-04 04:11:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:11:06' and `end` < '2025-04-04 04: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-04 04:11:19] Production.INFO: count ==1074 [2025-04-04 04:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:11:06 - End Time 2025-04-04 04:11:06 [2025-04-04 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830309', 'tblTempUsageDetail_20' ) start [2025-04-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830309', 'tblTempUsageDetail_20' ) end [2025-04-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830309', 'tblTempVendorCDR_20' ) start [2025-04-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830309', 'tblTempVendorCDR_20' ) end [2025-04-04 04:11:19] Production.INFO: ProcessCDR(1,14830309,1,1,2) [2025-04-04 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830309', 'tblTempUsageDetail_20' ) start [2025-04-04 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830309', 'tblTempUsageDetail_20' ) end [2025-04-04 04:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:11:23] Production.INFO: ==3173== Releasing lock... [2025-04-04 04:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:11:23] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:12:06 [end_date_ymd] => 2025-04-04 04:12:06 [RateCDR] => 1 ) [2025-04-04 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:12:06' and `end` < '2025-04-04 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:12:19] Production.INFO: count ==1073 [2025-04-04 04:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:12:06 - End Time 2025-04-04 04:12:06 [2025-04-04 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830314', 'tblTempUsageDetail_20' ) start [2025-04-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830314', 'tblTempUsageDetail_20' ) end [2025-04-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830314', 'tblTempVendorCDR_20' ) start [2025-04-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830314', 'tblTempVendorCDR_20' ) end [2025-04-04 04:12:19] Production.INFO: ProcessCDR(1,14830314,1,1,2) [2025-04-04 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830314', 'tblTempUsageDetail_20' ) start [2025-04-04 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830314', 'tblTempUsageDetail_20' ) end [2025-04-04 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:12:22] Production.INFO: ==3248== Releasing lock... [2025-04-04 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:12:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:13:06 [end_date_ymd] => 2025-04-04 04:13:06 [RateCDR] => 1 ) [2025-04-04 04: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-04 01:13:06' and `end` < '2025-04-04 04: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-04 04:13:18] Production.INFO: count ==1073 [2025-04-04 04:13:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:13:06 - End Time 2025-04-04 04:13:06 [2025-04-04 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830319', 'tblTempUsageDetail_20' ) start [2025-04-04 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830319', 'tblTempUsageDetail_20' ) end [2025-04-04 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830319', 'tblTempVendorCDR_20' ) start [2025-04-04 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830319', 'tblTempVendorCDR_20' ) end [2025-04-04 04:13:19] Production.INFO: ProcessCDR(1,14830319,1,1,2) [2025-04-04 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830319', 'tblTempUsageDetail_20' ) start [2025-04-04 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830319', 'tblTempUsageDetail_20' ) end [2025-04-04 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:13:22] Production.INFO: ==3319== Releasing lock... [2025-04-04 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:13:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:14:05 [end_date_ymd] => 2025-04-04 04:14:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:14:05' and `end` < '2025-04-04 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-04 04:14:18] Production.INFO: count ==1073 [2025-04-04 04:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:14:05 - End Time 2025-04-04 04:14:05 [2025-04-04 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830324', 'tblTempUsageDetail_20' ) start [2025-04-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830324', 'tblTempUsageDetail_20' ) end [2025-04-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830324', 'tblTempVendorCDR_20' ) start [2025-04-04 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830324', 'tblTempVendorCDR_20' ) end [2025-04-04 04:14:19] Production.INFO: ProcessCDR(1,14830324,1,1,2) [2025-04-04 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830324', 'tblTempUsageDetail_20' ) start [2025-04-04 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830324', 'tblTempUsageDetail_20' ) end [2025-04-04 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:14:22] Production.INFO: ==3389== Releasing lock... [2025-04-04 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:15:06 [end_date_ymd] => 2025-04-04 04:15:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:15:06' and `end` < '2025-04-04 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-04 04:15:19] Production.INFO: count ==1070 [2025-04-04 04:15:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:15:06 - End Time 2025-04-04 04:15:06 [2025-04-04 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830329', 'tblTempUsageDetail_20' ) start [2025-04-04 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830329', 'tblTempUsageDetail_20' ) end [2025-04-04 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830329', 'tblTempVendorCDR_20' ) start [2025-04-04 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830329', 'tblTempVendorCDR_20' ) end [2025-04-04 04:15:19] Production.INFO: ProcessCDR(1,14830329,1,1,2) [2025-04-04 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830329', 'tblTempUsageDetail_20' ) start [2025-04-04 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830329', 'tblTempUsageDetail_20' ) end [2025-04-04 04:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:15:23] Production.INFO: ==3460== Releasing lock... [2025-04-04 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:15:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:16:05 [end_date_ymd] => 2025-04-04 04:16:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:16:05' and `end` < '2025-04-04 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-04 04:16:18] Production.INFO: count ==1070 [2025-04-04 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:16:05 - End Time 2025-04-04 04:16:05 [2025-04-04 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830334', 'tblTempUsageDetail_20' ) start [2025-04-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830334', 'tblTempUsageDetail_20' ) end [2025-04-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830334', 'tblTempVendorCDR_20' ) start [2025-04-04 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830334', 'tblTempVendorCDR_20' ) end [2025-04-04 04:16:18] Production.INFO: ProcessCDR(1,14830334,1,1,2) [2025-04-04 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830334', 'tblTempUsageDetail_20' ) start [2025-04-04 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830334', 'tblTempUsageDetail_20' ) end [2025-04-04 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:16:22] Production.INFO: ==3530== Releasing lock... [2025-04-04 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:17:05 [end_date_ymd] => 2025-04-04 04:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:17:05' and `end` < '2025-04-04 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-04 04:17:18] Production.INFO: count ==1069 [2025-04-04 04:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:17:05 - End Time 2025-04-04 04:17:05 [2025-04-04 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830339', 'tblTempUsageDetail_20' ) start [2025-04-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830339', 'tblTempUsageDetail_20' ) end [2025-04-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830339', 'tblTempVendorCDR_20' ) start [2025-04-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830339', 'tblTempVendorCDR_20' ) end [2025-04-04 04:17:19] Production.INFO: ProcessCDR(1,14830339,1,1,2) [2025-04-04 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830339', 'tblTempUsageDetail_20' ) start [2025-04-04 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830339', 'tblTempUsageDetail_20' ) end [2025-04-04 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:17:22] Production.INFO: ==3602== Releasing lock... [2025-04-04 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:17:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:18:05 [end_date_ymd] => 2025-04-04 04:18:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:18:05' and `end` < '2025-04-04 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-04 04:18:18] Production.INFO: count ==1069 [2025-04-04 04:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:18:05 - End Time 2025-04-04 04:18:05 [2025-04-04 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830344', 'tblTempUsageDetail_20' ) start [2025-04-04 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830344', 'tblTempUsageDetail_20' ) end [2025-04-04 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830344', 'tblTempVendorCDR_20' ) start [2025-04-04 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830344', 'tblTempVendorCDR_20' ) end [2025-04-04 04:18:19] Production.INFO: ProcessCDR(1,14830344,1,1,2) [2025-04-04 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830344', 'tblTempUsageDetail_20' ) start [2025-04-04 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830344', 'tblTempUsageDetail_20' ) end [2025-04-04 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:18:22] Production.INFO: ==3672== Releasing lock... [2025-04-04 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:18:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:19:06 [end_date_ymd] => 2025-04-04 04:19:06 [RateCDR] => 1 ) [2025-04-04 04: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-04 01:19:06' and `end` < '2025-04-04 04: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-04 04:19:18] Production.INFO: count ==1069 [2025-04-04 04:19:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:19:06 - End Time 2025-04-04 04:19:06 [2025-04-04 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830349', 'tblTempUsageDetail_20' ) start [2025-04-04 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830349', 'tblTempUsageDetail_20' ) end [2025-04-04 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830349', 'tblTempVendorCDR_20' ) start [2025-04-04 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830349', 'tblTempVendorCDR_20' ) end [2025-04-04 04:19:19] Production.INFO: ProcessCDR(1,14830349,1,1,2) [2025-04-04 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830349', 'tblTempUsageDetail_20' ) start [2025-04-04 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830349', 'tblTempUsageDetail_20' ) end [2025-04-04 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:19:22] Production.INFO: ==3744== Releasing lock... [2025-04-04 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:19:22] Production.INFO: 37 MB #Memory Used# [2025-04-04 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:20:06 [end_date_ymd] => 2025-04-04 04:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:20:06' and `end` < '2025-04-04 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-04 04:20:19] Production.INFO: count ==1056 [2025-04-04 04:20:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:20:06 - End Time 2025-04-04 04:20:06 [2025-04-04 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830355', 'tblTempUsageDetail_20' ) start [2025-04-04 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830355', 'tblTempUsageDetail_20' ) end [2025-04-04 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830355', 'tblTempVendorCDR_20' ) start [2025-04-04 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830355', 'tblTempVendorCDR_20' ) end [2025-04-04 04:20:20] Production.INFO: ProcessCDR(1,14830355,1,1,2) [2025-04-04 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830355', 'tblTempUsageDetail_20' ) start [2025-04-04 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830355', 'tblTempUsageDetail_20' ) end [2025-04-04 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:20:23] Production.INFO: ==3817== Releasing lock... [2025-04-04 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:20:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:21:06 [end_date_ymd] => 2025-04-04 04:21:06 [RateCDR] => 1 ) [2025-04-04 04: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-04 01:21:06' and `end` < '2025-04-04 04: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-04 04:21:18] Production.INFO: count ==1049 [2025-04-04 04:21:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:21:06 - End Time 2025-04-04 04:21:06 [2025-04-04 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830360', 'tblTempUsageDetail_20' ) start [2025-04-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830360', 'tblTempUsageDetail_20' ) end [2025-04-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830360', 'tblTempVendorCDR_20' ) start [2025-04-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830360', 'tblTempVendorCDR_20' ) end [2025-04-04 04:21:19] Production.INFO: ProcessCDR(1,14830360,1,1,2) [2025-04-04 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830360', 'tblTempUsageDetail_20' ) start [2025-04-04 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830360', 'tblTempUsageDetail_20' ) end [2025-04-04 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:21:22] Production.INFO: ==3888== Releasing lock... [2025-04-04 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:21:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:22:05 [end_date_ymd] => 2025-04-04 04:22:05 [RateCDR] => 1 ) [2025-04-04 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:22:05' and `end` < '2025-04-04 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:22:17] Production.INFO: count ==1049 [2025-04-04 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:22:05 - End Time 2025-04-04 04:22:05 [2025-04-04 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830365', 'tblTempUsageDetail_20' ) start [2025-04-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830365', 'tblTempUsageDetail_20' ) end [2025-04-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830365', 'tblTempVendorCDR_20' ) start [2025-04-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830365', 'tblTempVendorCDR_20' ) end [2025-04-04 04:22:18] Production.INFO: ProcessCDR(1,14830365,1,1,2) [2025-04-04 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830365', 'tblTempUsageDetail_20' ) start [2025-04-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830365', 'tblTempUsageDetail_20' ) end [2025-04-04 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:22:21] Production.INFO: ==3958== Releasing lock... [2025-04-04 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:22:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:23:05 [end_date_ymd] => 2025-04-04 04:23:05 [RateCDR] => 1 ) [2025-04-04 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:23:05' and `end` < '2025-04-04 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:23:18] Production.INFO: count ==1049 [2025-04-04 04:23:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:23:05 - End Time 2025-04-04 04:23:05 [2025-04-04 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830370', 'tblTempUsageDetail_20' ) start [2025-04-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830370', 'tblTempUsageDetail_20' ) end [2025-04-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830370', 'tblTempVendorCDR_20' ) start [2025-04-04 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830370', 'tblTempVendorCDR_20' ) end [2025-04-04 04:23:19] Production.INFO: ProcessCDR(1,14830370,1,1,2) [2025-04-04 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830370', 'tblTempUsageDetail_20' ) start [2025-04-04 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830370', 'tblTempUsageDetail_20' ) end [2025-04-04 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:23:22] Production.INFO: ==4030== Releasing lock... [2025-04-04 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:24:05 [end_date_ymd] => 2025-04-04 04:24:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:24:05' and `end` < '2025-04-04 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-04 04:24:18] Production.INFO: count ==1049 [2025-04-04 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:24:05 - End Time 2025-04-04 04:24:05 [2025-04-04 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830375', 'tblTempUsageDetail_20' ) start [2025-04-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830375', 'tblTempUsageDetail_20' ) end [2025-04-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830375', 'tblTempVendorCDR_20' ) start [2025-04-04 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830375', 'tblTempVendorCDR_20' ) end [2025-04-04 04:24:18] Production.INFO: ProcessCDR(1,14830375,1,1,2) [2025-04-04 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830375', 'tblTempUsageDetail_20' ) start [2025-04-04 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830375', 'tblTempUsageDetail_20' ) end [2025-04-04 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:24:22] Production.INFO: ==4141== Releasing lock... [2025-04-04 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:25:06 [end_date_ymd] => 2025-04-04 04:25:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:25:06' and `end` < '2025-04-04 04: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-04 04:25:18] Production.INFO: count ==1052 [2025-04-04 04:25:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:25:06 - End Time 2025-04-04 04:25:06 [2025-04-04 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830380', 'tblTempUsageDetail_20' ) start [2025-04-04 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830380', 'tblTempUsageDetail_20' ) end [2025-04-04 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830380', 'tblTempVendorCDR_20' ) start [2025-04-04 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830380', 'tblTempVendorCDR_20' ) end [2025-04-04 04:25:19] Production.INFO: ProcessCDR(1,14830380,1,1,2) [2025-04-04 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830380', 'tblTempUsageDetail_20' ) start [2025-04-04 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830380', 'tblTempUsageDetail_20' ) end [2025-04-04 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:25:24] Production.INFO: ==4212== Releasing lock... [2025-04-04 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:25:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:26:05 [end_date_ymd] => 2025-04-04 04:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:26:05' and `end` < '2025-04-04 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-04 04:26:18] Production.INFO: count ==1049 [2025-04-04 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:26:05 - End Time 2025-04-04 04:26:05 [2025-04-04 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830385', 'tblTempUsageDetail_20' ) start [2025-04-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830385', 'tblTempUsageDetail_20' ) end [2025-04-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830385', 'tblTempVendorCDR_20' ) start [2025-04-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830385', 'tblTempVendorCDR_20' ) end [2025-04-04 04:26:18] Production.INFO: ProcessCDR(1,14830385,1,1,2) [2025-04-04 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830385', 'tblTempUsageDetail_20' ) start [2025-04-04 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830385', 'tblTempUsageDetail_20' ) end [2025-04-04 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:26:22] Production.INFO: ==4284== Releasing lock... [2025-04-04 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:27:05 [end_date_ymd] => 2025-04-04 04:27:05 [RateCDR] => 1 ) [2025-04-04 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:27:05' and `end` < '2025-04-04 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:27:18] Production.INFO: count ==1045 [2025-04-04 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:27:05 - End Time 2025-04-04 04:27:05 [2025-04-04 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830390', 'tblTempUsageDetail_20' ) start [2025-04-04 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830390', 'tblTempUsageDetail_20' ) end [2025-04-04 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830390', 'tblTempVendorCDR_20' ) start [2025-04-04 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830390', 'tblTempVendorCDR_20' ) end [2025-04-04 04:27:19] Production.INFO: ProcessCDR(1,14830390,1,1,2) [2025-04-04 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830390', 'tblTempUsageDetail_20' ) start [2025-04-04 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830390', 'tblTempUsageDetail_20' ) end [2025-04-04 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:27:22] Production.INFO: ==4355== Releasing lock... [2025-04-04 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:27:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:28:05 [end_date_ymd] => 2025-04-04 04:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:28:05' and `end` < '2025-04-04 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-04 04:28:17] Production.INFO: count ==1042 [2025-04-04 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:28:05 - End Time 2025-04-04 04:28:05 [2025-04-04 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830395', 'tblTempUsageDetail_20' ) start [2025-04-04 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830395', 'tblTempUsageDetail_20' ) end [2025-04-04 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830395', 'tblTempVendorCDR_20' ) start [2025-04-04 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830395', 'tblTempVendorCDR_20' ) end [2025-04-04 04:28:18] Production.INFO: ProcessCDR(1,14830395,1,1,2) [2025-04-04 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830395', 'tblTempUsageDetail_20' ) start [2025-04-04 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830395', 'tblTempUsageDetail_20' ) end [2025-04-04 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:28:21] Production.INFO: ==4425== Releasing lock... [2025-04-04 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:28:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:29:06 [end_date_ymd] => 2025-04-04 04:29:06 [RateCDR] => 1 ) [2025-04-04 04: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-04 01:29:06' and `end` < '2025-04-04 04: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-04 04:29:18] Production.INFO: count ==1042 [2025-04-04 04:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:29:06 - End Time 2025-04-04 04:29:06 [2025-04-04 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830400', 'tblTempUsageDetail_20' ) start [2025-04-04 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830400', 'tblTempUsageDetail_20' ) end [2025-04-04 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830400', 'tblTempVendorCDR_20' ) start [2025-04-04 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830400', 'tblTempVendorCDR_20' ) end [2025-04-04 04:29:19] Production.INFO: ProcessCDR(1,14830400,1,1,2) [2025-04-04 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830400', 'tblTempUsageDetail_20' ) start [2025-04-04 04:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830400', 'tblTempUsageDetail_20' ) end [2025-04-04 04:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:29:23] Production.INFO: ==4497== Releasing lock... [2025-04-04 04:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:29:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:30:06 [end_date_ymd] => 2025-04-04 04:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:30:06' and `end` < '2025-04-04 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-04 04:30:18] Production.INFO: count ==1034 [2025-04-04 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:30:06 - End Time 2025-04-04 04:30:06 [2025-04-04 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830407', 'tblTempUsageDetail_20' ) start [2025-04-04 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830407', 'tblTempUsageDetail_20' ) end [2025-04-04 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830407', 'tblTempVendorCDR_20' ) start [2025-04-04 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830407', 'tblTempVendorCDR_20' ) end [2025-04-04 04:30:20] Production.INFO: ProcessCDR(1,14830407,1,1,2) [2025-04-04 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830407', 'tblTempUsageDetail_20' ) start [2025-04-04 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830407', 'tblTempUsageDetail_20' ) end [2025-04-04 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:30:24] Production.INFO: ==4578== Releasing lock... [2025-04-04 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:30:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:31:05 [end_date_ymd] => 2025-04-04 04:31:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:31:05' and `end` < '2025-04-04 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-04 04:31:18] Production.INFO: count ==1024 [2025-04-04 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:31:05 - End Time 2025-04-04 04:31:05 [2025-04-04 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830412', 'tblTempUsageDetail_20' ) start [2025-04-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830412', 'tblTempUsageDetail_20' ) end [2025-04-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830412', 'tblTempVendorCDR_20' ) start [2025-04-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830412', 'tblTempVendorCDR_20' ) end [2025-04-04 04:31:18] Production.INFO: ProcessCDR(1,14830412,1,1,2) [2025-04-04 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830412', 'tblTempUsageDetail_20' ) start [2025-04-04 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830412', 'tblTempUsageDetail_20' ) end [2025-04-04 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:31:22] Production.INFO: ==4772== Releasing lock... [2025-04-04 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:31:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:32:06 [end_date_ymd] => 2025-04-04 04:32:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:32:06' and `end` < '2025-04-04 04: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-04 04:32:18] Production.INFO: count ==1023 [2025-04-04 04:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:32:06 - End Time 2025-04-04 04:32:06 [2025-04-04 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830417', 'tblTempUsageDetail_20' ) start [2025-04-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830417', 'tblTempUsageDetail_20' ) end [2025-04-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830417', 'tblTempVendorCDR_20' ) start [2025-04-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830417', 'tblTempVendorCDR_20' ) end [2025-04-04 04:32:19] Production.INFO: ProcessCDR(1,14830417,1,1,2) [2025-04-04 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830417', 'tblTempUsageDetail_20' ) start [2025-04-04 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830417', 'tblTempUsageDetail_20' ) end [2025-04-04 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:32:22] Production.INFO: ==4844== Releasing lock... [2025-04-04 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:32:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:33:05 [end_date_ymd] => 2025-04-04 04:33:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:33:05' and `end` < '2025-04-04 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-04 04:33:18] Production.INFO: count ==1019 [2025-04-04 04:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:33:05 - End Time 2025-04-04 04:33:05 [2025-04-04 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830422', 'tblTempUsageDetail_20' ) start [2025-04-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830422', 'tblTempUsageDetail_20' ) end [2025-04-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830422', 'tblTempVendorCDR_20' ) start [2025-04-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830422', 'tblTempVendorCDR_20' ) end [2025-04-04 04:33:19] Production.INFO: ProcessCDR(1,14830422,1,1,2) [2025-04-04 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830422', 'tblTempUsageDetail_20' ) start [2025-04-04 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830422', 'tblTempUsageDetail_20' ) end [2025-04-04 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:33:22] Production.INFO: ==4915== Releasing lock... [2025-04-04 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:33:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:34:06 [end_date_ymd] => 2025-04-04 04:34:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:34:06' and `end` < '2025-04-04 04: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-04 04:34:19] Production.INFO: count ==1019 [2025-04-04 04:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:34:06 - End Time 2025-04-04 04:34:06 [2025-04-04 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830427', 'tblTempUsageDetail_20' ) start [2025-04-04 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830427', 'tblTempUsageDetail_20' ) end [2025-04-04 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830427', 'tblTempVendorCDR_20' ) start [2025-04-04 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830427', 'tblTempVendorCDR_20' ) end [2025-04-04 04:34:19] Production.INFO: ProcessCDR(1,14830427,1,1,2) [2025-04-04 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830427', 'tblTempUsageDetail_20' ) start [2025-04-04 04:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830427', 'tblTempUsageDetail_20' ) end [2025-04-04 04:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:34:24] Production.INFO: ==4986== Releasing lock... [2025-04-04 04:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:34:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:35:06 [end_date_ymd] => 2025-04-04 04:35:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:35:06' and `end` < '2025-04-04 04: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-04 04:35:18] Production.INFO: count ==1018 [2025-04-04 04:35:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:35:06 - End Time 2025-04-04 04:35:06 [2025-04-04 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830432', 'tblTempUsageDetail_20' ) start [2025-04-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830432', 'tblTempUsageDetail_20' ) end [2025-04-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830432', 'tblTempVendorCDR_20' ) start [2025-04-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830432', 'tblTempVendorCDR_20' ) end [2025-04-04 04:35:19] Production.INFO: ProcessCDR(1,14830432,1,1,2) [2025-04-04 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830432', 'tblTempUsageDetail_20' ) start [2025-04-04 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830432', 'tblTempUsageDetail_20' ) end [2025-04-04 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:35:22] Production.INFO: ==5059== Releasing lock... [2025-04-04 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:35:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:36:06 [end_date_ymd] => 2025-04-04 04:36:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:36:06' and `end` < '2025-04-04 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-04 04:36:19] Production.INFO: count ==1019 [2025-04-04 04:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:36:06 - End Time 2025-04-04 04:36:06 [2025-04-04 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830437', 'tblTempUsageDetail_20' ) start [2025-04-04 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830437', 'tblTempUsageDetail_20' ) end [2025-04-04 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830437', 'tblTempVendorCDR_20' ) start [2025-04-04 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830437', 'tblTempVendorCDR_20' ) end [2025-04-04 04:36:19] Production.INFO: ProcessCDR(1,14830437,1,1,2) [2025-04-04 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830437', 'tblTempUsageDetail_20' ) start [2025-04-04 04:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830437', 'tblTempUsageDetail_20' ) end [2025-04-04 04:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:36:24] Production.INFO: ==5130== Releasing lock... [2025-04-04 04:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:36:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:37:05 [end_date_ymd] => 2025-04-04 04:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:37:05' and `end` < '2025-04-04 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-04 04:37:18] Production.INFO: count ==1015 [2025-04-04 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:37:05 - End Time 2025-04-04 04:37:05 [2025-04-04 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830442', 'tblTempUsageDetail_20' ) start [2025-04-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830442', 'tblTempUsageDetail_20' ) end [2025-04-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830442', 'tblTempVendorCDR_20' ) start [2025-04-04 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830442', 'tblTempVendorCDR_20' ) end [2025-04-04 04:37:18] Production.INFO: ProcessCDR(1,14830442,1,1,2) [2025-04-04 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830442', 'tblTempUsageDetail_20' ) start [2025-04-04 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830442', 'tblTempUsageDetail_20' ) end [2025-04-04 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:37:22] Production.INFO: ==5200== Releasing lock... [2025-04-04 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:38:06 [end_date_ymd] => 2025-04-04 04:38:06 [RateCDR] => 1 ) [2025-04-04 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:38:06' and `end` < '2025-04-04 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:38:18] Production.INFO: count ==1015 [2025-04-04 04:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:38:06 - End Time 2025-04-04 04:38:06 [2025-04-04 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830447', 'tblTempUsageDetail_20' ) start [2025-04-04 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830447', 'tblTempUsageDetail_20' ) end [2025-04-04 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830447', 'tblTempVendorCDR_20' ) start [2025-04-04 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830447', 'tblTempVendorCDR_20' ) end [2025-04-04 04:38:19] Production.INFO: ProcessCDR(1,14830447,1,1,2) [2025-04-04 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830447', 'tblTempUsageDetail_20' ) start [2025-04-04 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830447', 'tblTempUsageDetail_20' ) end [2025-04-04 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:38:22] Production.INFO: ==5273== Releasing lock... [2025-04-04 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:38:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:39:05 [end_date_ymd] => 2025-04-04 04:39:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:39:05' and `end` < '2025-04-04 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-04 04:39:18] Production.INFO: count ==1012 [2025-04-04 04:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:39:05 - End Time 2025-04-04 04:39:05 [2025-04-04 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830452', 'tblTempUsageDetail_20' ) start [2025-04-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830452', 'tblTempUsageDetail_20' ) end [2025-04-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830452', 'tblTempVendorCDR_20' ) start [2025-04-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830452', 'tblTempVendorCDR_20' ) end [2025-04-04 04:39:19] Production.INFO: ProcessCDR(1,14830452,1,1,2) [2025-04-04 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830452', 'tblTempUsageDetail_20' ) start [2025-04-04 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830452', 'tblTempUsageDetail_20' ) end [2025-04-04 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:39:22] Production.INFO: ==5383== Releasing lock... [2025-04-04 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:39:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:40:06 [end_date_ymd] => 2025-04-04 04:40:06 [RateCDR] => 1 ) [2025-04-04 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:40:06' and `end` < '2025-04-04 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:40:19] Production.INFO: count ==1004 [2025-04-04 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:40:06 - End Time 2025-04-04 04:40:06 [2025-04-04 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830458', 'tblTempUsageDetail_20' ) start [2025-04-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830458', 'tblTempUsageDetail_20' ) end [2025-04-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830458', 'tblTempVendorCDR_20' ) start [2025-04-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830458', 'tblTempVendorCDR_20' ) end [2025-04-04 04:40:19] Production.INFO: ProcessCDR(1,14830458,1,1,2) [2025-04-04 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830458', 'tblTempUsageDetail_20' ) start [2025-04-04 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830458', 'tblTempUsageDetail_20' ) end [2025-04-04 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:40:23] Production.INFO: ==5462== Releasing lock... [2025-04-04 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:40:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:41:05 [end_date_ymd] => 2025-04-04 04:41:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:41:05' and `end` < '2025-04-04 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-04 04:41:18] Production.INFO: count ==1004 [2025-04-04 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:41:05 - End Time 2025-04-04 04:41:05 [2025-04-04 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830463', 'tblTempUsageDetail_20' ) start [2025-04-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830463', 'tblTempUsageDetail_20' ) end [2025-04-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830463', 'tblTempVendorCDR_20' ) start [2025-04-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830463', 'tblTempVendorCDR_20' ) end [2025-04-04 04:41:18] Production.INFO: ProcessCDR(1,14830463,1,1,2) [2025-04-04 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830463', 'tblTempUsageDetail_20' ) start [2025-04-04 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830463', 'tblTempUsageDetail_20' ) end [2025-04-04 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:41:22] Production.INFO: ==5537== Releasing lock... [2025-04-04 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:42:06 [end_date_ymd] => 2025-04-04 04:42:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:42:06' and `end` < '2025-04-04 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-04 04:42:19] Production.INFO: count ==1003 [2025-04-04 04:42:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:42:06 - End Time 2025-04-04 04:42:06 [2025-04-04 04:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830468', 'tblTempUsageDetail_20' ) start [2025-04-04 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830468', 'tblTempUsageDetail_20' ) end [2025-04-04 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830468', 'tblTempVendorCDR_20' ) start [2025-04-04 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830468', 'tblTempVendorCDR_20' ) end [2025-04-04 04:42:20] Production.INFO: ProcessCDR(1,14830468,1,1,2) [2025-04-04 04:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830468', 'tblTempUsageDetail_20' ) start [2025-04-04 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830468', 'tblTempUsageDetail_20' ) end [2025-04-04 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:42:23] Production.INFO: ==5610== Releasing lock... [2025-04-04 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:42:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:43:05 [end_date_ymd] => 2025-04-04 04:43:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:43:05' and `end` < '2025-04-04 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-04 04:43:18] Production.INFO: count ==988 [2025-04-04 04:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:43:05 - End Time 2025-04-04 04:43:05 [2025-04-04 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830473', 'tblTempUsageDetail_20' ) start [2025-04-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830473', 'tblTempUsageDetail_20' ) end [2025-04-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830473', 'tblTempVendorCDR_20' ) start [2025-04-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830473', 'tblTempVendorCDR_20' ) end [2025-04-04 04:43:19] Production.INFO: ProcessCDR(1,14830473,1,1,2) [2025-04-04 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830473', 'tblTempUsageDetail_20' ) start [2025-04-04 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830473', 'tblTempUsageDetail_20' ) end [2025-04-04 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:43:22] Production.INFO: ==5683== Releasing lock... [2025-04-04 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:43:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:44:06 [end_date_ymd] => 2025-04-04 04:44:06 [RateCDR] => 1 ) [2025-04-04 04: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 01:44:06' and `end` < '2025-04-04 04: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-04 04:44:19] Production.INFO: count ==988 [2025-04-04 04:44:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:44:06 - End Time 2025-04-04 04:44:06 [2025-04-04 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830478', 'tblTempUsageDetail_20' ) start [2025-04-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830478', 'tblTempUsageDetail_20' ) end [2025-04-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830478', 'tblTempVendorCDR_20' ) start [2025-04-04 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830478', 'tblTempVendorCDR_20' ) end [2025-04-04 04:44:19] Production.INFO: ProcessCDR(1,14830478,1,1,2) [2025-04-04 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830478', 'tblTempUsageDetail_20' ) start [2025-04-04 04:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830478', 'tblTempUsageDetail_20' ) end [2025-04-04 04:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:44:23] Production.INFO: ==5756== Releasing lock... [2025-04-04 04:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:44:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:45:05 [end_date_ymd] => 2025-04-04 04:45:05 [RateCDR] => 1 ) [2025-04-04 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:45:05' and `end` < '2025-04-04 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:45:18] Production.INFO: count ==988 [2025-04-04 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:45:05 - End Time 2025-04-04 04:45:05 [2025-04-04 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830483', 'tblTempUsageDetail_20' ) start [2025-04-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830483', 'tblTempUsageDetail_20' ) end [2025-04-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830483', 'tblTempVendorCDR_20' ) start [2025-04-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830483', 'tblTempVendorCDR_20' ) end [2025-04-04 04:45:18] Production.INFO: ProcessCDR(1,14830483,1,1,2) [2025-04-04 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830483', 'tblTempUsageDetail_20' ) start [2025-04-04 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830483', 'tblTempUsageDetail_20' ) end [2025-04-04 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:45:22] Production.INFO: ==5829== Releasing lock... [2025-04-04 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:45:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:46:06 [end_date_ymd] => 2025-04-04 04:46:06 [RateCDR] => 1 ) [2025-04-04 04: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-04 01:46:06' and `end` < '2025-04-04 04: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-04 04:46:19] Production.INFO: count ==988 [2025-04-04 04:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:46:06 - End Time 2025-04-04 04:46:06 [2025-04-04 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830488', 'tblTempUsageDetail_20' ) start [2025-04-04 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830488', 'tblTempUsageDetail_20' ) end [2025-04-04 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830488', 'tblTempVendorCDR_20' ) start [2025-04-04 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830488', 'tblTempVendorCDR_20' ) end [2025-04-04 04:46:19] Production.INFO: ProcessCDR(1,14830488,1,1,2) [2025-04-04 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830488', 'tblTempUsageDetail_20' ) start [2025-04-04 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830488', 'tblTempUsageDetail_20' ) end [2025-04-04 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:46:23] Production.INFO: ==5902== Releasing lock... [2025-04-04 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:46:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:47:05 [end_date_ymd] => 2025-04-04 04:47:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:47:05' and `end` < '2025-04-04 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-04 04:47:18] Production.INFO: count ==985 [2025-04-04 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:47:05 - End Time 2025-04-04 04:47:05 [2025-04-04 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830493', 'tblTempUsageDetail_20' ) start [2025-04-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830493', 'tblTempUsageDetail_20' ) end [2025-04-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830493', 'tblTempVendorCDR_20' ) start [2025-04-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830493', 'tblTempVendorCDR_20' ) end [2025-04-04 04:47:18] Production.INFO: ProcessCDR(1,14830493,1,1,2) [2025-04-04 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830493', 'tblTempUsageDetail_20' ) start [2025-04-04 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830493', 'tblTempUsageDetail_20' ) end [2025-04-04 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:47:22] Production.INFO: ==5972== Releasing lock... [2025-04-04 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:48:05 [end_date_ymd] => 2025-04-04 04:48:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:48:05' and `end` < '2025-04-04 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-04 04:48:19] Production.INFO: count ==985 [2025-04-04 04:48:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:48:05 - End Time 2025-04-04 04:48:05 [2025-04-04 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830498', 'tblTempUsageDetail_20' ) start [2025-04-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830498', 'tblTempUsageDetail_20' ) end [2025-04-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830498', 'tblTempVendorCDR_20' ) start [2025-04-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830498', 'tblTempVendorCDR_20' ) end [2025-04-04 04:48:20] Production.INFO: ProcessCDR(1,14830498,1,1,2) [2025-04-04 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830498', 'tblTempUsageDetail_20' ) start [2025-04-04 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830498', 'tblTempUsageDetail_20' ) end [2025-04-04 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:48:23] Production.INFO: ==6050== Releasing lock... [2025-04-04 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:48:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:49:04 [end_date_ymd] => 2025-04-04 04:49:04 [RateCDR] => 1 ) [2025-04-04 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:49:04' and `end` < '2025-04-04 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:49:17] Production.INFO: count ==983 [2025-04-04 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 01:49:04 - End Time 2025-04-04 04:49:04 [2025-04-04 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830503', 'tblTempUsageDetail_20' ) start [2025-04-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830503', 'tblTempUsageDetail_20' ) end [2025-04-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830503', 'tblTempVendorCDR_20' ) start [2025-04-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830503', 'tblTempVendorCDR_20' ) end [2025-04-04 04:49:18] Production.INFO: ProcessCDR(1,14830503,1,1,2) [2025-04-04 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830503', 'tblTempUsageDetail_20' ) start [2025-04-04 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830503', 'tblTempUsageDetail_20' ) end [2025-04-04 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:49:21] Production.INFO: ==6125== Releasing lock... [2025-04-04 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:50:06 [end_date_ymd] => 2025-04-04 04:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:50:06' and `end` < '2025-04-04 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-04 04:50:19] Production.INFO: count ==973 [2025-04-04 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:50:06 - End Time 2025-04-04 04:50:06 [2025-04-04 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830509', 'tblTempUsageDetail_20' ) start [2025-04-04 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830509', 'tblTempUsageDetail_20' ) end [2025-04-04 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830509', 'tblTempVendorCDR_20' ) start [2025-04-04 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830509', 'tblTempVendorCDR_20' ) end [2025-04-04 04:50:19] Production.INFO: ProcessCDR(1,14830509,1,1,2) [2025-04-04 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830509', 'tblTempUsageDetail_20' ) start [2025-04-04 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830509', 'tblTempUsageDetail_20' ) end [2025-04-04 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:50:23] Production.INFO: ==6207== Releasing lock... [2025-04-04 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:50:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:51:05 [end_date_ymd] => 2025-04-04 04:51:05 [RateCDR] => 1 ) [2025-04-04 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 01:51:05' and `end` < '2025-04-04 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 04:51:19] Production.INFO: count ==969 [2025-04-04 04:51:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:51:05 - End Time 2025-04-04 04:51:05 [2025-04-04 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830514', 'tblTempUsageDetail_20' ) start [2025-04-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830514', 'tblTempUsageDetail_20' ) end [2025-04-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830514', 'tblTempVendorCDR_20' ) start [2025-04-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830514', 'tblTempVendorCDR_20' ) end [2025-04-04 04:51:20] Production.INFO: ProcessCDR(1,14830514,1,1,2) [2025-04-04 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830514', 'tblTempUsageDetail_20' ) start [2025-04-04 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830514', 'tblTempUsageDetail_20' ) end [2025-04-04 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:51:23] Production.INFO: ==6280== Releasing lock... [2025-04-04 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:52:06 [end_date_ymd] => 2025-04-04 04:52:06 [RateCDR] => 1 ) [2025-04-04 04: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-04 01:52:06' and `end` < '2025-04-04 04: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-04 04:52:19] Production.INFO: count ==973 [2025-04-04 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:52:06 - End Time 2025-04-04 04:52:06 [2025-04-04 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830519', 'tblTempUsageDetail_20' ) start [2025-04-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830519', 'tblTempUsageDetail_20' ) end [2025-04-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830519', 'tblTempVendorCDR_20' ) start [2025-04-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830519', 'tblTempVendorCDR_20' ) end [2025-04-04 04:52:19] Production.INFO: ProcessCDR(1,14830519,1,1,2) [2025-04-04 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830519', 'tblTempUsageDetail_20' ) start [2025-04-04 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830519', 'tblTempUsageDetail_20' ) end [2025-04-04 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:52:23] Production.INFO: ==6354== Releasing lock... [2025-04-04 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:52:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-04 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:53:05 [end_date_ymd] => 2025-04-04 04:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:53:05' and `end` < '2025-04-04 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-04 04:53:19] Production.INFO: count ==972 [2025-04-04 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:53:05 - End Time 2025-04-04 04:53:05 [2025-04-04 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830524', 'tblTempUsageDetail_20' ) start [2025-04-04 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830524', 'tblTempUsageDetail_20' ) end [2025-04-04 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830524', 'tblTempVendorCDR_20' ) start [2025-04-04 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830524', 'tblTempVendorCDR_20' ) end [2025-04-04 04:53:19] Production.INFO: ProcessCDR(1,14830524,1,1,2) [2025-04-04 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830524', 'tblTempUsageDetail_20' ) start [2025-04-04 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830524', 'tblTempUsageDetail_20' ) end [2025-04-04 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:53:22] Production.INFO: ==6444== Releasing lock... [2025-04-04 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:53:22] Production.INFO: 36 MB #Memory Used# [2025-04-04 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:54:05 [end_date_ymd] => 2025-04-04 04:54:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:54:05' and `end` < '2025-04-04 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-04 04:54:19] Production.INFO: count ==977 [2025-04-04 04:54:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:54:05 - End Time 2025-04-04 04:54:05 [2025-04-04 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830529', 'tblTempUsageDetail_20' ) start [2025-04-04 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830529', 'tblTempUsageDetail_20' ) end [2025-04-04 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830529', 'tblTempVendorCDR_20' ) start [2025-04-04 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830529', 'tblTempVendorCDR_20' ) end [2025-04-04 04:54:20] Production.INFO: ProcessCDR(1,14830529,1,1,2) [2025-04-04 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830529', 'tblTempUsageDetail_20' ) start [2025-04-04 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830529', 'tblTempUsageDetail_20' ) end [2025-04-04 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:54:23] Production.INFO: ==6525== Releasing lock... [2025-04-04 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:54:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:55:05 [end_date_ymd] => 2025-04-04 04:55:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:55:05' and `end` < '2025-04-04 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-04 04:55:18] Production.INFO: count ==964 [2025-04-04 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:55:05 - End Time 2025-04-04 04:55:05 [2025-04-04 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830534', 'tblTempUsageDetail_20' ) start [2025-04-04 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830534', 'tblTempUsageDetail_20' ) end [2025-04-04 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830534', 'tblTempVendorCDR_20' ) start [2025-04-04 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830534', 'tblTempVendorCDR_20' ) end [2025-04-04 04:55:19] Production.INFO: ProcessCDR(1,14830534,1,1,2) [2025-04-04 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830534', 'tblTempUsageDetail_20' ) start [2025-04-04 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830534', 'tblTempUsageDetail_20' ) end [2025-04-04 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:55:22] Production.INFO: ==6639== Releasing lock... [2025-04-04 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:56:05 [end_date_ymd] => 2025-04-04 04:56:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:56:05' and `end` < '2025-04-04 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-04 04:56:21] Production.INFO: count ==962 [2025-04-04 04:56:21] Production.ERROR: pbx CDR StartTime 2025-04-04 01:56:05 - End Time 2025-04-04 04:56:05 [2025-04-04 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830539', 'tblTempUsageDetail_20' ) start [2025-04-04 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830539', 'tblTempUsageDetail_20' ) end [2025-04-04 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830539', 'tblTempVendorCDR_20' ) start [2025-04-04 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830539', 'tblTempVendorCDR_20' ) end [2025-04-04 04:56:21] Production.INFO: ProcessCDR(1,14830539,1,1,2) [2025-04-04 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830539', 'tblTempUsageDetail_20' ) start [2025-04-04 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830539', 'tblTempUsageDetail_20' ) end [2025-04-04 04:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:56:25] Production.INFO: ==6713== Releasing lock... [2025-04-04 04:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:56:25] Production.INFO: 36 MB #Memory Used# [2025-04-04 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:57:05 [end_date_ymd] => 2025-04-04 04:57:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:57:05' and `end` < '2025-04-04 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-04 04:57:20] Production.INFO: count ==958 [2025-04-04 04:57:20] Production.ERROR: pbx CDR StartTime 2025-04-04 01:57:05 - End Time 2025-04-04 04:57:05 [2025-04-04 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830544', 'tblTempUsageDetail_20' ) start [2025-04-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830544', 'tblTempUsageDetail_20' ) end [2025-04-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830544', 'tblTempVendorCDR_20' ) start [2025-04-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830544', 'tblTempVendorCDR_20' ) end [2025-04-04 04:57:20] Production.INFO: ProcessCDR(1,14830544,1,1,2) [2025-04-04 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830544', 'tblTempUsageDetail_20' ) start [2025-04-04 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830544', 'tblTempUsageDetail_20' ) end [2025-04-04 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:57:24] Production.INFO: ==6787== Releasing lock... [2025-04-04 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:57:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:58:06 [end_date_ymd] => 2025-04-04 04:58:06 [RateCDR] => 1 ) [2025-04-04 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-04 01:58:06' and `end` < '2025-04-04 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-04 04:58:19] Production.INFO: count ==958 [2025-04-04 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:58:06 - End Time 2025-04-04 04:58:06 [2025-04-04 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830549', 'tblTempUsageDetail_20' ) start [2025-04-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830549', 'tblTempUsageDetail_20' ) end [2025-04-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830549', 'tblTempVendorCDR_20' ) start [2025-04-04 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830549', 'tblTempVendorCDR_20' ) end [2025-04-04 04:58:19] Production.INFO: ProcessCDR(1,14830549,1,1,2) [2025-04-04 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830549', 'tblTempUsageDetail_20' ) start [2025-04-04 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830549', 'tblTempUsageDetail_20' ) end [2025-04-04 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:58:23] Production.INFO: ==6862== Releasing lock... [2025-04-04 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:58:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 01:59:05 [end_date_ymd] => 2025-04-04 04:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 01:59:05' and `end` < '2025-04-04 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-04 04:59:19] Production.INFO: count ==963 [2025-04-04 04:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 01:59:05 - End Time 2025-04-04 04:59:05 [2025-04-04 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830554', 'tblTempUsageDetail_20' ) start [2025-04-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830554', 'tblTempUsageDetail_20' ) end [2025-04-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830554', 'tblTempVendorCDR_20' ) start [2025-04-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830554', 'tblTempVendorCDR_20' ) end [2025-04-04 04:59:19] Production.INFO: ProcessCDR(1,14830554,1,1,2) [2025-04-04 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830554', 'tblTempUsageDetail_20' ) start [2025-04-04 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830554', 'tblTempUsageDetail_20' ) end [2025-04-04 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 04:59:22] Production.INFO: ==6935== Releasing lock... [2025-04-04 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 04:59:22] Production.INFO: 36 MB #Memory Used# [2025-04-04 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:00:06 [end_date_ymd] => 2025-04-04 05:00:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:00:06' and `end` < '2025-04-04 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-04 05:00:20] Production.INFO: count ==968 [2025-04-04 05:00:21] Production.ERROR: pbx CDR StartTime 2025-04-04 02:00:06 - End Time 2025-04-04 05:00:06 [2025-04-04 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830560', 'tblTempUsageDetail_20' ) start [2025-04-04 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830560', 'tblTempUsageDetail_20' ) end [2025-04-04 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830560', 'tblTempVendorCDR_20' ) start [2025-04-04 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830560', 'tblTempVendorCDR_20' ) end [2025-04-04 05:00:21] Production.INFO: ProcessCDR(1,14830560,1,1,2) [2025-04-04 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830560', 'tblTempUsageDetail_20' ) start [2025-04-04 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830560', 'tblTempUsageDetail_20' ) end [2025-04-04 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:00:24] Production.INFO: ==7012== Releasing lock... [2025-04-04 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:00:24] Production.INFO: 36 MB #Memory Used# [2025-04-04 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:01:05 [end_date_ymd] => 2025-04-04 05:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:01:05' and `end` < '2025-04-04 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-04 05:01:18] Production.INFO: count ==970 [2025-04-04 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:01:05 - End Time 2025-04-04 05:01:05 [2025-04-04 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830565', 'tblTempUsageDetail_20' ) start [2025-04-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830565', 'tblTempUsageDetail_20' ) end [2025-04-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830565', 'tblTempVendorCDR_20' ) start [2025-04-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830565', 'tblTempVendorCDR_20' ) end [2025-04-04 05:01:18] Production.INFO: ProcessCDR(1,14830565,1,1,2) [2025-04-04 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830565', 'tblTempUsageDetail_20' ) start [2025-04-04 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830565', 'tblTempUsageDetail_20' ) end [2025-04-04 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:01:22] Production.INFO: ==7105== Releasing lock... [2025-04-04 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:02:05 [end_date_ymd] => 2025-04-04 05:02:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:02:05' and `end` < '2025-04-04 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-04 05:02:20] Production.INFO: count ==970 [2025-04-04 05:02:20] Production.ERROR: pbx CDR StartTime 2025-04-04 02:02:05 - End Time 2025-04-04 05:02:05 [2025-04-04 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830570', 'tblTempUsageDetail_20' ) start [2025-04-04 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830570', 'tblTempUsageDetail_20' ) end [2025-04-04 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830570', 'tblTempVendorCDR_20' ) start [2025-04-04 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830570', 'tblTempVendorCDR_20' ) end [2025-04-04 05:02:20] Production.INFO: ProcessCDR(1,14830570,1,1,2) [2025-04-04 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830570', 'tblTempUsageDetail_20' ) start [2025-04-04 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830570', 'tblTempUsageDetail_20' ) end [2025-04-04 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:02:23] Production.INFO: ==7176== Releasing lock... [2025-04-04 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:02:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:03:05 [end_date_ymd] => 2025-04-04 05:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:03:05' and `end` < '2025-04-04 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-04 05:03:18] Production.INFO: count ==971 [2025-04-04 05:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:03:05 - End Time 2025-04-04 05:03:05 [2025-04-04 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830575', 'tblTempUsageDetail_20' ) start [2025-04-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830575', 'tblTempUsageDetail_20' ) end [2025-04-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830575', 'tblTempVendorCDR_20' ) start [2025-04-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830575', 'tblTempVendorCDR_20' ) end [2025-04-04 05:03:19] Production.INFO: ProcessCDR(1,14830575,1,1,2) [2025-04-04 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830575', 'tblTempUsageDetail_20' ) start [2025-04-04 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830575', 'tblTempUsageDetail_20' ) end [2025-04-04 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:03:22] Production.INFO: ==7253== Releasing lock... [2025-04-04 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:03:22] Production.INFO: 36 MB #Memory Used# [2025-04-04 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:04:06 [end_date_ymd] => 2025-04-04 05:04:06 [RateCDR] => 1 ) [2025-04-04 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:04:06' and `end` < '2025-04-04 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:04:19] Production.INFO: count ==974 [2025-04-04 05:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:04:06 - End Time 2025-04-04 05:04:06 [2025-04-04 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830580', 'tblTempUsageDetail_20' ) start [2025-04-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830580', 'tblTempUsageDetail_20' ) end [2025-04-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830580', 'tblTempVendorCDR_20' ) start [2025-04-04 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830580', 'tblTempVendorCDR_20' ) end [2025-04-04 05:04:19] Production.INFO: ProcessCDR(1,14830580,1,1,2) [2025-04-04 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830580', 'tblTempUsageDetail_20' ) start [2025-04-04 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830580', 'tblTempUsageDetail_20' ) end [2025-04-04 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:04:23] Production.INFO: ==7335== Releasing lock... [2025-04-04 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:04:23] Production.INFO: 36 MB #Memory Used# [2025-04-04 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:05:05 [end_date_ymd] => 2025-04-04 05:05:05 [RateCDR] => 1 ) [2025-04-04 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:05:05' and `end` < '2025-04-04 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:05:18] Production.INFO: count ==972 [2025-04-04 05:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:05:05 - End Time 2025-04-04 05:05:05 [2025-04-04 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830585', 'tblTempUsageDetail_20' ) start [2025-04-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830585', 'tblTempUsageDetail_20' ) end [2025-04-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830585', 'tblTempVendorCDR_20' ) start [2025-04-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830585', 'tblTempVendorCDR_20' ) end [2025-04-04 05:05:19] Production.INFO: ProcessCDR(1,14830585,1,1,2) [2025-04-04 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830585', 'tblTempUsageDetail_20' ) start [2025-04-04 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830585', 'tblTempUsageDetail_20' ) end [2025-04-04 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:05:22] Production.INFO: ==7420== Releasing lock... [2025-04-04 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:05:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:06:05 [end_date_ymd] => 2025-04-04 05:06:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:06:05' and `end` < '2025-04-04 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-04 05:06:19] Production.INFO: count ==980 [2025-04-04 05:06:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:06:05 - End Time 2025-04-04 05:06:05 [2025-04-04 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830590', 'tblTempUsageDetail_20' ) start [2025-04-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830590', 'tblTempUsageDetail_20' ) end [2025-04-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830590', 'tblTempVendorCDR_20' ) start [2025-04-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830590', 'tblTempVendorCDR_20' ) end [2025-04-04 05:06:19] Production.INFO: ProcessCDR(1,14830590,1,1,2) [2025-04-04 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830590', 'tblTempUsageDetail_20' ) start [2025-04-04 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830590', 'tblTempUsageDetail_20' ) end [2025-04-04 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:06:23] Production.INFO: ==7497== Releasing lock... [2025-04-04 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:07:06 [end_date_ymd] => 2025-04-04 05:07:06 [RateCDR] => 1 ) [2025-04-04 05: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-04 02:07:06' and `end` < '2025-04-04 05: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-04 05:07:18] Production.INFO: count ==969 [2025-04-04 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:07:06 - End Time 2025-04-04 05:07:06 [2025-04-04 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830595', 'tblTempUsageDetail_20' ) start [2025-04-04 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830595', 'tblTempUsageDetail_20' ) end [2025-04-04 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830595', 'tblTempVendorCDR_20' ) start [2025-04-04 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830595', 'tblTempVendorCDR_20' ) end [2025-04-04 05:07:19] Production.INFO: ProcessCDR(1,14830595,1,1,2) [2025-04-04 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830595', 'tblTempUsageDetail_20' ) start [2025-04-04 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830595', 'tblTempUsageDetail_20' ) end [2025-04-04 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:07:22] Production.INFO: ==7579== Releasing lock... [2025-04-04 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:08:05 [end_date_ymd] => 2025-04-04 05:08:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:08:05' and `end` < '2025-04-04 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-04 05:08:18] Production.INFO: count ==945 [2025-04-04 05:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:08:05 - End Time 2025-04-04 05:08:05 [2025-04-04 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830600', 'tblTempUsageDetail_20' ) start [2025-04-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830600', 'tblTempUsageDetail_20' ) end [2025-04-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830600', 'tblTempVendorCDR_20' ) start [2025-04-04 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830600', 'tblTempVendorCDR_20' ) end [2025-04-04 05:08:19] Production.INFO: ProcessCDR(1,14830600,1,1,2) [2025-04-04 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830600', 'tblTempUsageDetail_20' ) start [2025-04-04 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830600', 'tblTempUsageDetail_20' ) end [2025-04-04 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:08:22] Production.INFO: ==7664== Releasing lock... [2025-04-04 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:08:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-04 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:09:06 [end_date_ymd] => 2025-04-04 05:09:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:09:06' and `end` < '2025-04-04 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-04 05:09:18] Production.INFO: count ==945 [2025-04-04 05:09:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:09:06 - End Time 2025-04-04 05:09:06 [2025-04-04 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830605', 'tblTempUsageDetail_20' ) start [2025-04-04 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830605', 'tblTempUsageDetail_20' ) end [2025-04-04 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830605', 'tblTempVendorCDR_20' ) start [2025-04-04 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830605', 'tblTempVendorCDR_20' ) end [2025-04-04 05:09:19] Production.INFO: ProcessCDR(1,14830605,1,1,2) [2025-04-04 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830605', 'tblTempUsageDetail_20' ) start [2025-04-04 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830605', 'tblTempUsageDetail_20' ) end [2025-04-04 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:09:22] Production.INFO: ==7743== Releasing lock... [2025-04-04 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:09:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-04 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:10:05 [end_date_ymd] => 2025-04-04 05:10:05 [RateCDR] => 1 ) [2025-04-04 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:10:05' and `end` < '2025-04-04 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:10:18] Production.INFO: count ==948 [2025-04-04 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:10:05 - End Time 2025-04-04 05:10:05 [2025-04-04 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830610', 'tblTempUsageDetail_20' ) start [2025-04-04 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830610', 'tblTempUsageDetail_20' ) end [2025-04-04 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830610', 'tblTempVendorCDR_20' ) start [2025-04-04 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830610', 'tblTempVendorCDR_20' ) end [2025-04-04 05:10:19] Production.INFO: ProcessCDR(1,14830610,1,1,2) [2025-04-04 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830610', 'tblTempUsageDetail_20' ) start [2025-04-04 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830610', 'tblTempUsageDetail_20' ) end [2025-04-04 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:10:22] Production.INFO: ==7873== Releasing lock... [2025-04-04 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:11:06 [end_date_ymd] => 2025-04-04 05:11:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:11:06' and `end` < '2025-04-04 05: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-04 05:11:19] Production.INFO: count ==943 [2025-04-04 05:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:11:06 - End Time 2025-04-04 05:11:06 [2025-04-04 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830616', 'tblTempUsageDetail_20' ) start [2025-04-04 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830616', 'tblTempUsageDetail_20' ) end [2025-04-04 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830616', 'tblTempVendorCDR_20' ) start [2025-04-04 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830616', 'tblTempVendorCDR_20' ) end [2025-04-04 05:11:19] Production.INFO: ProcessCDR(1,14830616,1,1,2) [2025-04-04 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830616', 'tblTempUsageDetail_20' ) start [2025-04-04 05:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830616', 'tblTempUsageDetail_20' ) end [2025-04-04 05:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:11:24] Production.INFO: ==7955== Releasing lock... [2025-04-04 05:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:11:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:12:05 [end_date_ymd] => 2025-04-04 05:12:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:12:05' and `end` < '2025-04-04 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-04 05:12:18] Production.INFO: count ==939 [2025-04-04 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:12:05 - End Time 2025-04-04 05:12:05 [2025-04-04 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830621', 'tblTempUsageDetail_20' ) start [2025-04-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830621', 'tblTempUsageDetail_20' ) end [2025-04-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830621', 'tblTempVendorCDR_20' ) start [2025-04-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830621', 'tblTempVendorCDR_20' ) end [2025-04-04 05:12:18] Production.INFO: ProcessCDR(1,14830621,1,1,2) [2025-04-04 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830621', 'tblTempUsageDetail_20' ) start [2025-04-04 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830621', 'tblTempUsageDetail_20' ) end [2025-04-04 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:12:22] Production.INFO: ==8038== Releasing lock... [2025-04-04 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:13:05 [end_date_ymd] => 2025-04-04 05:13:05 [RateCDR] => 1 ) [2025-04-04 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:13:05' and `end` < '2025-04-04 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:13:18] Production.INFO: count ==911 [2025-04-04 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:13:05 - End Time 2025-04-04 05:13:05 [2025-04-04 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830626', 'tblTempUsageDetail_20' ) start [2025-04-04 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830626', 'tblTempUsageDetail_20' ) end [2025-04-04 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830626', 'tblTempVendorCDR_20' ) start [2025-04-04 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830626', 'tblTempVendorCDR_20' ) end [2025-04-04 05:13:18] Production.INFO: ProcessCDR(1,14830626,1,1,2) [2025-04-04 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830626', 'tblTempUsageDetail_20' ) start [2025-04-04 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830626', 'tblTempUsageDetail_20' ) end [2025-04-04 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:13:22] Production.INFO: ==8114== Releasing lock... [2025-04-04 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:13:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:14:05 [end_date_ymd] => 2025-04-04 05:14:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:14:05' and `end` < '2025-04-04 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-04 05:14:18] Production.INFO: count ==912 [2025-04-04 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:14:05 - End Time 2025-04-04 05:14:05 [2025-04-04 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830631', 'tblTempUsageDetail_20' ) start [2025-04-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830631', 'tblTempUsageDetail_20' ) end [2025-04-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830631', 'tblTempVendorCDR_20' ) start [2025-04-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830631', 'tblTempVendorCDR_20' ) end [2025-04-04 05:14:18] Production.INFO: ProcessCDR(1,14830631,1,1,2) [2025-04-04 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830631', 'tblTempUsageDetail_20' ) start [2025-04-04 05:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830631', 'tblTempUsageDetail_20' ) end [2025-04-04 05:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:14:23] Production.INFO: ==8198== Releasing lock... [2025-04-04 05:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:14:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:15:06 [end_date_ymd] => 2025-04-04 05:15:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:15:06' and `end` < '2025-04-04 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-04 05:15:18] Production.INFO: count ==912 [2025-04-04 05:15:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:15:06 - End Time 2025-04-04 05:15:06 [2025-04-04 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830636', 'tblTempUsageDetail_20' ) start [2025-04-04 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830636', 'tblTempUsageDetail_20' ) end [2025-04-04 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830636', 'tblTempVendorCDR_20' ) start [2025-04-04 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830636', 'tblTempVendorCDR_20' ) end [2025-04-04 05:15:19] Production.INFO: ProcessCDR(1,14830636,1,1,2) [2025-04-04 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830636', 'tblTempUsageDetail_20' ) start [2025-04-04 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830636', 'tblTempUsageDetail_20' ) end [2025-04-04 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:15:22] Production.INFO: ==8279== Releasing lock... [2025-04-04 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:15:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:16:06 [end_date_ymd] => 2025-04-04 05:16:06 [RateCDR] => 1 ) [2025-04-04 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:16:06' and `end` < '2025-04-04 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:16:19] Production.INFO: count ==912 [2025-04-04 05:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:16:06 - End Time 2025-04-04 05:16:06 [2025-04-04 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830641', 'tblTempUsageDetail_20' ) start [2025-04-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830641', 'tblTempUsageDetail_20' ) end [2025-04-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830641', 'tblTempVendorCDR_20' ) start [2025-04-04 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830641', 'tblTempVendorCDR_20' ) end [2025-04-04 05:16:19] Production.INFO: ProcessCDR(1,14830641,1,1,2) [2025-04-04 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830641', 'tblTempUsageDetail_20' ) start [2025-04-04 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830641', 'tblTempUsageDetail_20' ) end [2025-04-04 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:16:22] Production.INFO: ==8357== Releasing lock... [2025-04-04 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:16:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:17:05 [end_date_ymd] => 2025-04-04 05:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:17:05' and `end` < '2025-04-04 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-04 05:17:18] Production.INFO: count ==912 [2025-04-04 05:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:17:05 - End Time 2025-04-04 05:17:05 [2025-04-04 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830646', 'tblTempUsageDetail_20' ) start [2025-04-04 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830646', 'tblTempUsageDetail_20' ) end [2025-04-04 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830646', 'tblTempVendorCDR_20' ) start [2025-04-04 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830646', 'tblTempVendorCDR_20' ) end [2025-04-04 05:17:19] Production.INFO: ProcessCDR(1,14830646,1,1,2) [2025-04-04 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830646', 'tblTempUsageDetail_20' ) start [2025-04-04 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830646', 'tblTempUsageDetail_20' ) end [2025-04-04 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:17:22] Production.INFO: ==8433== Releasing lock... [2025-04-04 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:17:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:18:05 [end_date_ymd] => 2025-04-04 05:18:05 [RateCDR] => 1 ) [2025-04-04 05: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-04 02:18:05' and `end` < '2025-04-04 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-04 05:18:18] Production.INFO: count ==912 [2025-04-04 05:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:18:05 - End Time 2025-04-04 05:18:05 [2025-04-04 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830651', 'tblTempUsageDetail_20' ) start [2025-04-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830651', 'tblTempUsageDetail_20' ) end [2025-04-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830651', 'tblTempVendorCDR_20' ) start [2025-04-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830651', 'tblTempVendorCDR_20' ) end [2025-04-04 05:18:19] Production.INFO: ProcessCDR(1,14830651,1,1,2) [2025-04-04 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830651', 'tblTempUsageDetail_20' ) start [2025-04-04 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830651', 'tblTempUsageDetail_20' ) end [2025-04-04 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:18:22] Production.INFO: ==8527== Releasing lock... [2025-04-04 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:19:05 [end_date_ymd] => 2025-04-04 05:19:05 [RateCDR] => 1 ) [2025-04-04 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:19:05' and `end` < '2025-04-04 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:19:18] Production.INFO: count ==912 [2025-04-04 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:19:05 - End Time 2025-04-04 05:19:05 [2025-04-04 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830656', 'tblTempUsageDetail_20' ) start [2025-04-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830656', 'tblTempUsageDetail_20' ) end [2025-04-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830656', 'tblTempVendorCDR_20' ) start [2025-04-04 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830656', 'tblTempVendorCDR_20' ) end [2025-04-04 05:19:19] Production.INFO: ProcessCDR(1,14830656,1,1,2) [2025-04-04 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830656', 'tblTempUsageDetail_20' ) start [2025-04-04 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830656', 'tblTempUsageDetail_20' ) end [2025-04-04 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:19:22] Production.INFO: ==8605== Releasing lock... [2025-04-04 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:19:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:20:07 [end_date_ymd] => 2025-04-04 05:20:07 [RateCDR] => 1 ) [2025-04-04 05: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-04 02:20:07' and `end` < '2025-04-04 05: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-04 05:20:19] Production.INFO: count ==904 [2025-04-04 05:20:20] Production.ERROR: pbx CDR StartTime 2025-04-04 02:20:07 - End Time 2025-04-04 05:20:07 [2025-04-04 05:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830662', 'tblTempUsageDetail_20' ) start [2025-04-04 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830662', 'tblTempUsageDetail_20' ) end [2025-04-04 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830662', 'tblTempVendorCDR_20' ) start [2025-04-04 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830662', 'tblTempVendorCDR_20' ) end [2025-04-04 05:20:20] Production.INFO: ProcessCDR(1,14830662,1,1,2) [2025-04-04 05:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830662', 'tblTempUsageDetail_20' ) start [2025-04-04 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830662', 'tblTempUsageDetail_20' ) end [2025-04-04 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:20:23] Production.INFO: ==8687== Releasing lock... [2025-04-04 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:20:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:21:05 [end_date_ymd] => 2025-04-04 05:21:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:21:05' and `end` < '2025-04-04 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-04 05:21:18] Production.INFO: count ==835 [2025-04-04 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:21:05 - End Time 2025-04-04 05:21:05 [2025-04-04 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830667', 'tblTempUsageDetail_20' ) start [2025-04-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830667', 'tblTempUsageDetail_20' ) end [2025-04-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830667', 'tblTempVendorCDR_20' ) start [2025-04-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830667', 'tblTempVendorCDR_20' ) end [2025-04-04 05:21:18] Production.INFO: ProcessCDR(1,14830667,1,1,2) [2025-04-04 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830667', 'tblTempUsageDetail_20' ) start [2025-04-04 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830667', 'tblTempUsageDetail_20' ) end [2025-04-04 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:21:22] Production.INFO: ==8768== Releasing lock... [2025-04-04 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:21:22] Production.INFO: 35 MB #Memory Used# [2025-04-04 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:22:05 [end_date_ymd] => 2025-04-04 05:22:05 [RateCDR] => 1 ) [2025-04-04 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:22:05' and `end` < '2025-04-04 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:22:18] Production.INFO: count ==835 [2025-04-04 05:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:22:05 - End Time 2025-04-04 05:22:05 [2025-04-04 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830672', 'tblTempUsageDetail_20' ) start [2025-04-04 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830672', 'tblTempUsageDetail_20' ) end [2025-04-04 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830672', 'tblTempVendorCDR_20' ) start [2025-04-04 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830672', 'tblTempVendorCDR_20' ) end [2025-04-04 05:22:19] Production.INFO: ProcessCDR(1,14830672,1,1,2) [2025-04-04 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830672', 'tblTempUsageDetail_20' ) start [2025-04-04 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830672', 'tblTempUsageDetail_20' ) end [2025-04-04 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:22:22] Production.INFO: ==8849== Releasing lock... [2025-04-04 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:22:22] Production.INFO: 35 MB #Memory Used# [2025-04-04 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:23:05 [end_date_ymd] => 2025-04-04 05:23:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:23:05' and `end` < '2025-04-04 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-04 05:23:18] Production.INFO: count ==810 [2025-04-04 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:23:05 - End Time 2025-04-04 05:23:05 [2025-04-04 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830677', 'tblTempUsageDetail_20' ) start [2025-04-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830677', 'tblTempUsageDetail_20' ) end [2025-04-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830677', 'tblTempVendorCDR_20' ) start [2025-04-04 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830677', 'tblTempVendorCDR_20' ) end [2025-04-04 05:23:18] Production.INFO: ProcessCDR(1,14830677,1,1,2) [2025-04-04 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830677', 'tblTempUsageDetail_20' ) start [2025-04-04 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830677', 'tblTempUsageDetail_20' ) end [2025-04-04 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:23:22] Production.INFO: ==8931== Releasing lock... [2025-04-04 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:24:05 [end_date_ymd] => 2025-04-04 05:24:05 [RateCDR] => 1 ) [2025-04-04 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:24:05' and `end` < '2025-04-04 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:24:18] Production.INFO: count ==809 [2025-04-04 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:24:05 - End Time 2025-04-04 05:24:05 [2025-04-04 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830682', 'tblTempUsageDetail_20' ) start [2025-04-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830682', 'tblTempUsageDetail_20' ) end [2025-04-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830682', 'tblTempVendorCDR_20' ) start [2025-04-04 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830682', 'tblTempVendorCDR_20' ) end [2025-04-04 05:24:18] Production.INFO: ProcessCDR(1,14830682,1,1,2) [2025-04-04 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830682', 'tblTempUsageDetail_20' ) start [2025-04-04 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830682', 'tblTempUsageDetail_20' ) end [2025-04-04 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:24:22] Production.INFO: ==9011== Releasing lock... [2025-04-04 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:24:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:25:04 [end_date_ymd] => 2025-04-04 05:25:04 [RateCDR] => 1 ) [2025-04-04 05: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-04 02:25:04' and `end` < '2025-04-04 05: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-04 05:25:17] Production.INFO: count ==808 [2025-04-04 05:25:17] Production.ERROR: pbx CDR StartTime 2025-04-04 02:25:04 - End Time 2025-04-04 05:25:04 [2025-04-04 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830687', 'tblTempUsageDetail_20' ) start [2025-04-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830687', 'tblTempUsageDetail_20' ) end [2025-04-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830687', 'tblTempVendorCDR_20' ) start [2025-04-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830687', 'tblTempVendorCDR_20' ) end [2025-04-04 05:25:17] Production.INFO: ProcessCDR(1,14830687,1,1,2) [2025-04-04 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830687', 'tblTempUsageDetail_20' ) start [2025-04-04 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830687', 'tblTempUsageDetail_20' ) end [2025-04-04 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:25:21] Production.INFO: ==9092== Releasing lock... [2025-04-04 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:25:21] Production.INFO: 35 MB #Memory Used# [2025-04-04 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:26:05 [end_date_ymd] => 2025-04-04 05:26:05 [RateCDR] => 1 ) [2025-04-04 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:26:05' and `end` < '2025-04-04 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:26:18] Production.INFO: count ==805 [2025-04-04 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:26:05 - End Time 2025-04-04 05:26:05 [2025-04-04 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830692', 'tblTempUsageDetail_20' ) start [2025-04-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830692', 'tblTempUsageDetail_20' ) end [2025-04-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830692', 'tblTempVendorCDR_20' ) start [2025-04-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830692', 'tblTempVendorCDR_20' ) end [2025-04-04 05:26:18] Production.INFO: ProcessCDR(1,14830692,1,1,2) [2025-04-04 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830692', 'tblTempUsageDetail_20' ) start [2025-04-04 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830692', 'tblTempUsageDetail_20' ) end [2025-04-04 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:26:22] Production.INFO: ==9210== Releasing lock... [2025-04-04 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:27:05 [end_date_ymd] => 2025-04-04 05:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:27:05' and `end` < '2025-04-04 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-04 05:27:18] Production.INFO: count ==805 [2025-04-04 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:27:05 - End Time 2025-04-04 05:27:05 [2025-04-04 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830697', 'tblTempUsageDetail_20' ) start [2025-04-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830697', 'tblTempUsageDetail_20' ) end [2025-04-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830697', 'tblTempVendorCDR_20' ) start [2025-04-04 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830697', 'tblTempVendorCDR_20' ) end [2025-04-04 05:27:18] Production.INFO: ProcessCDR(1,14830697,1,1,2) [2025-04-04 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830697', 'tblTempUsageDetail_20' ) start [2025-04-04 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830697', 'tblTempUsageDetail_20' ) end [2025-04-04 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:27:21] Production.INFO: ==9292== Releasing lock... [2025-04-04 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:27:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:28:05 [end_date_ymd] => 2025-04-04 05:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:28:05' and `end` < '2025-04-04 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-04 05:28:18] Production.INFO: count ==805 [2025-04-04 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:28:05 - End Time 2025-04-04 05:28:05 [2025-04-04 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830702', 'tblTempUsageDetail_20' ) start [2025-04-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830702', 'tblTempUsageDetail_20' ) end [2025-04-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830702', 'tblTempVendorCDR_20' ) start [2025-04-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830702', 'tblTempVendorCDR_20' ) end [2025-04-04 05:28:18] Production.INFO: ProcessCDR(1,14830702,1,1,2) [2025-04-04 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830702', 'tblTempUsageDetail_20' ) start [2025-04-04 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830702', 'tblTempUsageDetail_20' ) end [2025-04-04 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:28:21] Production.INFO: ==9367== Releasing lock... [2025-04-04 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:28:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:29:06 [end_date_ymd] => 2025-04-04 05:29:06 [RateCDR] => 1 ) [2025-04-04 05: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-04 02:29:06' and `end` < '2025-04-04 05: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-04 05:29:18] Production.INFO: count ==805 [2025-04-04 05:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:29:06 - End Time 2025-04-04 05:29:06 [2025-04-04 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830707', 'tblTempUsageDetail_20' ) start [2025-04-04 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830707', 'tblTempUsageDetail_20' ) end [2025-04-04 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830707', 'tblTempVendorCDR_20' ) start [2025-04-04 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830707', 'tblTempVendorCDR_20' ) end [2025-04-04 05:29:19] Production.INFO: ProcessCDR(1,14830707,1,1,2) [2025-04-04 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830707', 'tblTempUsageDetail_20' ) start [2025-04-04 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830707', 'tblTempUsageDetail_20' ) end [2025-04-04 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:29:22] Production.INFO: ==9460== Releasing lock... [2025-04-04 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:30:06 [end_date_ymd] => 2025-04-04 05:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:30:06' and `end` < '2025-04-04 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-04 05:30:19] Production.INFO: count ==803 [2025-04-04 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:30:06 - End Time 2025-04-04 05:30:06 [2025-04-04 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830712', 'tblTempUsageDetail_20' ) start [2025-04-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830712', 'tblTempUsageDetail_20' ) end [2025-04-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830712', 'tblTempVendorCDR_20' ) start [2025-04-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830712', 'tblTempVendorCDR_20' ) end [2025-04-04 05:30:19] Production.INFO: ProcessCDR(1,14830712,1,1,2) [2025-04-04 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830712', 'tblTempUsageDetail_20' ) start [2025-04-04 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830712', 'tblTempUsageDetail_20' ) end [2025-04-04 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:30:23] Production.INFO: ==9546== Releasing lock... [2025-04-04 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:31:06 [end_date_ymd] => 2025-04-04 05:31:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:31:06' and `end` < '2025-04-04 05: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-04 05:31:19] Production.INFO: count ==766 [2025-04-04 05:31:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:31:06 - End Time 2025-04-04 05:31:06 [2025-04-04 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830718', 'tblTempUsageDetail_20' ) start [2025-04-04 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830718', 'tblTempUsageDetail_20' ) end [2025-04-04 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830718', 'tblTempVendorCDR_20' ) start [2025-04-04 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830718', 'tblTempVendorCDR_20' ) end [2025-04-04 05:31:19] Production.INFO: ProcessCDR(1,14830718,1,1,2) [2025-04-04 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830718', 'tblTempUsageDetail_20' ) start [2025-04-04 05:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830718', 'tblTempUsageDetail_20' ) end [2025-04-04 05:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:31:23] Production.INFO: ==9627== Releasing lock... [2025-04-04 05:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:31:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:32:06 [end_date_ymd] => 2025-04-04 05:32:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:32:06' and `end` < '2025-04-04 05: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-04 05:32:18] Production.INFO: count ==766 [2025-04-04 05:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:32:06 - End Time 2025-04-04 05:32:06 [2025-04-04 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830723', 'tblTempUsageDetail_20' ) start [2025-04-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830723', 'tblTempUsageDetail_20' ) end [2025-04-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830723', 'tblTempVendorCDR_20' ) start [2025-04-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830723', 'tblTempVendorCDR_20' ) end [2025-04-04 05:32:19] Production.INFO: ProcessCDR(1,14830723,1,1,2) [2025-04-04 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830723', 'tblTempUsageDetail_20' ) start [2025-04-04 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830723', 'tblTempUsageDetail_20' ) end [2025-04-04 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:32:22] Production.INFO: ==9703== Releasing lock... [2025-04-04 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:33:06 [end_date_ymd] => 2025-04-04 05:33:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:33:06' and `end` < '2025-04-04 05: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-04 05:33:19] Production.INFO: count ==764 [2025-04-04 05:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:33:06 - End Time 2025-04-04 05:33:06 [2025-04-04 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830728', 'tblTempUsageDetail_20' ) start [2025-04-04 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830728', 'tblTempUsageDetail_20' ) end [2025-04-04 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830728', 'tblTempVendorCDR_20' ) start [2025-04-04 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830728', 'tblTempVendorCDR_20' ) end [2025-04-04 05:33:19] Production.INFO: ProcessCDR(1,14830728,1,1,2) [2025-04-04 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830728', 'tblTempUsageDetail_20' ) start [2025-04-04 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830728', 'tblTempUsageDetail_20' ) end [2025-04-04 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:33:22] Production.INFO: ==9784== Releasing lock... [2025-04-04 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:34:05 [end_date_ymd] => 2025-04-04 05:34:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:34:05' and `end` < '2025-04-04 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-04 05:34:18] Production.INFO: count ==764 [2025-04-04 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:34:05 - End Time 2025-04-04 05:34:05 [2025-04-04 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830733', 'tblTempUsageDetail_20' ) start [2025-04-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830733', 'tblTempUsageDetail_20' ) end [2025-04-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830733', 'tblTempVendorCDR_20' ) start [2025-04-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830733', 'tblTempVendorCDR_20' ) end [2025-04-04 05:34:18] Production.INFO: ProcessCDR(1,14830733,1,1,2) [2025-04-04 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830733', 'tblTempUsageDetail_20' ) start [2025-04-04 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830733', 'tblTempUsageDetail_20' ) end [2025-04-04 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:34:21] Production.INFO: ==9867== Releasing lock... [2025-04-04 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:34:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:35:06 [end_date_ymd] => 2025-04-04 05:35:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:35:06' and `end` < '2025-04-04 05: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-04 05:35:19] Production.INFO: count ==764 [2025-04-04 05:35:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:35:06 - End Time 2025-04-04 05:35:06 [2025-04-04 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830738', 'tblTempUsageDetail_20' ) start [2025-04-04 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830738', 'tblTempUsageDetail_20' ) end [2025-04-04 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830738', 'tblTempVendorCDR_20' ) start [2025-04-04 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830738', 'tblTempVendorCDR_20' ) end [2025-04-04 05:35:19] Production.INFO: ProcessCDR(1,14830738,1,1,2) [2025-04-04 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830738', 'tblTempUsageDetail_20' ) start [2025-04-04 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830738', 'tblTempUsageDetail_20' ) end [2025-04-04 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:35:22] Production.INFO: ==9945== Releasing lock... [2025-04-04 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:35:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:36:06 [end_date_ymd] => 2025-04-04 05:36:06 [RateCDR] => 1 ) [2025-04-04 05: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-04 02:36:06' and `end` < '2025-04-04 05: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-04 05:36:18] Production.INFO: count ==764 [2025-04-04 05:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:36:06 - End Time 2025-04-04 05:36:06 [2025-04-04 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830743', 'tblTempUsageDetail_20' ) start [2025-04-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830743', 'tblTempUsageDetail_20' ) end [2025-04-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830743', 'tblTempVendorCDR_20' ) start [2025-04-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830743', 'tblTempVendorCDR_20' ) end [2025-04-04 05:36:19] Production.INFO: ProcessCDR(1,14830743,1,1,2) [2025-04-04 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830743', 'tblTempUsageDetail_20' ) start [2025-04-04 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830743', 'tblTempUsageDetail_20' ) end [2025-04-04 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:36:22] Production.INFO: ==10028== Releasing lock... [2025-04-04 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:36:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:37:06 [end_date_ymd] => 2025-04-04 05:37:06 [RateCDR] => 1 ) [2025-04-04 05:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:37:06' and `end` < '2025-04-04 05:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:37:19] Production.INFO: count ==764 [2025-04-04 05:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:37:06 - End Time 2025-04-04 05:37:06 [2025-04-04 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830748', 'tblTempUsageDetail_20' ) start [2025-04-04 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830748', 'tblTempUsageDetail_20' ) end [2025-04-04 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830748', 'tblTempVendorCDR_20' ) start [2025-04-04 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830748', 'tblTempVendorCDR_20' ) end [2025-04-04 05:37:19] Production.INFO: ProcessCDR(1,14830748,1,1,2) [2025-04-04 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830748', 'tblTempUsageDetail_20' ) start [2025-04-04 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830748', 'tblTempUsageDetail_20' ) end [2025-04-04 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:37:22] Production.INFO: ==10108== Releasing lock... [2025-04-04 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:37:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:38:05 [end_date_ymd] => 2025-04-04 05:38:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:38:05' and `end` < '2025-04-04 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-04 05:38:18] Production.INFO: count ==764 [2025-04-04 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:38:05 - End Time 2025-04-04 05:38:05 [2025-04-04 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830753', 'tblTempUsageDetail_20' ) start [2025-04-04 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830753', 'tblTempUsageDetail_20' ) end [2025-04-04 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830753', 'tblTempVendorCDR_20' ) start [2025-04-04 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830753', 'tblTempVendorCDR_20' ) end [2025-04-04 05:38:19] Production.INFO: ProcessCDR(1,14830753,1,1,2) [2025-04-04 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830753', 'tblTempUsageDetail_20' ) start [2025-04-04 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830753', 'tblTempUsageDetail_20' ) end [2025-04-04 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:38:22] Production.INFO: ==10188== Releasing lock... [2025-04-04 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:38:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:39:06 [end_date_ymd] => 2025-04-04 05:39:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:39:06' and `end` < '2025-04-04 05: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-04 05:39:19] Production.INFO: count ==764 [2025-04-04 05:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:39:06 - End Time 2025-04-04 05:39:06 [2025-04-04 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830758', 'tblTempUsageDetail_20' ) start [2025-04-04 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830758', 'tblTempUsageDetail_20' ) end [2025-04-04 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830758', 'tblTempVendorCDR_20' ) start [2025-04-04 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830758', 'tblTempVendorCDR_20' ) end [2025-04-04 05:39:19] Production.INFO: ProcessCDR(1,14830758,1,1,2) [2025-04-04 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830758', 'tblTempUsageDetail_20' ) start [2025-04-04 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830758', 'tblTempUsageDetail_20' ) end [2025-04-04 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:39:22] Production.INFO: ==10275== Releasing lock... [2025-04-04 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:39:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:40:06 [end_date_ymd] => 2025-04-04 05:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:40:06' and `end` < '2025-04-04 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-04 05:40:19] Production.INFO: count ==754 [2025-04-04 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:40:06 - End Time 2025-04-04 05:40:06 [2025-04-04 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830764', 'tblTempUsageDetail_20' ) start [2025-04-04 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830764', 'tblTempUsageDetail_20' ) end [2025-04-04 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830764', 'tblTempVendorCDR_20' ) start [2025-04-04 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830764', 'tblTempVendorCDR_20' ) end [2025-04-04 05:40:19] Production.INFO: ProcessCDR(1,14830764,1,1,2) [2025-04-04 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830764', 'tblTempUsageDetail_20' ) start [2025-04-04 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830764', 'tblTempUsageDetail_20' ) end [2025-04-04 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:40:23] Production.INFO: ==10359== Releasing lock... [2025-04-04 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:41:06 [end_date_ymd] => 2025-04-04 05:41:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:41:06' and `end` < '2025-04-04 05: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-04 05:41:19] Production.INFO: count ==752 [2025-04-04 05:41:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:41:06 - End Time 2025-04-04 05:41:06 [2025-04-04 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830769', 'tblTempUsageDetail_20' ) start [2025-04-04 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830769', 'tblTempUsageDetail_20' ) end [2025-04-04 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830769', 'tblTempVendorCDR_20' ) start [2025-04-04 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830769', 'tblTempVendorCDR_20' ) end [2025-04-04 05:41:19] Production.INFO: ProcessCDR(1,14830769,1,1,2) [2025-04-04 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830769', 'tblTempUsageDetail_20' ) start [2025-04-04 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830769', 'tblTempUsageDetail_20' ) end [2025-04-04 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:41:22] Production.INFO: ==10482== Releasing lock... [2025-04-04 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:41:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:42:05 [end_date_ymd] => 2025-04-04 05:42:05 [RateCDR] => 1 ) [2025-04-04 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:42:05' and `end` < '2025-04-04 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:42:18] Production.INFO: count ==742 [2025-04-04 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:42:05 - End Time 2025-04-04 05:42:05 [2025-04-04 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830772', 'tblTempUsageDetail_20' ) start [2025-04-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830772', 'tblTempUsageDetail_20' ) end [2025-04-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830772', 'tblTempVendorCDR_20' ) start [2025-04-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830772', 'tblTempVendorCDR_20' ) end [2025-04-04 05:42:18] Production.INFO: ProcessCDR(1,14830772,1,1,2) [2025-04-04 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830772', 'tblTempUsageDetail_20' ) start [2025-04-04 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830772', 'tblTempUsageDetail_20' ) end [2025-04-04 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:42:22] Production.INFO: ==10558== Releasing lock... [2025-04-04 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:42:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:43:06 [end_date_ymd] => 2025-04-04 05:43:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:43:06' and `end` < '2025-04-04 05: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-04 05:43:18] Production.INFO: count ==739 [2025-04-04 05:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:43:06 - End Time 2025-04-04 05:43:06 [2025-04-04 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830779', 'tblTempUsageDetail_20' ) start [2025-04-04 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830779', 'tblTempUsageDetail_20' ) end [2025-04-04 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830779', 'tblTempVendorCDR_20' ) start [2025-04-04 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830779', 'tblTempVendorCDR_20' ) end [2025-04-04 05:43:19] Production.INFO: ProcessCDR(1,14830779,1,1,2) [2025-04-04 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830779', 'tblTempUsageDetail_20' ) start [2025-04-04 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830779', 'tblTempUsageDetail_20' ) end [2025-04-04 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:43:22] Production.INFO: ==10641== Releasing lock... [2025-04-04 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:43:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:44:05 [end_date_ymd] => 2025-04-04 05:44:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:44:05' and `end` < '2025-04-04 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-04 05:44:17] Production.INFO: count ==739 [2025-04-04 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:44:05 - End Time 2025-04-04 05:44:05 [2025-04-04 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830784', 'tblTempUsageDetail_20' ) start [2025-04-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830784', 'tblTempUsageDetail_20' ) end [2025-04-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830784', 'tblTempVendorCDR_20' ) start [2025-04-04 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830784', 'tblTempVendorCDR_20' ) end [2025-04-04 05:44:18] Production.INFO: ProcessCDR(1,14830784,1,1,2) [2025-04-04 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830784', 'tblTempUsageDetail_20' ) start [2025-04-04 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830784', 'tblTempUsageDetail_20' ) end [2025-04-04 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:44:22] Production.INFO: ==10719== Releasing lock... [2025-04-04 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:45:05 [end_date_ymd] => 2025-04-04 05:45:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:45:05' and `end` < '2025-04-04 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-04 05:45:18] Production.INFO: count ==736 [2025-04-04 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:45:05 - End Time 2025-04-04 05:45:05 [2025-04-04 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830789', 'tblTempUsageDetail_20' ) start [2025-04-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830789', 'tblTempUsageDetail_20' ) end [2025-04-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830789', 'tblTempVendorCDR_20' ) start [2025-04-04 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830789', 'tblTempVendorCDR_20' ) end [2025-04-04 05:45:18] Production.INFO: ProcessCDR(1,14830789,1,1,2) [2025-04-04 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830789', 'tblTempUsageDetail_20' ) start [2025-04-04 05:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830789', 'tblTempUsageDetail_20' ) end [2025-04-04 05:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:45:24] Production.INFO: ==10799== Releasing lock... [2025-04-04 05:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:45:24] Production.INFO: 34 MB #Memory Used# [2025-04-04 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:46:05 [end_date_ymd] => 2025-04-04 05:46:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:46:05' and `end` < '2025-04-04 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-04 05:46:18] Production.INFO: count ==728 [2025-04-04 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:46:05 - End Time 2025-04-04 05:46:05 [2025-04-04 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830794', 'tblTempUsageDetail_20' ) start [2025-04-04 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830794', 'tblTempUsageDetail_20' ) end [2025-04-04 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830794', 'tblTempVendorCDR_20' ) start [2025-04-04 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830794', 'tblTempVendorCDR_20' ) end [2025-04-04 05:46:18] Production.INFO: ProcessCDR(1,14830794,1,1,2) [2025-04-04 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830794', 'tblTempUsageDetail_20' ) start [2025-04-04 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830794', 'tblTempUsageDetail_20' ) end [2025-04-04 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:46:22] Production.INFO: ==10879== Releasing lock... [2025-04-04 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:46:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:47:06 [end_date_ymd] => 2025-04-04 05:47:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:47:06' and `end` < '2025-04-04 05: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-04 05:47:18] Production.INFO: count ==722 [2025-04-04 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:47:06 - End Time 2025-04-04 05:47:06 [2025-04-04 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830799', 'tblTempUsageDetail_20' ) start [2025-04-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830799', 'tblTempUsageDetail_20' ) end [2025-04-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830799', 'tblTempVendorCDR_20' ) start [2025-04-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830799', 'tblTempVendorCDR_20' ) end [2025-04-04 05:47:18] Production.INFO: ProcessCDR(1,14830799,1,1,2) [2025-04-04 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830799', 'tblTempUsageDetail_20' ) start [2025-04-04 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830799', 'tblTempUsageDetail_20' ) end [2025-04-04 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:47:22] Production.INFO: ==10962== Releasing lock... [2025-04-04 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:47:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:48:05 [end_date_ymd] => 2025-04-04 05:48:05 [RateCDR] => 1 ) [2025-04-04 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 02:48:05' and `end` < '2025-04-04 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 05:48:17] Production.INFO: count ==714 [2025-04-04 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:48:05 - End Time 2025-04-04 05:48:05 [2025-04-04 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830804', 'tblTempUsageDetail_20' ) start [2025-04-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830804', 'tblTempUsageDetail_20' ) end [2025-04-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830804', 'tblTempVendorCDR_20' ) start [2025-04-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830804', 'tblTempVendorCDR_20' ) end [2025-04-04 05:48:18] Production.INFO: ProcessCDR(1,14830804,1,1,2) [2025-04-04 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830804', 'tblTempUsageDetail_20' ) start [2025-04-04 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830804', 'tblTempUsageDetail_20' ) end [2025-04-04 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:48:21] Production.INFO: ==11046== Releasing lock... [2025-04-04 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:49:05 [end_date_ymd] => 2025-04-04 05:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:49:05' and `end` < '2025-04-04 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-04 05:49:18] Production.INFO: count ==704 [2025-04-04 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:49:05 - End Time 2025-04-04 05:49:05 [2025-04-04 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830809', 'tblTempUsageDetail_20' ) start [2025-04-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830809', 'tblTempUsageDetail_20' ) end [2025-04-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830809', 'tblTempVendorCDR_20' ) start [2025-04-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830809', 'tblTempVendorCDR_20' ) end [2025-04-04 05:49:18] Production.INFO: ProcessCDR(1,14830809,1,1,2) [2025-04-04 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830809', 'tblTempUsageDetail_20' ) start [2025-04-04 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830809', 'tblTempUsageDetail_20' ) end [2025-04-04 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:49:22] Production.INFO: ==11125== Releasing lock... [2025-04-04 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:49:22] Production.INFO: 34 MB #Memory Used# [2025-04-04 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:50:06 [end_date_ymd] => 2025-04-04 05:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:50:06' and `end` < '2025-04-04 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-04 05:50:19] Production.INFO: count ==690 [2025-04-04 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:50:06 - End Time 2025-04-04 05:50:06 [2025-04-04 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830814', 'tblTempUsageDetail_20' ) start [2025-04-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830814', 'tblTempUsageDetail_20' ) end [2025-04-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830814', 'tblTempVendorCDR_20' ) start [2025-04-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830814', 'tblTempVendorCDR_20' ) end [2025-04-04 05:50:19] Production.INFO: ProcessCDR(1,14830814,1,1,2) [2025-04-04 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830814', 'tblTempUsageDetail_20' ) start [2025-04-04 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830814', 'tblTempUsageDetail_20' ) end [2025-04-04 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:50:23] Production.INFO: ==11211== Releasing lock... [2025-04-04 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:50:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:51:05 [end_date_ymd] => 2025-04-04 05:51:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:51:05' and `end` < '2025-04-04 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-04 05:51:18] Production.INFO: count ==661 [2025-04-04 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:51:05 - End Time 2025-04-04 05:51:05 [2025-04-04 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830820', 'tblTempUsageDetail_20' ) start [2025-04-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830820', 'tblTempUsageDetail_20' ) end [2025-04-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830820', 'tblTempVendorCDR_20' ) start [2025-04-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830820', 'tblTempVendorCDR_20' ) end [2025-04-04 05:51:18] Production.INFO: ProcessCDR(1,14830820,1,1,2) [2025-04-04 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830820', 'tblTempUsageDetail_20' ) start [2025-04-04 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830820', 'tblTempUsageDetail_20' ) end [2025-04-04 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:51:21] Production.INFO: ==11294== Releasing lock... [2025-04-04 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:52:06 [end_date_ymd] => 2025-04-04 05:52:06 [RateCDR] => 1 ) [2025-04-04 05: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-04 02:52:06' and `end` < '2025-04-04 05: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-04 05:52:18] Production.INFO: count ==650 [2025-04-04 05:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:52:06 - End Time 2025-04-04 05:52:06 [2025-04-04 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830825', 'tblTempUsageDetail_20' ) start [2025-04-04 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830825', 'tblTempUsageDetail_20' ) end [2025-04-04 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830825', 'tblTempVendorCDR_20' ) start [2025-04-04 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830825', 'tblTempVendorCDR_20' ) end [2025-04-04 05:52:19] Production.INFO: ProcessCDR(1,14830825,1,1,2) [2025-04-04 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830825', 'tblTempUsageDetail_20' ) start [2025-04-04 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830825', 'tblTempUsageDetail_20' ) end [2025-04-04 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:52:22] Production.INFO: ==11375== Releasing lock... [2025-04-04 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:53:05 [end_date_ymd] => 2025-04-04 05:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:53:05' and `end` < '2025-04-04 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-04 05:53:17] Production.INFO: count ==650 [2025-04-04 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:53:05 - End Time 2025-04-04 05:53:05 [2025-04-04 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830830', 'tblTempUsageDetail_20' ) start [2025-04-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830830', 'tblTempUsageDetail_20' ) end [2025-04-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830830', 'tblTempVendorCDR_20' ) start [2025-04-04 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830830', 'tblTempVendorCDR_20' ) end [2025-04-04 05:53:18] Production.INFO: ProcessCDR(1,14830830,1,1,2) [2025-04-04 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830830', 'tblTempUsageDetail_20' ) start [2025-04-04 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830830', 'tblTempUsageDetail_20' ) end [2025-04-04 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:53:21] Production.INFO: ==11460== Releasing lock... [2025-04-04 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:54:05 [end_date_ymd] => 2025-04-04 05:54:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:54:05' and `end` < '2025-04-04 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-04 05:54:18] Production.INFO: count ==635 [2025-04-04 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:54:05 - End Time 2025-04-04 05:54:05 [2025-04-04 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830835', 'tblTempUsageDetail_20' ) start [2025-04-04 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830835', 'tblTempUsageDetail_20' ) end [2025-04-04 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830835', 'tblTempVendorCDR_20' ) start [2025-04-04 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830835', 'tblTempVendorCDR_20' ) end [2025-04-04 05:54:19] Production.INFO: ProcessCDR(1,14830835,1,1,2) [2025-04-04 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830835', 'tblTempUsageDetail_20' ) start [2025-04-04 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830835', 'tblTempUsageDetail_20' ) end [2025-04-04 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:54:22] Production.INFO: ==11544== Releasing lock... [2025-04-04 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:55:05 [end_date_ymd] => 2025-04-04 05:55:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:55:05' and `end` < '2025-04-04 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-04 05:55:18] Production.INFO: count ==635 [2025-04-04 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:55:05 - End Time 2025-04-04 05:55:05 [2025-04-04 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830840', 'tblTempUsageDetail_20' ) start [2025-04-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830840', 'tblTempUsageDetail_20' ) end [2025-04-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830840', 'tblTempVendorCDR_20' ) start [2025-04-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830840', 'tblTempVendorCDR_20' ) end [2025-04-04 05:55:18] Production.INFO: ProcessCDR(1,14830840,1,1,2) [2025-04-04 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830840', 'tblTempUsageDetail_20' ) start [2025-04-04 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830840', 'tblTempUsageDetail_20' ) end [2025-04-04 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:55:22] Production.INFO: ==11621== Releasing lock... [2025-04-04 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:56:06 [end_date_ymd] => 2025-04-04 05:56:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:56:06' and `end` < '2025-04-04 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-04 05:56:19] Production.INFO: count ==607 [2025-04-04 05:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 02:56:06 - End Time 2025-04-04 05:56:06 [2025-04-04 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830845', 'tblTempUsageDetail_20' ) start [2025-04-04 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830845', 'tblTempUsageDetail_20' ) end [2025-04-04 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830845', 'tblTempVendorCDR_20' ) start [2025-04-04 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830845', 'tblTempVendorCDR_20' ) end [2025-04-04 05:56:19] Production.INFO: ProcessCDR(1,14830845,1,1,2) [2025-04-04 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830845', 'tblTempUsageDetail_20' ) start [2025-04-04 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830845', 'tblTempUsageDetail_20' ) end [2025-04-04 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:56:22] Production.INFO: ==11740== Releasing lock... [2025-04-04 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:56:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:57:06 [end_date_ymd] => 2025-04-04 05:57:06 [RateCDR] => 1 ) [2025-04-04 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-04 02:57:06' and `end` < '2025-04-04 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-04 05:57:18] Production.INFO: count ==547 [2025-04-04 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:57:06 - End Time 2025-04-04 05:57:06 [2025-04-04 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830850', 'tblTempUsageDetail_20' ) start [2025-04-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830850', 'tblTempUsageDetail_20' ) end [2025-04-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830850', 'tblTempVendorCDR_20' ) start [2025-04-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830850', 'tblTempVendorCDR_20' ) end [2025-04-04 05:57:18] Production.INFO: ProcessCDR(1,14830850,1,1,2) [2025-04-04 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830850', 'tblTempUsageDetail_20' ) start [2025-04-04 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830850', 'tblTempUsageDetail_20' ) end [2025-04-04 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:57:22] Production.INFO: ==11817== Releasing lock... [2025-04-04 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:58:06 [end_date_ymd] => 2025-04-04 05:58:06 [RateCDR] => 1 ) [2025-04-04 05: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 02:58:06' and `end` < '2025-04-04 05: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-04 05:58:18] Production.INFO: count ==519 [2025-04-04 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:58:06 - End Time 2025-04-04 05:58:06 [2025-04-04 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830855', 'tblTempUsageDetail_20' ) start [2025-04-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830855', 'tblTempUsageDetail_20' ) end [2025-04-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830855', 'tblTempVendorCDR_20' ) start [2025-04-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830855', 'tblTempVendorCDR_20' ) end [2025-04-04 05:58:18] Production.INFO: ProcessCDR(1,14830855,1,1,2) [2025-04-04 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830855', 'tblTempUsageDetail_20' ) start [2025-04-04 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830855', 'tblTempUsageDetail_20' ) end [2025-04-04 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:58:22] Production.INFO: ==11898== Releasing lock... [2025-04-04 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 02:59:05 [end_date_ymd] => 2025-04-04 05:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 02:59:05' and `end` < '2025-04-04 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-04 05:59:18] Production.INFO: count ==519 [2025-04-04 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-04 02:59:05 - End Time 2025-04-04 05:59:05 [2025-04-04 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830860', 'tblTempUsageDetail_20' ) start [2025-04-04 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830860', 'tblTempUsageDetail_20' ) end [2025-04-04 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830860', 'tblTempVendorCDR_20' ) start [2025-04-04 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830860', 'tblTempVendorCDR_20' ) end [2025-04-04 05:59:18] Production.INFO: ProcessCDR(1,14830860,1,1,2) [2025-04-04 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830860', 'tblTempUsageDetail_20' ) start [2025-04-04 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830860', 'tblTempUsageDetail_20' ) end [2025-04-04 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 05:59:22] Production.INFO: ==11980== Releasing lock... [2025-04-04 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 05:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:00:06 [end_date_ymd] => 2025-04-04 06:00:06 [RateCDR] => 1 ) [2025-04-04 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-04 03:00:06' and `end` < '2025-04-04 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-04 06:00:19] Production.INFO: count ==515 [2025-04-04 06:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 03:00:06 - End Time 2025-04-04 06:00:06 [2025-04-04 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830866', 'tblTempUsageDetail_20' ) start [2025-04-04 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830866', 'tblTempUsageDetail_20' ) end [2025-04-04 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830866', 'tblTempVendorCDR_20' ) start [2025-04-04 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830866', 'tblTempVendorCDR_20' ) end [2025-04-04 06:00:20] Production.INFO: ProcessCDR(1,14830866,1,1,2) [2025-04-04 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830866', 'tblTempUsageDetail_20' ) start [2025-04-04 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830866', 'tblTempUsageDetail_20' ) end [2025-04-04 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:00:23] Production.INFO: ==12055== Releasing lock... [2025-04-04 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:00:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:01:04 [end_date_ymd] => 2025-04-04 06:01:04 [RateCDR] => 1 ) [2025-04-04 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:01:04' and `end` < '2025-04-04 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:01:17] Production.INFO: count ==521 [2025-04-04 06:01:17] Production.ERROR: pbx CDR StartTime 2025-04-04 03:01:04 - End Time 2025-04-04 06:01:04 [2025-04-04 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830871', 'tblTempUsageDetail_20' ) start [2025-04-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830871', 'tblTempUsageDetail_20' ) end [2025-04-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830871', 'tblTempVendorCDR_20' ) start [2025-04-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830871', 'tblTempVendorCDR_20' ) end [2025-04-04 06:01:17] Production.INFO: ProcessCDR(1,14830871,1,1,2) [2025-04-04 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830871', 'tblTempUsageDetail_20' ) start [2025-04-04 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830871', 'tblTempUsageDetail_20' ) end [2025-04-04 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:01:21] Production.INFO: ==12144== Releasing lock... [2025-04-04 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:02:06 [end_date_ymd] => 2025-04-04 06:02:06 [RateCDR] => 1 ) [2025-04-04 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-04 03:02:06' and `end` < '2025-04-04 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-04 06:02:18] Production.INFO: count ==491 [2025-04-04 06:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 03:02:06 - End Time 2025-04-04 06:02:06 [2025-04-04 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830876', 'tblTempUsageDetail_20' ) start [2025-04-04 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830876', 'tblTempUsageDetail_20' ) end [2025-04-04 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830876', 'tblTempVendorCDR_20' ) start [2025-04-04 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830876', 'tblTempVendorCDR_20' ) end [2025-04-04 06:02:19] Production.INFO: ProcessCDR(1,14830876,1,1,2) [2025-04-04 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830876', 'tblTempUsageDetail_20' ) start [2025-04-04 06:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830876', 'tblTempUsageDetail_20' ) end [2025-04-04 06:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:02:24] Production.INFO: ==12222== Releasing lock... [2025-04-04 06:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:02:24] Production.INFO: 32 MB #Memory Used# [2025-04-04 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:03:05 [end_date_ymd] => 2025-04-04 06:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:03:05' and `end` < '2025-04-04 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-04 06:03:18] Production.INFO: count ==431 [2025-04-04 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:03:05 - End Time 2025-04-04 06:03:05 [2025-04-04 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830881', 'tblTempUsageDetail_20' ) start [2025-04-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830881', 'tblTempUsageDetail_20' ) end [2025-04-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830881', 'tblTempVendorCDR_20' ) start [2025-04-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830881', 'tblTempVendorCDR_20' ) end [2025-04-04 06:03:18] Production.INFO: ProcessCDR(1,14830881,1,1,2) [2025-04-04 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830881', 'tblTempUsageDetail_20' ) start [2025-04-04 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830881', 'tblTempUsageDetail_20' ) end [2025-04-04 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:03:22] Production.INFO: ==12301== Releasing lock... [2025-04-04 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:03:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-04 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:04:05 [end_date_ymd] => 2025-04-04 06:04:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:04:05' and `end` < '2025-04-04 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-04 06:04:18] Production.INFO: count ==371 [2025-04-04 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:04:05 - End Time 2025-04-04 06:04:05 [2025-04-04 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830886', 'tblTempUsageDetail_20' ) start [2025-04-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830886', 'tblTempUsageDetail_20' ) end [2025-04-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830886', 'tblTempVendorCDR_20' ) start [2025-04-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830886', 'tblTempVendorCDR_20' ) end [2025-04-04 06:04:18] Production.INFO: ProcessCDR(1,14830886,1,1,2) [2025-04-04 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830886', 'tblTempUsageDetail_20' ) start [2025-04-04 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830886', 'tblTempUsageDetail_20' ) end [2025-04-04 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:04:22] Production.INFO: ==12375== Releasing lock... [2025-04-04 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:05:06 [end_date_ymd] => 2025-04-04 06:05:06 [RateCDR] => 1 ) [2025-04-04 06:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:05:06' and `end` < '2025-04-04 06:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:05:18] Production.INFO: count ==310 [2025-04-04 06:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 03:05:06 - End Time 2025-04-04 06:05:06 [2025-04-04 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830891', 'tblTempUsageDetail_20' ) start [2025-04-04 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830891', 'tblTempUsageDetail_20' ) end [2025-04-04 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830891', 'tblTempVendorCDR_20' ) start [2025-04-04 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830891', 'tblTempVendorCDR_20' ) end [2025-04-04 06:05:19] Production.INFO: ProcessCDR(1,14830891,1,1,2) [2025-04-04 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830891', 'tblTempUsageDetail_20' ) start [2025-04-04 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830891', 'tblTempUsageDetail_20' ) end [2025-04-04 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:05:22] Production.INFO: ==12451== Releasing lock... [2025-04-04 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:06:05 [end_date_ymd] => 2025-04-04 06:06:05 [RateCDR] => 1 ) [2025-04-04 06: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 03:06:05' and `end` < '2025-04-04 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-04 06:06:18] Production.INFO: count ==251 [2025-04-04 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:06:05 - End Time 2025-04-04 06:06:05 [2025-04-04 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830896', 'tblTempUsageDetail_20' ) start [2025-04-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830896', 'tblTempUsageDetail_20' ) end [2025-04-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830896', 'tblTempVendorCDR_20' ) start [2025-04-04 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830896', 'tblTempVendorCDR_20' ) end [2025-04-04 06:06:18] Production.INFO: ProcessCDR(1,14830896,1,1,2) [2025-04-04 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830896', 'tblTempUsageDetail_20' ) start [2025-04-04 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830896', 'tblTempUsageDetail_20' ) end [2025-04-04 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:06:22] Production.INFO: ==12524== Releasing lock... [2025-04-04 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:06:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:07:05 [end_date_ymd] => 2025-04-04 06:07:05 [RateCDR] => 1 ) [2025-04-04 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:07:05' and `end` < '2025-04-04 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:07:18] Production.INFO: count ==189 [2025-04-04 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:07:05 - End Time 2025-04-04 06:07:05 [2025-04-04 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830901', 'tblTempUsageDetail_20' ) start [2025-04-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830901', 'tblTempUsageDetail_20' ) end [2025-04-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830901', 'tblTempVendorCDR_20' ) start [2025-04-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830901', 'tblTempVendorCDR_20' ) end [2025-04-04 06:07:18] Production.INFO: ProcessCDR(1,14830901,1,1,2) [2025-04-04 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830901', 'tblTempUsageDetail_20' ) start [2025-04-04 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830901', 'tblTempUsageDetail_20' ) end [2025-04-04 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:07:21] Production.INFO: ==12597== Releasing lock... [2025-04-04 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:07:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:08:05 [end_date_ymd] => 2025-04-04 06:08:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:08:05' and `end` < '2025-04-04 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-04 06:08:18] Production.INFO: count ==186 [2025-04-04 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:08:05 - End Time 2025-04-04 06:08:05 [2025-04-04 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830906', 'tblTempUsageDetail_20' ) start [2025-04-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830906', 'tblTempUsageDetail_20' ) end [2025-04-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830906', 'tblTempVendorCDR_20' ) start [2025-04-04 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830906', 'tblTempVendorCDR_20' ) end [2025-04-04 06:08:18] Production.INFO: ProcessCDR(1,14830906,1,1,2) [2025-04-04 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830906', 'tblTempUsageDetail_20' ) start [2025-04-04 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830906', 'tblTempUsageDetail_20' ) end [2025-04-04 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:08:22] Production.INFO: ==12685== Releasing lock... [2025-04-04 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:08:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:09:05 [end_date_ymd] => 2025-04-04 06:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:09:05' and `end` < '2025-04-04 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-04 06:09:18] Production.INFO: count ==176 [2025-04-04 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:09:05 - End Time 2025-04-04 06:09:05 [2025-04-04 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830911', 'tblTempUsageDetail_20' ) start [2025-04-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830911', 'tblTempUsageDetail_20' ) end [2025-04-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830911', 'tblTempVendorCDR_20' ) start [2025-04-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830911', 'tblTempVendorCDR_20' ) end [2025-04-04 06:09:18] Production.INFO: ProcessCDR(1,14830911,1,1,2) [2025-04-04 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830911', 'tblTempUsageDetail_20' ) start [2025-04-04 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830911', 'tblTempUsageDetail_20' ) end [2025-04-04 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:09:21] Production.INFO: ==12776== Releasing lock... [2025-04-04 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:10:05 [end_date_ymd] => 2025-04-04 06:10:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:10:05' and `end` < '2025-04-04 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-04 06:10:18] Production.INFO: count ==177 [2025-04-04 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:10:05 - End Time 2025-04-04 06:10:05 [2025-04-04 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830916', 'tblTempUsageDetail_20' ) start [2025-04-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830916', 'tblTempUsageDetail_20' ) end [2025-04-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830916', 'tblTempVendorCDR_20' ) start [2025-04-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830916', 'tblTempVendorCDR_20' ) end [2025-04-04 06:10:18] Production.INFO: ProcessCDR(1,14830916,1,1,2) [2025-04-04 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830916', 'tblTempUsageDetail_20' ) start [2025-04-04 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830916', 'tblTempUsageDetail_20' ) end [2025-04-04 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:10:23] Production.INFO: ==12853== Releasing lock... [2025-04-04 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:11:05 [end_date_ymd] => 2025-04-04 06:11:05 [RateCDR] => 1 ) [2025-04-04 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:11:05' and `end` < '2025-04-04 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:11:18] Production.INFO: count ==187 [2025-04-04 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:11:05 - End Time 2025-04-04 06:11:05 [2025-04-04 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830922', 'tblTempUsageDetail_20' ) start [2025-04-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830922', 'tblTempUsageDetail_20' ) end [2025-04-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830922', 'tblTempVendorCDR_20' ) start [2025-04-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830922', 'tblTempVendorCDR_20' ) end [2025-04-04 06:11:18] Production.INFO: ProcessCDR(1,14830922,1,1,2) [2025-04-04 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830922', 'tblTempUsageDetail_20' ) start [2025-04-04 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830922', 'tblTempUsageDetail_20' ) end [2025-04-04 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:11:21] Production.INFO: ==12927== Releasing lock... [2025-04-04 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:11:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:12:05 [end_date_ymd] => 2025-04-04 06:12:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:12:05' and `end` < '2025-04-04 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-04 06:12:18] Production.INFO: count ==187 [2025-04-04 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:12:05 - End Time 2025-04-04 06:12:05 [2025-04-04 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830927', 'tblTempUsageDetail_20' ) start [2025-04-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830927', 'tblTempUsageDetail_20' ) end [2025-04-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830927', 'tblTempVendorCDR_20' ) start [2025-04-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830927', 'tblTempVendorCDR_20' ) end [2025-04-04 06:12:18] Production.INFO: ProcessCDR(1,14830927,1,1,2) [2025-04-04 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830927', 'tblTempUsageDetail_20' ) start [2025-04-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830927', 'tblTempUsageDetail_20' ) end [2025-04-04 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:12:21] Production.INFO: ==13039== Releasing lock... [2025-04-04 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:12:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:13:06 [end_date_ymd] => 2025-04-04 06:13:06 [RateCDR] => 1 ) [2025-04-04 06: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-04 03:13:06' and `end` < '2025-04-04 06: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-04 06:13:19] Production.INFO: count ==183 [2025-04-04 06:13:19] Production.ERROR: pbx CDR StartTime 2025-04-04 03:13:06 - End Time 2025-04-04 06:13:06 [2025-04-04 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830932', 'tblTempUsageDetail_20' ) start [2025-04-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830932', 'tblTempUsageDetail_20' ) end [2025-04-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830932', 'tblTempVendorCDR_20' ) start [2025-04-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830932', 'tblTempVendorCDR_20' ) end [2025-04-04 06:13:19] Production.INFO: ProcessCDR(1,14830932,1,1,2) [2025-04-04 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830932', 'tblTempUsageDetail_20' ) start [2025-04-04 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830932', 'tblTempUsageDetail_20' ) end [2025-04-04 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:13:22] Production.INFO: ==13110== Releasing lock... [2025-04-04 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:14:05 [end_date_ymd] => 2025-04-04 06:14:05 [RateCDR] => 1 ) [2025-04-04 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:14:05' and `end` < '2025-04-04 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:14:18] Production.INFO: count ==183 [2025-04-04 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:14:05 - End Time 2025-04-04 06:14:05 [2025-04-04 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830937', 'tblTempUsageDetail_20' ) start [2025-04-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830937', 'tblTempUsageDetail_20' ) end [2025-04-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830937', 'tblTempVendorCDR_20' ) start [2025-04-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830937', 'tblTempVendorCDR_20' ) end [2025-04-04 06:14:18] Production.INFO: ProcessCDR(1,14830937,1,1,2) [2025-04-04 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830937', 'tblTempUsageDetail_20' ) start [2025-04-04 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830937', 'tblTempUsageDetail_20' ) end [2025-04-04 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:14:21] Production.INFO: ==13182== Releasing lock... [2025-04-04 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:15:05 [end_date_ymd] => 2025-04-04 06:15:05 [RateCDR] => 1 ) [2025-04-04 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:15:05' and `end` < '2025-04-04 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:15:18] Production.INFO: count ==183 [2025-04-04 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:15:05 - End Time 2025-04-04 06:15:05 [2025-04-04 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830942', 'tblTempUsageDetail_20' ) start [2025-04-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830942', 'tblTempUsageDetail_20' ) end [2025-04-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830942', 'tblTempVendorCDR_20' ) start [2025-04-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830942', 'tblTempVendorCDR_20' ) end [2025-04-04 06:15:18] Production.INFO: ProcessCDR(1,14830942,1,1,2) [2025-04-04 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830942', 'tblTempUsageDetail_20' ) start [2025-04-04 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830942', 'tblTempUsageDetail_20' ) end [2025-04-04 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:15:22] Production.INFO: ==13255== Releasing lock... [2025-04-04 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:16:05 [end_date_ymd] => 2025-04-04 06:16:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:16:05' and `end` < '2025-04-04 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-04 06:16:18] Production.INFO: count ==183 [2025-04-04 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:16:05 - End Time 2025-04-04 06:16:05 [2025-04-04 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830947', 'tblTempUsageDetail_20' ) start [2025-04-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830947', 'tblTempUsageDetail_20' ) end [2025-04-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830947', 'tblTempVendorCDR_20' ) start [2025-04-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830947', 'tblTempVendorCDR_20' ) end [2025-04-04 06:16:18] Production.INFO: ProcessCDR(1,14830947,1,1,2) [2025-04-04 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830947', 'tblTempUsageDetail_20' ) start [2025-04-04 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830947', 'tblTempUsageDetail_20' ) end [2025-04-04 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:16:21] Production.INFO: ==13326== Releasing lock... [2025-04-04 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:17:05 [end_date_ymd] => 2025-04-04 06:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:17:05' and `end` < '2025-04-04 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-04 06:17:18] Production.INFO: count ==179 [2025-04-04 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:17:05 - End Time 2025-04-04 06:17:05 [2025-04-04 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830952', 'tblTempUsageDetail_20' ) start [2025-04-04 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830952', 'tblTempUsageDetail_20' ) end [2025-04-04 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830952', 'tblTempVendorCDR_20' ) start [2025-04-04 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830952', 'tblTempVendorCDR_20' ) end [2025-04-04 06:17:18] Production.INFO: ProcessCDR(1,14830952,1,1,2) [2025-04-04 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830952', 'tblTempUsageDetail_20' ) start [2025-04-04 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830952', 'tblTempUsageDetail_20' ) end [2025-04-04 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:17:22] Production.INFO: ==13398== Releasing lock... [2025-04-04 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:17:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:18:06 [end_date_ymd] => 2025-04-04 06:18:06 [RateCDR] => 1 ) [2025-04-04 06: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-04 03:18:06' and `end` < '2025-04-04 06: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-04 06:18:18] Production.INFO: count ==179 [2025-04-04 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:18:06 - End Time 2025-04-04 06:18:06 [2025-04-04 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830957', 'tblTempUsageDetail_20' ) start [2025-04-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830957', 'tblTempUsageDetail_20' ) end [2025-04-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830957', 'tblTempVendorCDR_20' ) start [2025-04-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830957', 'tblTempVendorCDR_20' ) end [2025-04-04 06:18:18] Production.INFO: ProcessCDR(1,14830957,1,1,2) [2025-04-04 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830957', 'tblTempUsageDetail_20' ) start [2025-04-04 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830957', 'tblTempUsageDetail_20' ) end [2025-04-04 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:18:22] Production.INFO: ==13467== Releasing lock... [2025-04-04 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:18:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:19:05 [end_date_ymd] => 2025-04-04 06:19:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:19:05' and `end` < '2025-04-04 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-04 06:19:18] Production.INFO: count ==179 [2025-04-04 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:19:05 - End Time 2025-04-04 06:19:05 [2025-04-04 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830962', 'tblTempUsageDetail_20' ) start [2025-04-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830962', 'tblTempUsageDetail_20' ) end [2025-04-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830962', 'tblTempVendorCDR_20' ) start [2025-04-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830962', 'tblTempVendorCDR_20' ) end [2025-04-04 06:19:18] Production.INFO: ProcessCDR(1,14830962,1,1,2) [2025-04-04 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830962', 'tblTempUsageDetail_20' ) start [2025-04-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830962', 'tblTempUsageDetail_20' ) end [2025-04-04 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:19:21] Production.INFO: ==13539== Releasing lock... [2025-04-04 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:19:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:20:06 [end_date_ymd] => 2025-04-04 06:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 03:20:06' and `end` < '2025-04-04 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-04 06:20:19] Production.INFO: count ==179 [2025-04-04 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 03:20:06 - End Time 2025-04-04 06:20:06 [2025-04-04 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830968', 'tblTempUsageDetail_20' ) start [2025-04-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830968', 'tblTempUsageDetail_20' ) end [2025-04-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830968', 'tblTempVendorCDR_20' ) start [2025-04-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830968', 'tblTempVendorCDR_20' ) end [2025-04-04 06:20:19] Production.INFO: ProcessCDR(1,14830968,1,1,2) [2025-04-04 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830968', 'tblTempUsageDetail_20' ) start [2025-04-04 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830968', 'tblTempUsageDetail_20' ) end [2025-04-04 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:20:22] Production.INFO: ==13611== Releasing lock... [2025-04-04 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:20:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:21:05 [end_date_ymd] => 2025-04-04 06:21:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:21:05' and `end` < '2025-04-04 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-04 06:21:18] Production.INFO: count ==172 [2025-04-04 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:21:05 - End Time 2025-04-04 06:21:05 [2025-04-04 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830973', 'tblTempUsageDetail_20' ) start [2025-04-04 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830973', 'tblTempUsageDetail_20' ) end [2025-04-04 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830973', 'tblTempVendorCDR_20' ) start [2025-04-04 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830973', 'tblTempVendorCDR_20' ) end [2025-04-04 06:21:18] Production.INFO: ProcessCDR(1,14830973,1,1,2) [2025-04-04 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830973', 'tblTempUsageDetail_20' ) start [2025-04-04 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830973', 'tblTempUsageDetail_20' ) end [2025-04-04 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:21:21] Production.INFO: ==13683== Releasing lock... [2025-04-04 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:21:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:22:06 [end_date_ymd] => 2025-04-04 06:22:06 [RateCDR] => 1 ) [2025-04-04 06: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 03:22:06' and `end` < '2025-04-04 06: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-04 06:22:18] Production.INFO: count ==166 [2025-04-04 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:22:06 - End Time 2025-04-04 06:22:06 [2025-04-04 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830978', 'tblTempUsageDetail_20' ) start [2025-04-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830978', 'tblTempUsageDetail_20' ) end [2025-04-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830978', 'tblTempVendorCDR_20' ) start [2025-04-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830978', 'tblTempVendorCDR_20' ) end [2025-04-04 06:22:18] Production.INFO: ProcessCDR(1,14830978,1,1,2) [2025-04-04 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830978', 'tblTempUsageDetail_20' ) start [2025-04-04 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830978', 'tblTempUsageDetail_20' ) end [2025-04-04 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:22:22] Production.INFO: ==13758== Releasing lock... [2025-04-04 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:23:05 [end_date_ymd] => 2025-04-04 06:23:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:23:05' and `end` < '2025-04-04 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-04 06:23:18] Production.INFO: count ==159 [2025-04-04 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:23:05 - End Time 2025-04-04 06:23:05 [2025-04-04 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830983', 'tblTempUsageDetail_20' ) start [2025-04-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830983', 'tblTempUsageDetail_20' ) end [2025-04-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830983', 'tblTempVendorCDR_20' ) start [2025-04-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830983', 'tblTempVendorCDR_20' ) end [2025-04-04 06:23:18] Production.INFO: ProcessCDR(1,14830983,1,1,2) [2025-04-04 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830983', 'tblTempUsageDetail_20' ) start [2025-04-04 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830983', 'tblTempUsageDetail_20' ) end [2025-04-04 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:23:22] Production.INFO: ==13832== Releasing lock... [2025-04-04 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:24:06 [end_date_ymd] => 2025-04-04 06:24:06 [RateCDR] => 1 ) [2025-04-04 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-04 03:24:06' and `end` < '2025-04-04 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-04 06:24:18] Production.INFO: count ==158 [2025-04-04 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:24:06 - End Time 2025-04-04 06:24:06 [2025-04-04 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830988', 'tblTempUsageDetail_20' ) start [2025-04-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830988', 'tblTempUsageDetail_20' ) end [2025-04-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830988', 'tblTempVendorCDR_20' ) start [2025-04-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830988', 'tblTempVendorCDR_20' ) end [2025-04-04 06:24:18] Production.INFO: ProcessCDR(1,14830988,1,1,2) [2025-04-04 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830988', 'tblTempUsageDetail_20' ) start [2025-04-04 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830988', 'tblTempUsageDetail_20' ) end [2025-04-04 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:24:22] Production.INFO: ==13902== Releasing lock... [2025-04-04 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:25:05 [end_date_ymd] => 2025-04-04 06:25:05 [RateCDR] => 1 ) [2025-04-04 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:25:05' and `end` < '2025-04-04 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:25:18] Production.INFO: count ==158 [2025-04-04 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:25:05 - End Time 2025-04-04 06:25:05 [2025-04-04 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830993', 'tblTempUsageDetail_20' ) start [2025-04-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830993', 'tblTempUsageDetail_20' ) end [2025-04-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830993', 'tblTempVendorCDR_20' ) start [2025-04-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830993', 'tblTempVendorCDR_20' ) end [2025-04-04 06:25:18] Production.INFO: ProcessCDR(1,14830993,1,1,2) [2025-04-04 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830993', 'tblTempUsageDetail_20' ) start [2025-04-04 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830993', 'tblTempUsageDetail_20' ) end [2025-04-04 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:25:21] Production.INFO: ==13971== Releasing lock... [2025-04-04 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:26:05 [end_date_ymd] => 2025-04-04 06:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:26:05' and `end` < '2025-04-04 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-04 06:26:18] Production.INFO: count ==158 [2025-04-04 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:26:05 - End Time 2025-04-04 06:26:05 [2025-04-04 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830998', 'tblTempUsageDetail_20' ) start [2025-04-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14830998', 'tblTempUsageDetail_20' ) end [2025-04-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830998', 'tblTempVendorCDR_20' ) start [2025-04-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14830998', 'tblTempVendorCDR_20' ) end [2025-04-04 06:26:18] Production.INFO: ProcessCDR(1,14830998,1,1,2) [2025-04-04 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14830998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14830998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14830998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14830998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830998', 'tblTempUsageDetail_20' ) start [2025-04-04 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14830998', 'tblTempUsageDetail_20' ) end [2025-04-04 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:26:22] Production.INFO: ==14044== Releasing lock... [2025-04-04 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:26:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:27:04 [end_date_ymd] => 2025-04-04 06:27:04 [RateCDR] => 1 ) [2025-04-04 06: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-04 03:27:04' and `end` < '2025-04-04 06: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-04 06:27:17] Production.INFO: count ==159 [2025-04-04 06:27:17] Production.ERROR: pbx CDR StartTime 2025-04-04 03:27:04 - End Time 2025-04-04 06:27:04 [2025-04-04 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831003', 'tblTempUsageDetail_20' ) start [2025-04-04 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831003', 'tblTempUsageDetail_20' ) end [2025-04-04 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831003', 'tblTempVendorCDR_20' ) start [2025-04-04 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831003', 'tblTempVendorCDR_20' ) end [2025-04-04 06:27:17] Production.INFO: ProcessCDR(1,14831003,1,1,2) [2025-04-04 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831003', 'tblTempUsageDetail_20' ) start [2025-04-04 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831003', 'tblTempUsageDetail_20' ) end [2025-04-04 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:27:22] Production.INFO: ==14157== Releasing lock... [2025-04-04 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:27:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:28:05 [end_date_ymd] => 2025-04-04 06:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:28:05' and `end` < '2025-04-04 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-04 06:28:18] Production.INFO: count ==159 [2025-04-04 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:28:05 - End Time 2025-04-04 06:28:05 [2025-04-04 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831008', 'tblTempUsageDetail_20' ) start [2025-04-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831008', 'tblTempUsageDetail_20' ) end [2025-04-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831008', 'tblTempVendorCDR_20' ) start [2025-04-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831008', 'tblTempVendorCDR_20' ) end [2025-04-04 06:28:18] Production.INFO: ProcessCDR(1,14831008,1,1,2) [2025-04-04 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831008', 'tblTempUsageDetail_20' ) start [2025-04-04 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831008', 'tblTempUsageDetail_20' ) end [2025-04-04 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:28:22] Production.INFO: ==14227== Releasing lock... [2025-04-04 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:28:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:29:05 [end_date_ymd] => 2025-04-04 06:29:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:29:05' and `end` < '2025-04-04 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-04 06:29:18] Production.INFO: count ==159 [2025-04-04 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:29:05 - End Time 2025-04-04 06:29:05 [2025-04-04 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831013', 'tblTempUsageDetail_20' ) start [2025-04-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831013', 'tblTempUsageDetail_20' ) end [2025-04-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831013', 'tblTempVendorCDR_20' ) start [2025-04-04 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831013', 'tblTempVendorCDR_20' ) end [2025-04-04 06:29:18] Production.INFO: ProcessCDR(1,14831013,1,1,2) [2025-04-04 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831013', 'tblTempUsageDetail_20' ) start [2025-04-04 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831013', 'tblTempUsageDetail_20' ) end [2025-04-04 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:29:21] Production.INFO: ==14296== Releasing lock... [2025-04-04 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:30:07 [end_date_ymd] => 2025-04-04 06:30:07 [RateCDR] => 1 ) [2025-04-04 06:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:30:07' and `end` < '2025-04-04 06:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:30:20] Production.INFO: count ==171 [2025-04-04 06:30:20] Production.ERROR: pbx CDR StartTime 2025-04-04 03:30:07 - End Time 2025-04-04 06:30:07 [2025-04-04 06:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831019', 'tblTempUsageDetail_20' ) start [2025-04-04 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831019', 'tblTempUsageDetail_20' ) end [2025-04-04 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831019', 'tblTempVendorCDR_20' ) start [2025-04-04 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831019', 'tblTempVendorCDR_20' ) end [2025-04-04 06:30:20] Production.INFO: ProcessCDR(1,14831019,1,1,2) [2025-04-04 06:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831019', 'tblTempUsageDetail_20' ) start [2025-04-04 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831019', 'tblTempUsageDetail_20' ) end [2025-04-04 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:30:23] Production.INFO: ==14370== Releasing lock... [2025-04-04 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:31:05 [end_date_ymd] => 2025-04-04 06:31:05 [RateCDR] => 1 ) [2025-04-04 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:31:05' and `end` < '2025-04-04 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:31:18] Production.INFO: count ==174 [2025-04-04 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:31:05 - End Time 2025-04-04 06:31:05 [2025-04-04 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831024', 'tblTempUsageDetail_20' ) start [2025-04-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831024', 'tblTempUsageDetail_20' ) end [2025-04-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831024', 'tblTempVendorCDR_20' ) start [2025-04-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831024', 'tblTempVendorCDR_20' ) end [2025-04-04 06:31:18] Production.INFO: ProcessCDR(1,14831024,1,1,2) [2025-04-04 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831024', 'tblTempUsageDetail_20' ) start [2025-04-04 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831024', 'tblTempUsageDetail_20' ) end [2025-04-04 06:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:31:23] Production.INFO: ==14441== Releasing lock... [2025-04-04 06:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:31:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:32:06 [end_date_ymd] => 2025-04-04 06:32:06 [RateCDR] => 1 ) [2025-04-04 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-04 03:32:06' and `end` < '2025-04-04 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-04 06:32:18] Production.INFO: count ==174 [2025-04-04 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:32:06 - End Time 2025-04-04 06:32:06 [2025-04-04 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831029', 'tblTempUsageDetail_20' ) start [2025-04-04 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831029', 'tblTempUsageDetail_20' ) end [2025-04-04 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831029', 'tblTempVendorCDR_20' ) start [2025-04-04 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831029', 'tblTempVendorCDR_20' ) end [2025-04-04 06:32:19] Production.INFO: ProcessCDR(1,14831029,1,1,2) [2025-04-04 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831029', 'tblTempUsageDetail_20' ) start [2025-04-04 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831029', 'tblTempUsageDetail_20' ) end [2025-04-04 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:32:22] Production.INFO: ==14512== Releasing lock... [2025-04-04 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:33:05 [end_date_ymd] => 2025-04-04 06:33:05 [RateCDR] => 1 ) [2025-04-04 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:33:05' and `end` < '2025-04-04 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:33:18] Production.INFO: count ==174 [2025-04-04 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:33:05 - End Time 2025-04-04 06:33:05 [2025-04-04 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831034', 'tblTempUsageDetail_20' ) start [2025-04-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831034', 'tblTempUsageDetail_20' ) end [2025-04-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831034', 'tblTempVendorCDR_20' ) start [2025-04-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831034', 'tblTempVendorCDR_20' ) end [2025-04-04 06:33:18] Production.INFO: ProcessCDR(1,14831034,1,1,2) [2025-04-04 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831034', 'tblTempUsageDetail_20' ) start [2025-04-04 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831034', 'tblTempUsageDetail_20' ) end [2025-04-04 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:33:21] Production.INFO: ==14581== Releasing lock... [2025-04-04 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:34:05 [end_date_ymd] => 2025-04-04 06:34:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:34:05' and `end` < '2025-04-04 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-04 06:34:18] Production.INFO: count ==174 [2025-04-04 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:34:05 - End Time 2025-04-04 06:34:05 [2025-04-04 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831039', 'tblTempUsageDetail_20' ) start [2025-04-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831039', 'tblTempUsageDetail_20' ) end [2025-04-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831039', 'tblTempVendorCDR_20' ) start [2025-04-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831039', 'tblTempVendorCDR_20' ) end [2025-04-04 06:34:18] Production.INFO: ProcessCDR(1,14831039,1,1,2) [2025-04-04 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831039', 'tblTempUsageDetail_20' ) start [2025-04-04 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831039', 'tblTempUsageDetail_20' ) end [2025-04-04 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:34:22] Production.INFO: ==14653== Releasing lock... [2025-04-04 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:35:05 [end_date_ymd] => 2025-04-04 06:35:05 [RateCDR] => 1 ) [2025-04-04 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:35:05' and `end` < '2025-04-04 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:35:18] Production.INFO: count ==174 [2025-04-04 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:35:05 - End Time 2025-04-04 06:35:05 [2025-04-04 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831044', 'tblTempUsageDetail_20' ) start [2025-04-04 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831044', 'tblTempUsageDetail_20' ) end [2025-04-04 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831044', 'tblTempVendorCDR_20' ) start [2025-04-04 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831044', 'tblTempVendorCDR_20' ) end [2025-04-04 06:35:18] Production.INFO: ProcessCDR(1,14831044,1,1,2) [2025-04-04 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831044', 'tblTempUsageDetail_20' ) start [2025-04-04 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831044', 'tblTempUsageDetail_20' ) end [2025-04-04 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:35:22] Production.INFO: ==14724== Releasing lock... [2025-04-04 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:36:05 [end_date_ymd] => 2025-04-04 06:36:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:36:05' and `end` < '2025-04-04 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-04 06:36:18] Production.INFO: count ==174 [2025-04-04 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:36:05 - End Time 2025-04-04 06:36:05 [2025-04-04 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831049', 'tblTempUsageDetail_20' ) start [2025-04-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831049', 'tblTempUsageDetail_20' ) end [2025-04-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831049', 'tblTempVendorCDR_20' ) start [2025-04-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831049', 'tblTempVendorCDR_20' ) end [2025-04-04 06:36:18] Production.INFO: ProcessCDR(1,14831049,1,1,2) [2025-04-04 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831049', 'tblTempUsageDetail_20' ) start [2025-04-04 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831049', 'tblTempUsageDetail_20' ) end [2025-04-04 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:36:21] Production.INFO: ==14795== Releasing lock... [2025-04-04 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:37:05 [end_date_ymd] => 2025-04-04 06:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:37:05' and `end` < '2025-04-04 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-04 06:37:18] Production.INFO: count ==174 [2025-04-04 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:37:05 - End Time 2025-04-04 06:37:05 [2025-04-04 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831054', 'tblTempUsageDetail_20' ) start [2025-04-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831054', 'tblTempUsageDetail_20' ) end [2025-04-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831054', 'tblTempVendorCDR_20' ) start [2025-04-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831054', 'tblTempVendorCDR_20' ) end [2025-04-04 06:37:18] Production.INFO: ProcessCDR(1,14831054,1,1,2) [2025-04-04 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831054', 'tblTempUsageDetail_20' ) start [2025-04-04 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831054', 'tblTempUsageDetail_20' ) end [2025-04-04 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:37:22] Production.INFO: ==14872== Releasing lock... [2025-04-04 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:38:06 [end_date_ymd] => 2025-04-04 06:38:06 [RateCDR] => 1 ) [2025-04-04 06: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 03:38:06' and `end` < '2025-04-04 06: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-04 06:38:18] Production.INFO: count ==174 [2025-04-04 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:38:06 - End Time 2025-04-04 06:38:06 [2025-04-04 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831059', 'tblTempUsageDetail_20' ) start [2025-04-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831059', 'tblTempUsageDetail_20' ) end [2025-04-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831059', 'tblTempVendorCDR_20' ) start [2025-04-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831059', 'tblTempVendorCDR_20' ) end [2025-04-04 06:38:18] Production.INFO: ProcessCDR(1,14831059,1,1,2) [2025-04-04 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831059', 'tblTempUsageDetail_20' ) start [2025-04-04 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831059', 'tblTempUsageDetail_20' ) end [2025-04-04 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:38:22] Production.INFO: ==14948== Releasing lock... [2025-04-04 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:39:04 [end_date_ymd] => 2025-04-04 06:39:04 [RateCDR] => 1 ) [2025-04-04 06: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-04 03:39:04' and `end` < '2025-04-04 06: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-04 06:39:17] Production.INFO: count ==174 [2025-04-04 06:39:17] Production.ERROR: pbx CDR StartTime 2025-04-04 03:39:04 - End Time 2025-04-04 06:39:04 [2025-04-04 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831064', 'tblTempUsageDetail_20' ) start [2025-04-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831064', 'tblTempUsageDetail_20' ) end [2025-04-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831064', 'tblTempVendorCDR_20' ) start [2025-04-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831064', 'tblTempVendorCDR_20' ) end [2025-04-04 06:39:17] Production.INFO: ProcessCDR(1,14831064,1,1,2) [2025-04-04 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831064', 'tblTempUsageDetail_20' ) start [2025-04-04 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831064', 'tblTempUsageDetail_20' ) end [2025-04-04 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:39:20] Production.INFO: ==15018== Releasing lock... [2025-04-04 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:39:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:40:06 [end_date_ymd] => 2025-04-04 06:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 03:40:06' and `end` < '2025-04-04 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-04 06:40:19] Production.INFO: count ==174 [2025-04-04 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 03:40:06 - End Time 2025-04-04 06:40:06 [2025-04-04 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831070', 'tblTempUsageDetail_20' ) start [2025-04-04 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831070', 'tblTempUsageDetail_20' ) end [2025-04-04 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831070', 'tblTempVendorCDR_20' ) start [2025-04-04 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831070', 'tblTempVendorCDR_20' ) end [2025-04-04 06:40:19] Production.INFO: ProcessCDR(1,14831070,1,1,2) [2025-04-04 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831070', 'tblTempUsageDetail_20' ) start [2025-04-04 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831070', 'tblTempUsageDetail_20' ) end [2025-04-04 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:40:22] Production.INFO: ==15091== Releasing lock... [2025-04-04 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:41:06 [end_date_ymd] => 2025-04-04 06:41:06 [RateCDR] => 1 ) [2025-04-04 06:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:41:06' and `end` < '2025-04-04 06:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:41:18] Production.INFO: count ==174 [2025-04-04 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:41:06 - End Time 2025-04-04 06:41:06 [2025-04-04 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831075', 'tblTempUsageDetail_20' ) start [2025-04-04 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831075', 'tblTempUsageDetail_20' ) end [2025-04-04 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831075', 'tblTempVendorCDR_20' ) start [2025-04-04 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831075', 'tblTempVendorCDR_20' ) end [2025-04-04 06:41:19] Production.INFO: ProcessCDR(1,14831075,1,1,2) [2025-04-04 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831075', 'tblTempUsageDetail_20' ) start [2025-04-04 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831075', 'tblTempUsageDetail_20' ) end [2025-04-04 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:41:22] Production.INFO: ==15165== Releasing lock... [2025-04-04 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:42:05 [end_date_ymd] => 2025-04-04 06:42:05 [RateCDR] => 1 ) [2025-04-04 06: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 03:42:05' and `end` < '2025-04-04 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-04 06:42:18] Production.INFO: count ==170 [2025-04-04 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:42:05 - End Time 2025-04-04 06:42:05 [2025-04-04 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831080', 'tblTempUsageDetail_20' ) start [2025-04-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831080', 'tblTempUsageDetail_20' ) end [2025-04-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831080', 'tblTempVendorCDR_20' ) start [2025-04-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831080', 'tblTempVendorCDR_20' ) end [2025-04-04 06:42:18] Production.INFO: ProcessCDR(1,14831080,1,1,2) [2025-04-04 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831080', 'tblTempUsageDetail_20' ) start [2025-04-04 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831080', 'tblTempUsageDetail_20' ) end [2025-04-04 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:42:22] Production.INFO: ==15234== Releasing lock... [2025-04-04 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:43:05 [end_date_ymd] => 2025-04-04 06:43:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:43:05' and `end` < '2025-04-04 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-04 06:43:18] Production.INFO: count ==172 [2025-04-04 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:43:05 - End Time 2025-04-04 06:43:05 [2025-04-04 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831085', 'tblTempUsageDetail_20' ) start [2025-04-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831085', 'tblTempUsageDetail_20' ) end [2025-04-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831085', 'tblTempVendorCDR_20' ) start [2025-04-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831085', 'tblTempVendorCDR_20' ) end [2025-04-04 06:43:18] Production.INFO: ProcessCDR(1,14831085,1,1,2) [2025-04-04 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831085', 'tblTempUsageDetail_20' ) start [2025-04-04 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831085', 'tblTempUsageDetail_20' ) end [2025-04-04 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:43:22] Production.INFO: ==15344== Releasing lock... [2025-04-04 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:44:06 [end_date_ymd] => 2025-04-04 06:44:06 [RateCDR] => 1 ) [2025-04-04 06: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 03:44:06' and `end` < '2025-04-04 06: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-04 06:44:18] Production.INFO: count ==175 [2025-04-04 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:44:06 - End Time 2025-04-04 06:44:06 [2025-04-04 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831090', 'tblTempUsageDetail_20' ) start [2025-04-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831090', 'tblTempUsageDetail_20' ) end [2025-04-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831090', 'tblTempVendorCDR_20' ) start [2025-04-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831090', 'tblTempVendorCDR_20' ) end [2025-04-04 06:44:18] Production.INFO: ProcessCDR(1,14831090,1,1,2) [2025-04-04 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831090', 'tblTempUsageDetail_20' ) start [2025-04-04 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831090', 'tblTempUsageDetail_20' ) end [2025-04-04 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:44:22] Production.INFO: ==15415== Releasing lock... [2025-04-04 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:45:06 [end_date_ymd] => 2025-04-04 06:45:06 [RateCDR] => 1 ) [2025-04-04 06: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-04 03:45:06' and `end` < '2025-04-04 06: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-04 06:45:18] Production.INFO: count ==175 [2025-04-04 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:45:06 - End Time 2025-04-04 06:45:06 [2025-04-04 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831095', 'tblTempUsageDetail_20' ) start [2025-04-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831095', 'tblTempUsageDetail_20' ) end [2025-04-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831095', 'tblTempVendorCDR_20' ) start [2025-04-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831095', 'tblTempVendorCDR_20' ) end [2025-04-04 06:45:18] Production.INFO: ProcessCDR(1,14831095,1,1,2) [2025-04-04 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831095', 'tblTempUsageDetail_20' ) start [2025-04-04 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831095', 'tblTempUsageDetail_20' ) end [2025-04-04 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:45:22] Production.INFO: ==15487== Releasing lock... [2025-04-04 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:46:05 [end_date_ymd] => 2025-04-04 06:46:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:46:05' and `end` < '2025-04-04 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-04 06:46:18] Production.INFO: count ==175 [2025-04-04 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:46:05 - End Time 2025-04-04 06:46:05 [2025-04-04 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831100', 'tblTempUsageDetail_20' ) start [2025-04-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831100', 'tblTempUsageDetail_20' ) end [2025-04-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831100', 'tblTempVendorCDR_20' ) start [2025-04-04 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831100', 'tblTempVendorCDR_20' ) end [2025-04-04 06:46:18] Production.INFO: ProcessCDR(1,14831100,1,1,2) [2025-04-04 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831100', 'tblTempUsageDetail_20' ) start [2025-04-04 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831100', 'tblTempUsageDetail_20' ) end [2025-04-04 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:46:21] Production.INFO: ==15558== Releasing lock... [2025-04-04 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:47:06 [end_date_ymd] => 2025-04-04 06:47:06 [RateCDR] => 1 ) [2025-04-04 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-04 03:47:06' and `end` < '2025-04-04 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-04 06:47:19] Production.INFO: count ==175 [2025-04-04 06:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 03:47:06 - End Time 2025-04-04 06:47:06 [2025-04-04 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831105', 'tblTempUsageDetail_20' ) start [2025-04-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831105', 'tblTempUsageDetail_20' ) end [2025-04-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831105', 'tblTempVendorCDR_20' ) start [2025-04-04 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831105', 'tblTempVendorCDR_20' ) end [2025-04-04 06:47:19] Production.INFO: ProcessCDR(1,14831105,1,1,2) [2025-04-04 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831105', 'tblTempUsageDetail_20' ) start [2025-04-04 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831105', 'tblTempUsageDetail_20' ) end [2025-04-04 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:47:22] Production.INFO: ==15634== Releasing lock... [2025-04-04 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:48:05 [end_date_ymd] => 2025-04-04 06:48:05 [RateCDR] => 1 ) [2025-04-04 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:48:05' and `end` < '2025-04-04 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:48:18] Production.INFO: count ==175 [2025-04-04 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:48:05 - End Time 2025-04-04 06:48:05 [2025-04-04 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831110', 'tblTempUsageDetail_20' ) start [2025-04-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831110', 'tblTempUsageDetail_20' ) end [2025-04-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831110', 'tblTempVendorCDR_20' ) start [2025-04-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831110', 'tblTempVendorCDR_20' ) end [2025-04-04 06:48:18] Production.INFO: ProcessCDR(1,14831110,1,1,2) [2025-04-04 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831110', 'tblTempUsageDetail_20' ) start [2025-04-04 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831110', 'tblTempUsageDetail_20' ) end [2025-04-04 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:48:22] Production.INFO: ==15703== Releasing lock... [2025-04-04 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:49:05 [end_date_ymd] => 2025-04-04 06:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:49:05' and `end` < '2025-04-04 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-04 06:49:18] Production.INFO: count ==175 [2025-04-04 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:49:05 - End Time 2025-04-04 06:49:05 [2025-04-04 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831115', 'tblTempUsageDetail_20' ) start [2025-04-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831115', 'tblTempUsageDetail_20' ) end [2025-04-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831115', 'tblTempVendorCDR_20' ) start [2025-04-04 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831115', 'tblTempVendorCDR_20' ) end [2025-04-04 06:49:18] Production.INFO: ProcessCDR(1,14831115,1,1,2) [2025-04-04 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831115', 'tblTempUsageDetail_20' ) start [2025-04-04 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831115', 'tblTempUsageDetail_20' ) end [2025-04-04 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:49:22] Production.INFO: ==15784== Releasing lock... [2025-04-04 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:50:05 [end_date_ymd] => 2025-04-04 06:50:05 [RateCDR] => 1 ) [2025-04-04 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:50:05' and `end` < '2025-04-04 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:50:18] Production.INFO: count ==175 [2025-04-04 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:50:05 - End Time 2025-04-04 06:50:05 [2025-04-04 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831120', 'tblTempUsageDetail_20' ) start [2025-04-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831120', 'tblTempUsageDetail_20' ) end [2025-04-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831120', 'tblTempVendorCDR_20' ) start [2025-04-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831120', 'tblTempVendorCDR_20' ) end [2025-04-04 06:50:18] Production.INFO: ProcessCDR(1,14831120,1,1,2) [2025-04-04 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831120', 'tblTempUsageDetail_20' ) start [2025-04-04 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831120', 'tblTempUsageDetail_20' ) end [2025-04-04 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:50:22] Production.INFO: ==15863== Releasing lock... [2025-04-04 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:51:05 [end_date_ymd] => 2025-04-04 06:51:05 [RateCDR] => 1 ) [2025-04-04 06: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-04 03:51:05' and `end` < '2025-04-04 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-04 06:51:18] Production.INFO: count ==175 [2025-04-04 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:51:05 - End Time 2025-04-04 06:51:05 [2025-04-04 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831126', 'tblTempUsageDetail_20' ) start [2025-04-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831126', 'tblTempUsageDetail_20' ) end [2025-04-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831126', 'tblTempVendorCDR_20' ) start [2025-04-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831126', 'tblTempVendorCDR_20' ) end [2025-04-04 06:51:18] Production.INFO: ProcessCDR(1,14831126,1,1,2) [2025-04-04 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831126', 'tblTempUsageDetail_20' ) start [2025-04-04 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831126', 'tblTempUsageDetail_20' ) end [2025-04-04 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:51:22] Production.INFO: ==15939== Releasing lock... [2025-04-04 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:52:05 [end_date_ymd] => 2025-04-04 06:52:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:52:05' and `end` < '2025-04-04 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-04 06:52:18] Production.INFO: count ==175 [2025-04-04 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:52:05 - End Time 2025-04-04 06:52:05 [2025-04-04 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831131', 'tblTempUsageDetail_20' ) start [2025-04-04 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831131', 'tblTempUsageDetail_20' ) end [2025-04-04 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831131', 'tblTempVendorCDR_20' ) start [2025-04-04 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831131', 'tblTempVendorCDR_20' ) end [2025-04-04 06:52:18] Production.INFO: ProcessCDR(1,14831131,1,1,2) [2025-04-04 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831131', 'tblTempUsageDetail_20' ) start [2025-04-04 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831131', 'tblTempUsageDetail_20' ) end [2025-04-04 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:52:21] Production.INFO: ==16023== Releasing lock... [2025-04-04 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:53:05 [end_date_ymd] => 2025-04-04 06:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:53:05' and `end` < '2025-04-04 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-04 06:53:18] Production.INFO: count ==175 [2025-04-04 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:53:05 - End Time 2025-04-04 06:53:05 [2025-04-04 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831136', 'tblTempUsageDetail_20' ) start [2025-04-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831136', 'tblTempUsageDetail_20' ) end [2025-04-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831136', 'tblTempVendorCDR_20' ) start [2025-04-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831136', 'tblTempVendorCDR_20' ) end [2025-04-04 06:53:18] Production.INFO: ProcessCDR(1,14831136,1,1,2) [2025-04-04 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831136', 'tblTempUsageDetail_20' ) start [2025-04-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831136', 'tblTempUsageDetail_20' ) end [2025-04-04 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:53:21] Production.INFO: ==16099== Releasing lock... [2025-04-04 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:54:05 [end_date_ymd] => 2025-04-04 06:54:05 [RateCDR] => 1 ) [2025-04-04 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 03:54:05' and `end` < '2025-04-04 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 06:54:17] Production.INFO: count ==175 [2025-04-04 06:54:17] Production.ERROR: pbx CDR StartTime 2025-04-04 03:54:05 - End Time 2025-04-04 06:54:05 [2025-04-04 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831141', 'tblTempUsageDetail_20' ) start [2025-04-04 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831141', 'tblTempUsageDetail_20' ) end [2025-04-04 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831141', 'tblTempVendorCDR_20' ) start [2025-04-04 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831141', 'tblTempVendorCDR_20' ) end [2025-04-04 06:54:17] Production.INFO: ProcessCDR(1,14831141,1,1,2) [2025-04-04 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831141', 'tblTempUsageDetail_20' ) start [2025-04-04 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831141', 'tblTempUsageDetail_20' ) end [2025-04-04 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:54:21] Production.INFO: ==16171== Releasing lock... [2025-04-04 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:55:05 [end_date_ymd] => 2025-04-04 06:55:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:55:05' and `end` < '2025-04-04 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-04 06:55:18] Production.INFO: count ==175 [2025-04-04 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:55:05 - End Time 2025-04-04 06:55:05 [2025-04-04 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831146', 'tblTempUsageDetail_20' ) start [2025-04-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831146', 'tblTempUsageDetail_20' ) end [2025-04-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831146', 'tblTempVendorCDR_20' ) start [2025-04-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831146', 'tblTempVendorCDR_20' ) end [2025-04-04 06:55:18] Production.INFO: ProcessCDR(1,14831146,1,1,2) [2025-04-04 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831146', 'tblTempUsageDetail_20' ) start [2025-04-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831146', 'tblTempUsageDetail_20' ) end [2025-04-04 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:55:21] Production.INFO: ==16251== Releasing lock... [2025-04-04 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:56:05 [end_date_ymd] => 2025-04-04 06:56:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:56:05' and `end` < '2025-04-04 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-04 06:56:17] Production.INFO: count ==180 [2025-04-04 06:56:17] Production.ERROR: pbx CDR StartTime 2025-04-04 03:56:05 - End Time 2025-04-04 06:56:05 [2025-04-04 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831151', 'tblTempUsageDetail_20' ) start [2025-04-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831151', 'tblTempUsageDetail_20' ) end [2025-04-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831151', 'tblTempVendorCDR_20' ) start [2025-04-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831151', 'tblTempVendorCDR_20' ) end [2025-04-04 06:56:17] Production.INFO: ProcessCDR(1,14831151,1,1,2) [2025-04-04 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831151', 'tblTempUsageDetail_20' ) start [2025-04-04 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831151', 'tblTempUsageDetail_20' ) end [2025-04-04 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:56:21] Production.INFO: ==16328== Releasing lock... [2025-04-04 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:56:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:57:05 [end_date_ymd] => 2025-04-04 06:57:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:57:05' and `end` < '2025-04-04 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-04 06:57:18] Production.INFO: count ==180 [2025-04-04 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:57:05 - End Time 2025-04-04 06:57:05 [2025-04-04 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831156', 'tblTempUsageDetail_20' ) start [2025-04-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831156', 'tblTempUsageDetail_20' ) end [2025-04-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831156', 'tblTempVendorCDR_20' ) start [2025-04-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831156', 'tblTempVendorCDR_20' ) end [2025-04-04 06:57:18] Production.INFO: ProcessCDR(1,14831156,1,1,2) [2025-04-04 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831156', 'tblTempUsageDetail_20' ) start [2025-04-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831156', 'tblTempUsageDetail_20' ) end [2025-04-04 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:57:21] Production.INFO: ==16406== Releasing lock... [2025-04-04 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:57:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:58:05 [end_date_ymd] => 2025-04-04 06:58:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:58:05' and `end` < '2025-04-04 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-04 06:58:18] Production.INFO: count ==180 [2025-04-04 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:58:05 - End Time 2025-04-04 06:58:05 [2025-04-04 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831161', 'tblTempUsageDetail_20' ) start [2025-04-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831161', 'tblTempUsageDetail_20' ) end [2025-04-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831161', 'tblTempVendorCDR_20' ) start [2025-04-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831161', 'tblTempVendorCDR_20' ) end [2025-04-04 06:58:18] Production.INFO: ProcessCDR(1,14831161,1,1,2) [2025-04-04 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831161', 'tblTempUsageDetail_20' ) start [2025-04-04 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831161', 'tblTempUsageDetail_20' ) end [2025-04-04 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:58:21] Production.INFO: ==16517== Releasing lock... [2025-04-04 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 03:59:05 [end_date_ymd] => 2025-04-04 06:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 03:59:05' and `end` < '2025-04-04 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-04 06:59:18] Production.INFO: count ==182 [2025-04-04 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-04 03:59:05 - End Time 2025-04-04 06:59:05 [2025-04-04 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831166', 'tblTempUsageDetail_20' ) start [2025-04-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831166', 'tblTempUsageDetail_20' ) end [2025-04-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831166', 'tblTempVendorCDR_20' ) start [2025-04-04 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831166', 'tblTempVendorCDR_20' ) end [2025-04-04 06:59:18] Production.INFO: ProcessCDR(1,14831166,1,1,2) [2025-04-04 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831166', 'tblTempUsageDetail_20' ) start [2025-04-04 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831166', 'tblTempUsageDetail_20' ) end [2025-04-04 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 06:59:21] Production.INFO: ==16592== Releasing lock... [2025-04-04 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 06:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:00:06 [end_date_ymd] => 2025-04-04 07:00:06 [RateCDR] => 1 ) [2025-04-04 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-04 04:00:06' and `end` < '2025-04-04 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-04 07:00:19] Production.INFO: count ==173 [2025-04-04 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:00:06 - End Time 2025-04-04 07:00:06 [2025-04-04 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831172', 'tblTempUsageDetail_20' ) start [2025-04-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831172', 'tblTempUsageDetail_20' ) end [2025-04-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831172', 'tblTempVendorCDR_20' ) start [2025-04-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831172', 'tblTempVendorCDR_20' ) end [2025-04-04 07:00:19] Production.INFO: ProcessCDR(1,14831172,1,1,2) [2025-04-04 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831172', 'tblTempUsageDetail_20' ) start [2025-04-04 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831172', 'tblTempUsageDetail_20' ) end [2025-04-04 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:00:22] Production.INFO: ==16672== Releasing lock... [2025-04-04 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:00:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:01:05 [end_date_ymd] => 2025-04-04 07:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:01:05' and `end` < '2025-04-04 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-04 07:01:18] Production.INFO: count ==166 [2025-04-04 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:01:05 - End Time 2025-04-04 07:01:05 [2025-04-04 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831177', 'tblTempUsageDetail_20' ) start [2025-04-04 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831177', 'tblTempUsageDetail_20' ) end [2025-04-04 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831177', 'tblTempVendorCDR_20' ) start [2025-04-04 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831177', 'tblTempVendorCDR_20' ) end [2025-04-04 07:01:18] Production.INFO: ProcessCDR(1,14831177,1,1,2) [2025-04-04 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831177', 'tblTempUsageDetail_20' ) start [2025-04-04 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831177', 'tblTempUsageDetail_20' ) end [2025-04-04 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:01:22] Production.INFO: ==16801== Releasing lock... [2025-04-04 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:02:05 [end_date_ymd] => 2025-04-04 07:02:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:02:05' and `end` < '2025-04-04 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-04 07:02:18] Production.INFO: count ==163 [2025-04-04 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:02:05 - End Time 2025-04-04 07:02:05 [2025-04-04 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831182', 'tblTempUsageDetail_20' ) start [2025-04-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831182', 'tblTempUsageDetail_20' ) end [2025-04-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831182', 'tblTempVendorCDR_20' ) start [2025-04-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831182', 'tblTempVendorCDR_20' ) end [2025-04-04 07:02:18] Production.INFO: ProcessCDR(1,14831182,1,1,2) [2025-04-04 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831182', 'tblTempUsageDetail_20' ) start [2025-04-04 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831182', 'tblTempUsageDetail_20' ) end [2025-04-04 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:02:22] Production.INFO: ==16918== Releasing lock... [2025-04-04 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:03:05 [end_date_ymd] => 2025-04-04 07:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:03:05' and `end` < '2025-04-04 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-04 07:03:18] Production.INFO: count ==161 [2025-04-04 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:03:05 - End Time 2025-04-04 07:03:05 [2025-04-04 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831187', 'tblTempUsageDetail_20' ) start [2025-04-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831187', 'tblTempUsageDetail_20' ) end [2025-04-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831187', 'tblTempVendorCDR_20' ) start [2025-04-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831187', 'tblTempVendorCDR_20' ) end [2025-04-04 07:03:18] Production.INFO: ProcessCDR(1,14831187,1,1,2) [2025-04-04 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831187', 'tblTempUsageDetail_20' ) start [2025-04-04 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831187', 'tblTempUsageDetail_20' ) end [2025-04-04 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:03:22] Production.INFO: ==16990== Releasing lock... [2025-04-04 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:04:06 [end_date_ymd] => 2025-04-04 07:04:06 [RateCDR] => 1 ) [2025-04-04 07: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-04 04:04:06' and `end` < '2025-04-04 07: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-04 07:04:19] Production.INFO: count ==167 [2025-04-04 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:04:06 - End Time 2025-04-04 07:04:06 [2025-04-04 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831192', 'tblTempUsageDetail_20' ) start [2025-04-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831192', 'tblTempUsageDetail_20' ) end [2025-04-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831192', 'tblTempVendorCDR_20' ) start [2025-04-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831192', 'tblTempVendorCDR_20' ) end [2025-04-04 07:04:19] Production.INFO: ProcessCDR(1,14831192,1,1,2) [2025-04-04 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831192', 'tblTempUsageDetail_20' ) start [2025-04-04 07:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831192', 'tblTempUsageDetail_20' ) end [2025-04-04 07:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:04:25] Production.INFO: ==17070== Releasing lock... [2025-04-04 07:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:04:25] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:05:06 [end_date_ymd] => 2025-04-04 07:05:06 [RateCDR] => 1 ) [2025-04-04 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:05:06' and `end` < '2025-04-04 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:05:19] Production.INFO: count ==168 [2025-04-04 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:05:06 - End Time 2025-04-04 07:05:06 [2025-04-04 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831197', 'tblTempUsageDetail_20' ) start [2025-04-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831197', 'tblTempUsageDetail_20' ) end [2025-04-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831197', 'tblTempVendorCDR_20' ) start [2025-04-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831197', 'tblTempVendorCDR_20' ) end [2025-04-04 07:05:19] Production.INFO: ProcessCDR(1,14831197,1,1,2) [2025-04-04 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831197', 'tblTempUsageDetail_20' ) start [2025-04-04 07:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831197', 'tblTempUsageDetail_20' ) end [2025-04-04 07:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:05:25] Production.INFO: ==17226== Releasing lock... [2025-04-04 07:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:05:25] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:06:06 [end_date_ymd] => 2025-04-04 07:06:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:06:06' and `end` < '2025-04-04 07: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-04 07:06:20] Production.INFO: count ==168 [2025-04-04 07:06:20] Production.ERROR: pbx CDR StartTime 2025-04-04 04:06:06 - End Time 2025-04-04 07:06:06 [2025-04-04 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831202', 'tblTempUsageDetail_20' ) start [2025-04-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831202', 'tblTempUsageDetail_20' ) end [2025-04-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831202', 'tblTempVendorCDR_20' ) start [2025-04-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831202', 'tblTempVendorCDR_20' ) end [2025-04-04 07:06:20] Production.INFO: ProcessCDR(1,14831202,1,1,2) [2025-04-04 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831202', 'tblTempUsageDetail_20' ) start [2025-04-04 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831202', 'tblTempUsageDetail_20' ) end [2025-04-04 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:06:24] Production.INFO: ==17310== Releasing lock... [2025-04-04 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:06:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:07:05 [end_date_ymd] => 2025-04-04 07:07:05 [RateCDR] => 1 ) [2025-04-04 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:07:05' and `end` < '2025-04-04 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:07:18] Production.INFO: count ==169 [2025-04-04 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:07:05 - End Time 2025-04-04 07:07:05 [2025-04-04 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831207', 'tblTempUsageDetail_20' ) start [2025-04-04 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831207', 'tblTempUsageDetail_20' ) end [2025-04-04 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831207', 'tblTempVendorCDR_20' ) start [2025-04-04 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831207', 'tblTempVendorCDR_20' ) end [2025-04-04 07:07:18] Production.INFO: ProcessCDR(1,14831207,1,1,2) [2025-04-04 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831207', 'tblTempUsageDetail_20' ) start [2025-04-04 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831207', 'tblTempUsageDetail_20' ) end [2025-04-04 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:07:23] Production.INFO: ==17388== Releasing lock... [2025-04-04 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:08:06 [end_date_ymd] => 2025-04-04 07:08:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:08:06' and `end` < '2025-04-04 07: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-04 07:08:19] Production.INFO: count ==169 [2025-04-04 07:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:08:06 - End Time 2025-04-04 07:08:06 [2025-04-04 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831212', 'tblTempUsageDetail_20' ) start [2025-04-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831212', 'tblTempUsageDetail_20' ) end [2025-04-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831212', 'tblTempVendorCDR_20' ) start [2025-04-04 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831212', 'tblTempVendorCDR_20' ) end [2025-04-04 07:08:19] Production.INFO: ProcessCDR(1,14831212,1,1,2) [2025-04-04 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831212', 'tblTempUsageDetail_20' ) start [2025-04-04 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831212', 'tblTempUsageDetail_20' ) end [2025-04-04 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:08:23] Production.INFO: ==17542== Releasing lock... [2025-04-04 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:08:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:09:05 [end_date_ymd] => 2025-04-04 07:09:05 [RateCDR] => 1 ) [2025-04-04 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:09:05' and `end` < '2025-04-04 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:09:19] Production.INFO: count ==169 [2025-04-04 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:09:05 - End Time 2025-04-04 07:09:05 [2025-04-04 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831217', 'tblTempUsageDetail_20' ) start [2025-04-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831217', 'tblTempUsageDetail_20' ) end [2025-04-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831217', 'tblTempVendorCDR_20' ) start [2025-04-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831217', 'tblTempVendorCDR_20' ) end [2025-04-04 07:09:19] Production.INFO: ProcessCDR(1,14831217,1,1,2) [2025-04-04 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831217', 'tblTempUsageDetail_20' ) start [2025-04-04 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831217', 'tblTempUsageDetail_20' ) end [2025-04-04 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:09:23] Production.INFO: ==17614== Releasing lock... [2025-04-04 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:09:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:10:06 [end_date_ymd] => 2025-04-04 07:10:06 [RateCDR] => 1 ) [2025-04-04 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:10:06' and `end` < '2025-04-04 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:10:19] Production.INFO: count ==177 [2025-04-04 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:10:06 - End Time 2025-04-04 07:10:06 [2025-04-04 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831223', 'tblTempUsageDetail_20' ) start [2025-04-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831223', 'tblTempUsageDetail_20' ) end [2025-04-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831223', 'tblTempVendorCDR_20' ) start [2025-04-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831223', 'tblTempVendorCDR_20' ) end [2025-04-04 07:10:19] Production.INFO: ProcessCDR(1,14831223,1,1,2) [2025-04-04 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831223', 'tblTempUsageDetail_20' ) start [2025-04-04 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831223', 'tblTempUsageDetail_20' ) end [2025-04-04 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:10:23] Production.INFO: ==17698== Releasing lock... [2025-04-04 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:11:05 [end_date_ymd] => 2025-04-04 07:11:05 [RateCDR] => 1 ) [2025-04-04 07: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 04:11:05' and `end` < '2025-04-04 07: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-04 07:11:19] Production.INFO: count ==182 [2025-04-04 07:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:11:05 - End Time 2025-04-04 07:11:05 [2025-04-04 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831228', 'tblTempUsageDetail_20' ) start [2025-04-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831228', 'tblTempUsageDetail_20' ) end [2025-04-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831228', 'tblTempVendorCDR_20' ) start [2025-04-04 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831228', 'tblTempVendorCDR_20' ) end [2025-04-04 07:11:19] Production.INFO: ProcessCDR(1,14831228,1,1,2) [2025-04-04 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831228', 'tblTempUsageDetail_20' ) start [2025-04-04 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831228', 'tblTempUsageDetail_20' ) end [2025-04-04 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:11:22] Production.INFO: ==17776== Releasing lock... [2025-04-04 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:12:06 [end_date_ymd] => 2025-04-04 07:12:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:12:06' and `end` < '2025-04-04 07: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-04 07:12:19] Production.INFO: count ==182 [2025-04-04 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:12:06 - End Time 2025-04-04 07:12:06 [2025-04-04 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831233', 'tblTempUsageDetail_20' ) start [2025-04-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831233', 'tblTempUsageDetail_20' ) end [2025-04-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831233', 'tblTempVendorCDR_20' ) start [2025-04-04 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831233', 'tblTempVendorCDR_20' ) end [2025-04-04 07:12:19] Production.INFO: ProcessCDR(1,14831233,1,1,2) [2025-04-04 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831233', 'tblTempUsageDetail_20' ) start [2025-04-04 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831233', 'tblTempUsageDetail_20' ) end [2025-04-04 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:12:23] Production.INFO: ==17934== Releasing lock... [2025-04-04 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:12:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:13:05 [end_date_ymd] => 2025-04-04 07:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:13:05' and `end` < '2025-04-04 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-04 07:13:17] Production.INFO: count ==182 [2025-04-04 07:13:17] Production.ERROR: pbx CDR StartTime 2025-04-04 04:13:05 - End Time 2025-04-04 07:13:05 [2025-04-04 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831238', 'tblTempUsageDetail_20' ) start [2025-04-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831238', 'tblTempUsageDetail_20' ) end [2025-04-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831238', 'tblTempVendorCDR_20' ) start [2025-04-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831238', 'tblTempVendorCDR_20' ) end [2025-04-04 07:13:17] Production.INFO: ProcessCDR(1,14831238,1,1,2) [2025-04-04 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831238', 'tblTempUsageDetail_20' ) start [2025-04-04 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831238', 'tblTempUsageDetail_20' ) end [2025-04-04 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:13:21] Production.INFO: ==18011== Releasing lock... [2025-04-04 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:14:05 [end_date_ymd] => 2025-04-04 07:14:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:14:05' and `end` < '2025-04-04 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-04 07:14:18] Production.INFO: count ==183 [2025-04-04 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:14:05 - End Time 2025-04-04 07:14:05 [2025-04-04 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831243', 'tblTempUsageDetail_20' ) start [2025-04-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831243', 'tblTempUsageDetail_20' ) end [2025-04-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831243', 'tblTempVendorCDR_20' ) start [2025-04-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831243', 'tblTempVendorCDR_20' ) end [2025-04-04 07:14:18] Production.INFO: ProcessCDR(1,14831243,1,1,2) [2025-04-04 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831243', 'tblTempUsageDetail_20' ) start [2025-04-04 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831243', 'tblTempUsageDetail_20' ) end [2025-04-04 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:14:23] Production.INFO: ==18131== Releasing lock... [2025-04-04 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:14:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:15:05 [end_date_ymd] => 2025-04-04 07:15:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:15:05' and `end` < '2025-04-04 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-04 07:15:18] Production.INFO: count ==183 [2025-04-04 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:15:05 - End Time 2025-04-04 07:15:05 [2025-04-04 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831248', 'tblTempUsageDetail_20' ) start [2025-04-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831248', 'tblTempUsageDetail_20' ) end [2025-04-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831248', 'tblTempVendorCDR_20' ) start [2025-04-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831248', 'tblTempVendorCDR_20' ) end [2025-04-04 07:15:19] Production.INFO: ProcessCDR(1,14831248,1,1,2) [2025-04-04 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831248', 'tblTempUsageDetail_20' ) start [2025-04-04 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831248', 'tblTempUsageDetail_20' ) end [2025-04-04 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:15:22] Production.INFO: ==18283== Releasing lock... [2025-04-04 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:16:06 [end_date_ymd] => 2025-04-04 07:16:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:16:06' and `end` < '2025-04-04 07: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-04 07:16:19] Production.INFO: count ==183 [2025-04-04 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:16:06 - End Time 2025-04-04 07:16:06 [2025-04-04 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831253', 'tblTempUsageDetail_20' ) start [2025-04-04 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831253', 'tblTempUsageDetail_20' ) end [2025-04-04 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831253', 'tblTempVendorCDR_20' ) start [2025-04-04 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831253', 'tblTempVendorCDR_20' ) end [2025-04-04 07:16:19] Production.INFO: ProcessCDR(1,14831253,1,1,2) [2025-04-04 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831253', 'tblTempUsageDetail_20' ) start [2025-04-04 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831253', 'tblTempUsageDetail_20' ) end [2025-04-04 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:16:22] Production.INFO: ==18360== Releasing lock... [2025-04-04 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:16:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:17:05 [end_date_ymd] => 2025-04-04 07:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:17:05' and `end` < '2025-04-04 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-04 07:17:20] Production.INFO: count ==183 [2025-04-04 07:17:20] Production.ERROR: pbx CDR StartTime 2025-04-04 04:17:05 - End Time 2025-04-04 07:17:05 [2025-04-04 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831258', 'tblTempUsageDetail_20' ) start [2025-04-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831258', 'tblTempUsageDetail_20' ) end [2025-04-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831258', 'tblTempVendorCDR_20' ) start [2025-04-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831258', 'tblTempVendorCDR_20' ) end [2025-04-04 07:17:20] Production.INFO: ProcessCDR(1,14831258,1,1,2) [2025-04-04 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831258', 'tblTempUsageDetail_20' ) start [2025-04-04 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831258', 'tblTempUsageDetail_20' ) end [2025-04-04 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:17:24] Production.INFO: ==18443== Releasing lock... [2025-04-04 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:17:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:18:06 [end_date_ymd] => 2025-04-04 07:18:06 [RateCDR] => 1 ) [2025-04-04 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:18:06' and `end` < '2025-04-04 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:18:18] Production.INFO: count ==183 [2025-04-04 07:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:18:06 - End Time 2025-04-04 07:18:06 [2025-04-04 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831263', 'tblTempUsageDetail_20' ) start [2025-04-04 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831263', 'tblTempUsageDetail_20' ) end [2025-04-04 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831263', 'tblTempVendorCDR_20' ) start [2025-04-04 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831263', 'tblTempVendorCDR_20' ) end [2025-04-04 07:18:19] Production.INFO: ProcessCDR(1,14831263,1,1,2) [2025-04-04 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831263', 'tblTempUsageDetail_20' ) start [2025-04-04 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831263', 'tblTempUsageDetail_20' ) end [2025-04-04 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:18:23] Production.INFO: ==18520== Releasing lock... [2025-04-04 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:18:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-04 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:19:05 [end_date_ymd] => 2025-04-04 07:19:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:19:05' and `end` < '2025-04-04 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-04 07:19:18] Production.INFO: count ==187 [2025-04-04 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:19:05 - End Time 2025-04-04 07:19:05 [2025-04-04 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831268', 'tblTempUsageDetail_20' ) start [2025-04-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831268', 'tblTempUsageDetail_20' ) end [2025-04-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831268', 'tblTempVendorCDR_20' ) start [2025-04-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831268', 'tblTempVendorCDR_20' ) end [2025-04-04 07:19:18] Production.INFO: ProcessCDR(1,14831268,1,1,2) [2025-04-04 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831268', 'tblTempUsageDetail_20' ) start [2025-04-04 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831268', 'tblTempUsageDetail_20' ) end [2025-04-04 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:19:22] Production.INFO: ==18597== Releasing lock... [2025-04-04 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-04 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:20:06 [end_date_ymd] => 2025-04-04 07:20:06 [RateCDR] => 1 ) [2025-04-04 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:20:06' and `end` < '2025-04-04 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:20:19] Production.INFO: count ==201 [2025-04-04 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:20:06 - End Time 2025-04-04 07:20:06 [2025-04-04 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831274', 'tblTempUsageDetail_20' ) start [2025-04-04 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831274', 'tblTempUsageDetail_20' ) end [2025-04-04 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831274', 'tblTempVendorCDR_20' ) start [2025-04-04 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831274', 'tblTempVendorCDR_20' ) end [2025-04-04 07:20:20] Production.INFO: ProcessCDR(1,14831274,1,1,2) [2025-04-04 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831274', 'tblTempUsageDetail_20' ) start [2025-04-04 07:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831274', 'tblTempUsageDetail_20' ) end [2025-04-04 07:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:20:25] Production.INFO: ==18676== Releasing lock... [2025-04-04 07:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:20:25] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:21:06 [end_date_ymd] => 2025-04-04 07:21:06 [RateCDR] => 1 ) [2025-04-04 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:21:06' and `end` < '2025-04-04 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:21:19] Production.INFO: count ==203 [2025-04-04 07:21:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:21:06 - End Time 2025-04-04 07:21:06 [2025-04-04 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831279', 'tblTempUsageDetail_20' ) start [2025-04-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831279', 'tblTempUsageDetail_20' ) end [2025-04-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831279', 'tblTempVendorCDR_20' ) start [2025-04-04 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831279', 'tblTempVendorCDR_20' ) end [2025-04-04 07:21:19] Production.INFO: ProcessCDR(1,14831279,1,1,2) [2025-04-04 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831279', 'tblTempUsageDetail_20' ) start [2025-04-04 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831279', 'tblTempUsageDetail_20' ) end [2025-04-04 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:21:23] Production.INFO: ==18763== Releasing lock... [2025-04-04 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:21:23] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:22:06 [end_date_ymd] => 2025-04-04 07:22:06 [RateCDR] => 1 ) [2025-04-04 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-04 04:22:06' and `end` < '2025-04-04 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-04 07:22:19] Production.INFO: count ==211 [2025-04-04 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:22:06 - End Time 2025-04-04 07:22:06 [2025-04-04 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831284', 'tblTempUsageDetail_20' ) start [2025-04-04 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831284', 'tblTempUsageDetail_20' ) end [2025-04-04 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831284', 'tblTempVendorCDR_20' ) start [2025-04-04 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831284', 'tblTempVendorCDR_20' ) end [2025-04-04 07:22:19] Production.INFO: ProcessCDR(1,14831284,1,1,2) [2025-04-04 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831284', 'tblTempUsageDetail_20' ) start [2025-04-04 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831284', 'tblTempUsageDetail_20' ) end [2025-04-04 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:22:22] Production.INFO: ==18838== Releasing lock... [2025-04-04 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:22:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:23:05 [end_date_ymd] => 2025-04-04 07:23:05 [RateCDR] => 1 ) [2025-04-04 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:23:05' and `end` < '2025-04-04 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:23:18] Production.INFO: count ==211 [2025-04-04 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:23:05 - End Time 2025-04-04 07:23:05 [2025-04-04 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831289', 'tblTempUsageDetail_20' ) start [2025-04-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831289', 'tblTempUsageDetail_20' ) end [2025-04-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831289', 'tblTempVendorCDR_20' ) start [2025-04-04 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831289', 'tblTempVendorCDR_20' ) end [2025-04-04 07:23:18] Production.INFO: ProcessCDR(1,14831289,1,1,2) [2025-04-04 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831289', 'tblTempUsageDetail_20' ) start [2025-04-04 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831289', 'tblTempUsageDetail_20' ) end [2025-04-04 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:23:22] Production.INFO: ==18917== Releasing lock... [2025-04-04 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:23:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:24:06 [end_date_ymd] => 2025-04-04 07:24:06 [RateCDR] => 1 ) [2025-04-04 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-04 04:24:06' and `end` < '2025-04-04 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-04 07:24:18] Production.INFO: count ==211 [2025-04-04 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:24:06 - End Time 2025-04-04 07:24:06 [2025-04-04 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831294', 'tblTempUsageDetail_20' ) start [2025-04-04 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831294', 'tblTempUsageDetail_20' ) end [2025-04-04 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831294', 'tblTempVendorCDR_20' ) start [2025-04-04 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831294', 'tblTempVendorCDR_20' ) end [2025-04-04 07:24:19] Production.INFO: ProcessCDR(1,14831294,1,1,2) [2025-04-04 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831294', 'tblTempUsageDetail_20' ) start [2025-04-04 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831294', 'tblTempUsageDetail_20' ) end [2025-04-04 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:24:22] Production.INFO: ==18995== Releasing lock... [2025-04-04 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:24:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:25:05 [end_date_ymd] => 2025-04-04 07:25:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:25:05' and `end` < '2025-04-04 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-04 07:25:18] Production.INFO: count ==208 [2025-04-04 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:25:05 - End Time 2025-04-04 07:25:05 [2025-04-04 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831299', 'tblTempUsageDetail_20' ) start [2025-04-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831299', 'tblTempUsageDetail_20' ) end [2025-04-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831299', 'tblTempVendorCDR_20' ) start [2025-04-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831299', 'tblTempVendorCDR_20' ) end [2025-04-04 07:25:18] Production.INFO: ProcessCDR(1,14831299,1,1,2) [2025-04-04 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831299', 'tblTempUsageDetail_20' ) start [2025-04-04 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831299', 'tblTempUsageDetail_20' ) end [2025-04-04 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:25:24] Production.INFO: ==19079== Releasing lock... [2025-04-04 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:26:06 [end_date_ymd] => 2025-04-04 07:26:06 [RateCDR] => 1 ) [2025-04-04 07:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:26:06' and `end` < '2025-04-04 07:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:26:18] Production.INFO: count ==206 [2025-04-04 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:26:06 - End Time 2025-04-04 07:26:06 [2025-04-04 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831304', 'tblTempUsageDetail_20' ) start [2025-04-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831304', 'tblTempUsageDetail_20' ) end [2025-04-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831304', 'tblTempVendorCDR_20' ) start [2025-04-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831304', 'tblTempVendorCDR_20' ) end [2025-04-04 07:26:18] Production.INFO: ProcessCDR(1,14831304,1,1,2) [2025-04-04 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831304', 'tblTempUsageDetail_20' ) start [2025-04-04 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831304', 'tblTempUsageDetail_20' ) end [2025-04-04 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:26:22] Production.INFO: ==19161== Releasing lock... [2025-04-04 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:27:05 [end_date_ymd] => 2025-04-04 07:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:27:05' and `end` < '2025-04-04 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-04 07:27:18] Production.INFO: count ==206 [2025-04-04 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:27:05 - End Time 2025-04-04 07:27:05 [2025-04-04 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831309', 'tblTempUsageDetail_20' ) start [2025-04-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831309', 'tblTempUsageDetail_20' ) end [2025-04-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831309', 'tblTempVendorCDR_20' ) start [2025-04-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831309', 'tblTempVendorCDR_20' ) end [2025-04-04 07:27:18] Production.INFO: ProcessCDR(1,14831309,1,1,2) [2025-04-04 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831309', 'tblTempUsageDetail_20' ) start [2025-04-04 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831309', 'tblTempUsageDetail_20' ) end [2025-04-04 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:27:22] Production.INFO: ==19235== Releasing lock... [2025-04-04 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:27:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:28:06 [end_date_ymd] => 2025-04-04 07:28:06 [RateCDR] => 1 ) [2025-04-04 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-04 04:28:06' and `end` < '2025-04-04 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-04 07:28:18] Production.INFO: count ==212 [2025-04-04 07:28:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:28:06 - End Time 2025-04-04 07:28:06 [2025-04-04 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831314', 'tblTempUsageDetail_20' ) start [2025-04-04 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831314', 'tblTempUsageDetail_20' ) end [2025-04-04 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831314', 'tblTempVendorCDR_20' ) start [2025-04-04 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831314', 'tblTempVendorCDR_20' ) end [2025-04-04 07:28:19] Production.INFO: ProcessCDR(1,14831314,1,1,2) [2025-04-04 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831314', 'tblTempUsageDetail_20' ) start [2025-04-04 07:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831314', 'tblTempUsageDetail_20' ) end [2025-04-04 07:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:28:25] Production.INFO: ==19308== Releasing lock... [2025-04-04 07:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:28:25] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:29:05 [end_date_ymd] => 2025-04-04 07:29:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:29:05' and `end` < '2025-04-04 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-04 07:29:18] Production.INFO: count ==212 [2025-04-04 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:29:05 - End Time 2025-04-04 07:29:05 [2025-04-04 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831319', 'tblTempUsageDetail_20' ) start [2025-04-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831319', 'tblTempUsageDetail_20' ) end [2025-04-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831319', 'tblTempVendorCDR_20' ) start [2025-04-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831319', 'tblTempVendorCDR_20' ) end [2025-04-04 07:29:18] Production.INFO: ProcessCDR(1,14831319,1,1,2) [2025-04-04 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831319', 'tblTempUsageDetail_20' ) start [2025-04-04 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831319', 'tblTempUsageDetail_20' ) end [2025-04-04 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:29:22] Production.INFO: ==19420== Releasing lock... [2025-04-04 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:29:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:30:06 [end_date_ymd] => 2025-04-04 07:30:06 [RateCDR] => 1 ) [2025-04-04 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:30:06' and `end` < '2025-04-04 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-04 07:30:19] Production.INFO: count ==216 [2025-04-04 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:30:06 - End Time 2025-04-04 07:30:06 [2025-04-04 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831325', 'tblTempUsageDetail_20' ) start [2025-04-04 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831325', 'tblTempUsageDetail_20' ) end [2025-04-04 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831325', 'tblTempVendorCDR_20' ) start [2025-04-04 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831325', 'tblTempVendorCDR_20' ) end [2025-04-04 07:30:19] Production.INFO: ProcessCDR(1,14831325,1,1,2) [2025-04-04 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831325', 'tblTempUsageDetail_20' ) start [2025-04-04 07:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831325', 'tblTempUsageDetail_20' ) end [2025-04-04 07:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:30:25] Production.INFO: ==19494== Releasing lock... [2025-04-04 07:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:30:25] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:31:05 [end_date_ymd] => 2025-04-04 07:31:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:31:05' and `end` < '2025-04-04 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-04 07:31:18] Production.INFO: count ==229 [2025-04-04 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:31:05 - End Time 2025-04-04 07:31:05 [2025-04-04 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831330', 'tblTempUsageDetail_20' ) start [2025-04-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831330', 'tblTempUsageDetail_20' ) end [2025-04-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831330', 'tblTempVendorCDR_20' ) start [2025-04-04 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831330', 'tblTempVendorCDR_20' ) end [2025-04-04 07:31:18] Production.INFO: ProcessCDR(1,14831330,1,1,2) [2025-04-04 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831330', 'tblTempUsageDetail_20' ) start [2025-04-04 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831330', 'tblTempUsageDetail_20' ) end [2025-04-04 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:31:22] Production.INFO: ==19572== Releasing lock... [2025-04-04 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:32:06 [end_date_ymd] => 2025-04-04 07:32:06 [RateCDR] => 1 ) [2025-04-04 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:32:06' and `end` < '2025-04-04 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:32:19] Production.INFO: count ==229 [2025-04-04 07:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:32:06 - End Time 2025-04-04 07:32:06 [2025-04-04 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831335', 'tblTempUsageDetail_20' ) start [2025-04-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831335', 'tblTempUsageDetail_20' ) end [2025-04-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831335', 'tblTempVendorCDR_20' ) start [2025-04-04 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831335', 'tblTempVendorCDR_20' ) end [2025-04-04 07:32:19] Production.INFO: ProcessCDR(1,14831335,1,1,2) [2025-04-04 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831335', 'tblTempUsageDetail_20' ) start [2025-04-04 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831335', 'tblTempUsageDetail_20' ) end [2025-04-04 07:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:32:23] Production.INFO: ==19646== Releasing lock... [2025-04-04 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:32:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:33:05 [end_date_ymd] => 2025-04-04 07:33:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:33:05' and `end` < '2025-04-04 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-04 07:33:18] Production.INFO: count ==234 [2025-04-04 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:33:05 - End Time 2025-04-04 07:33:05 [2025-04-04 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831340', 'tblTempUsageDetail_20' ) start [2025-04-04 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831340', 'tblTempUsageDetail_20' ) end [2025-04-04 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831340', 'tblTempVendorCDR_20' ) start [2025-04-04 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831340', 'tblTempVendorCDR_20' ) end [2025-04-04 07:33:18] Production.INFO: ProcessCDR(1,14831340,1,1,2) [2025-04-04 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831340', 'tblTempUsageDetail_20' ) start [2025-04-04 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831340', 'tblTempUsageDetail_20' ) end [2025-04-04 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:33:22] Production.INFO: ==19719== Releasing lock... [2025-04-04 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:34:06 [end_date_ymd] => 2025-04-04 07:34:06 [RateCDR] => 1 ) [2025-04-04 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:34:06' and `end` < '2025-04-04 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:34:18] Production.INFO: count ==233 [2025-04-04 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:34:06 - End Time 2025-04-04 07:34:06 [2025-04-04 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831345', 'tblTempUsageDetail_20' ) start [2025-04-04 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831345', 'tblTempUsageDetail_20' ) end [2025-04-04 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831345', 'tblTempVendorCDR_20' ) start [2025-04-04 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831345', 'tblTempVendorCDR_20' ) end [2025-04-04 07:34:18] Production.INFO: ProcessCDR(1,14831345,1,1,2) [2025-04-04 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831345', 'tblTempUsageDetail_20' ) start [2025-04-04 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831345', 'tblTempUsageDetail_20' ) end [2025-04-04 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:34:22] Production.INFO: ==19790== Releasing lock... [2025-04-04 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:34:22] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:35:05 [end_date_ymd] => 2025-04-04 07:35:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:35:05' and `end` < '2025-04-04 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-04 07:35:17] Production.INFO: count ==233 [2025-04-04 07:35:17] Production.ERROR: pbx CDR StartTime 2025-04-04 04:35:05 - End Time 2025-04-04 07:35:05 [2025-04-04 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831350', 'tblTempUsageDetail_20' ) start [2025-04-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831350', 'tblTempUsageDetail_20' ) end [2025-04-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831350', 'tblTempVendorCDR_20' ) start [2025-04-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831350', 'tblTempVendorCDR_20' ) end [2025-04-04 07:35:17] Production.INFO: ProcessCDR(1,14831350,1,1,2) [2025-04-04 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831350', 'tblTempUsageDetail_20' ) start [2025-04-04 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831350', 'tblTempUsageDetail_20' ) end [2025-04-04 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:35:21] Production.INFO: ==19864== Releasing lock... [2025-04-04 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:35:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:36:05 [end_date_ymd] => 2025-04-04 07:36:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:36:05' and `end` < '2025-04-04 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-04 07:36:18] Production.INFO: count ==232 [2025-04-04 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:36:05 - End Time 2025-04-04 07:36:05 [2025-04-04 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831355', 'tblTempUsageDetail_20' ) start [2025-04-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831355', 'tblTempUsageDetail_20' ) end [2025-04-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831355', 'tblTempVendorCDR_20' ) start [2025-04-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831355', 'tblTempVendorCDR_20' ) end [2025-04-04 07:36:18] Production.INFO: ProcessCDR(1,14831355,1,1,2) [2025-04-04 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831355', 'tblTempUsageDetail_20' ) start [2025-04-04 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831355', 'tblTempUsageDetail_20' ) end [2025-04-04 07:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:36:23] Production.INFO: ==19940== Releasing lock... [2025-04-04 07:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:36:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:37:05 [end_date_ymd] => 2025-04-04 07:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:37:05' and `end` < '2025-04-04 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-04 07:37:18] Production.INFO: count ==232 [2025-04-04 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:37:05 - End Time 2025-04-04 07:37:05 [2025-04-04 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831360', 'tblTempUsageDetail_20' ) start [2025-04-04 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831360', 'tblTempUsageDetail_20' ) end [2025-04-04 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831360', 'tblTempVendorCDR_20' ) start [2025-04-04 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831360', 'tblTempVendorCDR_20' ) end [2025-04-04 07:37:18] Production.INFO: ProcessCDR(1,14831360,1,1,2) [2025-04-04 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831360', 'tblTempUsageDetail_20' ) start [2025-04-04 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831360', 'tblTempUsageDetail_20' ) end [2025-04-04 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:37:21] Production.INFO: ==20016== Releasing lock... [2025-04-04 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:38:06 [end_date_ymd] => 2025-04-04 07:38:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:38:06' and `end` < '2025-04-04 07: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-04 07:38:18] Production.INFO: count ==232 [2025-04-04 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:38:06 - End Time 2025-04-04 07:38:06 [2025-04-04 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831365', 'tblTempUsageDetail_20' ) start [2025-04-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831365', 'tblTempUsageDetail_20' ) end [2025-04-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831365', 'tblTempVendorCDR_20' ) start [2025-04-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831365', 'tblTempVendorCDR_20' ) end [2025-04-04 07:38:18] Production.INFO: ProcessCDR(1,14831365,1,1,2) [2025-04-04 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831365', 'tblTempUsageDetail_20' ) start [2025-04-04 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831365', 'tblTempUsageDetail_20' ) end [2025-04-04 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:38:22] Production.INFO: ==20093== Releasing lock... [2025-04-04 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:39:06 [end_date_ymd] => 2025-04-04 07:39:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:39:06' and `end` < '2025-04-04 07: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-04 07:39:18] Production.INFO: count ==237 [2025-04-04 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:39:06 - End Time 2025-04-04 07:39:06 [2025-04-04 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831370', 'tblTempUsageDetail_20' ) start [2025-04-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831370', 'tblTempUsageDetail_20' ) end [2025-04-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831370', 'tblTempVendorCDR_20' ) start [2025-04-04 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831370', 'tblTempVendorCDR_20' ) end [2025-04-04 07:39:18] Production.INFO: ProcessCDR(1,14831370,1,1,2) [2025-04-04 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831370', 'tblTempUsageDetail_20' ) start [2025-04-04 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831370', 'tblTempUsageDetail_20' ) end [2025-04-04 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:39:22] Production.INFO: ==20171== Releasing lock... [2025-04-04 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:40:06 [end_date_ymd] => 2025-04-04 07:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 04:40:06' and `end` < '2025-04-04 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-04 07:40:19] Production.INFO: count ==237 [2025-04-04 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:40:06 - End Time 2025-04-04 07:40:06 [2025-04-04 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831375', 'tblTempUsageDetail_20' ) start [2025-04-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831375', 'tblTempUsageDetail_20' ) end [2025-04-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831375', 'tblTempVendorCDR_20' ) start [2025-04-04 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831375', 'tblTempVendorCDR_20' ) end [2025-04-04 07:40:19] Production.INFO: ProcessCDR(1,14831375,1,1,2) [2025-04-04 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831375', 'tblTempUsageDetail_20' ) start [2025-04-04 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831375', 'tblTempUsageDetail_20' ) end [2025-04-04 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:40:22] Production.INFO: ==20252== Releasing lock... [2025-04-04 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:41:05 [end_date_ymd] => 2025-04-04 07:41:05 [RateCDR] => 1 ) [2025-04-04 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:41:05' and `end` < '2025-04-04 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:41:18] Production.INFO: count ==237 [2025-04-04 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:41:05 - End Time 2025-04-04 07:41:05 [2025-04-04 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831381', 'tblTempUsageDetail_20' ) start [2025-04-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831381', 'tblTempUsageDetail_20' ) end [2025-04-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831381', 'tblTempVendorCDR_20' ) start [2025-04-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831381', 'tblTempVendorCDR_20' ) end [2025-04-04 07:41:18] Production.INFO: ProcessCDR(1,14831381,1,1,2) [2025-04-04 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831381', 'tblTempUsageDetail_20' ) start [2025-04-04 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831381', 'tblTempUsageDetail_20' ) end [2025-04-04 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:41:21] Production.INFO: ==20331== Releasing lock... [2025-04-04 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:42:05 [end_date_ymd] => 2025-04-04 07:42:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:42:05' and `end` < '2025-04-04 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-04 07:42:18] Production.INFO: count ==242 [2025-04-04 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:42:05 - End Time 2025-04-04 07:42:05 [2025-04-04 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831386', 'tblTempUsageDetail_20' ) start [2025-04-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831386', 'tblTempUsageDetail_20' ) end [2025-04-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831386', 'tblTempVendorCDR_20' ) start [2025-04-04 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831386', 'tblTempVendorCDR_20' ) end [2025-04-04 07:42:18] Production.INFO: ProcessCDR(1,14831386,1,1,2) [2025-04-04 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831386', 'tblTempUsageDetail_20' ) start [2025-04-04 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831386', 'tblTempUsageDetail_20' ) end [2025-04-04 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:42:21] Production.INFO: ==20408== Releasing lock... [2025-04-04 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:43:06 [end_date_ymd] => 2025-04-04 07:43:06 [RateCDR] => 1 ) [2025-04-04 07:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:43:06' and `end` < '2025-04-04 07:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:43:18] Production.INFO: count ==242 [2025-04-04 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:43:06 - End Time 2025-04-04 07:43:06 [2025-04-04 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831391', 'tblTempUsageDetail_20' ) start [2025-04-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831391', 'tblTempUsageDetail_20' ) end [2025-04-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831391', 'tblTempVendorCDR_20' ) start [2025-04-04 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831391', 'tblTempVendorCDR_20' ) end [2025-04-04 07:43:18] Production.INFO: ProcessCDR(1,14831391,1,1,2) [2025-04-04 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831391', 'tblTempUsageDetail_20' ) start [2025-04-04 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831391', 'tblTempUsageDetail_20' ) end [2025-04-04 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:43:22] Production.INFO: ==20485== Releasing lock... [2025-04-04 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:44:06 [end_date_ymd] => 2025-04-04 07:44:06 [RateCDR] => 1 ) [2025-04-04 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-04 04:44:06' and `end` < '2025-04-04 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-04 07:44:19] Production.INFO: count ==247 [2025-04-04 07:44:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:44:06 - End Time 2025-04-04 07:44:06 [2025-04-04 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831396', 'tblTempUsageDetail_20' ) start [2025-04-04 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831396', 'tblTempUsageDetail_20' ) end [2025-04-04 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831396', 'tblTempVendorCDR_20' ) start [2025-04-04 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831396', 'tblTempVendorCDR_20' ) end [2025-04-04 07:44:19] Production.INFO: ProcessCDR(1,14831396,1,1,2) [2025-04-04 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831396', 'tblTempUsageDetail_20' ) start [2025-04-04 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831396', 'tblTempUsageDetail_20' ) end [2025-04-04 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:44:22] Production.INFO: ==20560== Releasing lock... [2025-04-04 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:45:05 [end_date_ymd] => 2025-04-04 07:45:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:45:05' and `end` < '2025-04-04 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-04 07:45:17] Production.INFO: count ==247 [2025-04-04 07:45:17] Production.ERROR: pbx CDR StartTime 2025-04-04 04:45:05 - End Time 2025-04-04 07:45:05 [2025-04-04 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831401', 'tblTempUsageDetail_20' ) start [2025-04-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831401', 'tblTempUsageDetail_20' ) end [2025-04-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831401', 'tblTempVendorCDR_20' ) start [2025-04-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831401', 'tblTempVendorCDR_20' ) end [2025-04-04 07:45:17] Production.INFO: ProcessCDR(1,14831401,1,1,2) [2025-04-04 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831401', 'tblTempUsageDetail_20' ) start [2025-04-04 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831401', 'tblTempUsageDetail_20' ) end [2025-04-04 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:45:21] Production.INFO: ==20682== Releasing lock... [2025-04-04 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:46:05 [end_date_ymd] => 2025-04-04 07:46:05 [RateCDR] => 1 ) [2025-04-04 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:46:05' and `end` < '2025-04-04 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:46:18] Production.INFO: count ==252 [2025-04-04 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:46:05 - End Time 2025-04-04 07:46:05 [2025-04-04 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831406', 'tblTempUsageDetail_20' ) start [2025-04-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831406', 'tblTempUsageDetail_20' ) end [2025-04-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831406', 'tblTempVendorCDR_20' ) start [2025-04-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831406', 'tblTempVendorCDR_20' ) end [2025-04-04 07:46:18] Production.INFO: ProcessCDR(1,14831406,1,1,2) [2025-04-04 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831406', 'tblTempUsageDetail_20' ) start [2025-04-04 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831406', 'tblTempUsageDetail_20' ) end [2025-04-04 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:46:22] Production.INFO: ==20761== Releasing lock... [2025-04-04 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:47:05 [end_date_ymd] => 2025-04-04 07:47:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:47:05' and `end` < '2025-04-04 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-04 07:47:17] Production.INFO: count ==257 [2025-04-04 07:47:17] Production.ERROR: pbx CDR StartTime 2025-04-04 04:47:05 - End Time 2025-04-04 07:47:05 [2025-04-04 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831411', 'tblTempUsageDetail_20' ) start [2025-04-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831411', 'tblTempUsageDetail_20' ) end [2025-04-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831411', 'tblTempVendorCDR_20' ) start [2025-04-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831411', 'tblTempVendorCDR_20' ) end [2025-04-04 07:47:17] Production.INFO: ProcessCDR(1,14831411,1,1,2) [2025-04-04 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831411', 'tblTempUsageDetail_20' ) start [2025-04-04 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831411', 'tblTempUsageDetail_20' ) end [2025-04-04 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:47:21] Production.INFO: ==20839== Releasing lock... [2025-04-04 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:48:05 [end_date_ymd] => 2025-04-04 07:48:05 [RateCDR] => 1 ) [2025-04-04 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 04:48:05' and `end` < '2025-04-04 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 07:48:18] Production.INFO: count ==257 [2025-04-04 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:48:05 - End Time 2025-04-04 07:48:05 [2025-04-04 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831416', 'tblTempUsageDetail_20' ) start [2025-04-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831416', 'tblTempUsageDetail_20' ) end [2025-04-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831416', 'tblTempVendorCDR_20' ) start [2025-04-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831416', 'tblTempVendorCDR_20' ) end [2025-04-04 07:48:18] Production.INFO: ProcessCDR(1,14831416,1,1,2) [2025-04-04 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831416', 'tblTempUsageDetail_20' ) start [2025-04-04 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831416', 'tblTempUsageDetail_20' ) end [2025-04-04 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:48:21] Production.INFO: ==20916== Releasing lock... [2025-04-04 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:49:06 [end_date_ymd] => 2025-04-04 07:49:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:49:06' and `end` < '2025-04-04 07: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-04 07:49:19] Production.INFO: count ==259 [2025-04-04 07:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:49:06 - End Time 2025-04-04 07:49:06 [2025-04-04 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831421', 'tblTempUsageDetail_20' ) start [2025-04-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831421', 'tblTempUsageDetail_20' ) end [2025-04-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831421', 'tblTempVendorCDR_20' ) start [2025-04-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831421', 'tblTempVendorCDR_20' ) end [2025-04-04 07:49:19] Production.INFO: ProcessCDR(1,14831421,1,1,2) [2025-04-04 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831421', 'tblTempUsageDetail_20' ) start [2025-04-04 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831421', 'tblTempUsageDetail_20' ) end [2025-04-04 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:49:22] Production.INFO: ==20993== Releasing lock... [2025-04-04 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 07:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:50:07 [end_date_ymd] => 2025-04-04 07:50:07 [RateCDR] => 1 ) [2025-04-04 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-04 04:50:07' and `end` < '2025-04-04 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-04 07:50:19] Production.INFO: count ==276 [2025-04-04 07:50:20] Production.ERROR: pbx CDR StartTime 2025-04-04 04:50:07 - End Time 2025-04-04 07:50:07 [2025-04-04 07:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831427', 'tblTempUsageDetail_20' ) start [2025-04-04 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831427', 'tblTempUsageDetail_20' ) end [2025-04-04 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831427', 'tblTempVendorCDR_20' ) start [2025-04-04 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831427', 'tblTempVendorCDR_20' ) end [2025-04-04 07:50:20] Production.INFO: ProcessCDR(1,14831427,1,1,2) [2025-04-04 07:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831427', 'tblTempUsageDetail_20' ) start [2025-04-04 07:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831427', 'tblTempUsageDetail_20' ) end [2025-04-04 07:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:50:25] Production.INFO: ==21071== Releasing lock... [2025-04-04 07:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:50:25] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:51:06 [end_date_ymd] => 2025-04-04 07:51:06 [RateCDR] => 1 ) [2025-04-04 07: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-04 04:51:06' and `end` < '2025-04-04 07: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-04 07:51:18] Production.INFO: count ==278 [2025-04-04 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:51:06 - End Time 2025-04-04 07:51:06 [2025-04-04 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831432', 'tblTempUsageDetail_20' ) start [2025-04-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831432', 'tblTempUsageDetail_20' ) end [2025-04-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831432', 'tblTempVendorCDR_20' ) start [2025-04-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831432', 'tblTempVendorCDR_20' ) end [2025-04-04 07:51:18] Production.INFO: ProcessCDR(1,14831432,1,1,2) [2025-04-04 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831432', 'tblTempUsageDetail_20' ) start [2025-04-04 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831432', 'tblTempUsageDetail_20' ) end [2025-04-04 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:51:22] Production.INFO: ==21153== Releasing lock... [2025-04-04 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:51:22] Production.INFO: 31 MB #Memory Used# [2025-04-04 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:52:05 [end_date_ymd] => 2025-04-04 07:52:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:52:05' and `end` < '2025-04-04 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-04 07:52:18] Production.INFO: count ==277 [2025-04-04 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:52:05 - End Time 2025-04-04 07:52:05 [2025-04-04 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831437', 'tblTempUsageDetail_20' ) start [2025-04-04 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831437', 'tblTempUsageDetail_20' ) end [2025-04-04 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831437', 'tblTempVendorCDR_20' ) start [2025-04-04 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831437', 'tblTempVendorCDR_20' ) end [2025-04-04 07:52:18] Production.INFO: ProcessCDR(1,14831437,1,1,2) [2025-04-04 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831437', 'tblTempUsageDetail_20' ) start [2025-04-04 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831437', 'tblTempUsageDetail_20' ) end [2025-04-04 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:52:23] Production.INFO: ==21228== Releasing lock... [2025-04-04 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:52:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:53:05 [end_date_ymd] => 2025-04-04 07:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:53:05' and `end` < '2025-04-04 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-04 07:53:18] Production.INFO: count ==277 [2025-04-04 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:53:05 - End Time 2025-04-04 07:53:05 [2025-04-04 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831442', 'tblTempUsageDetail_20' ) start [2025-04-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831442', 'tblTempUsageDetail_20' ) end [2025-04-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831442', 'tblTempVendorCDR_20' ) start [2025-04-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831442', 'tblTempVendorCDR_20' ) end [2025-04-04 07:53:18] Production.INFO: ProcessCDR(1,14831442,1,1,2) [2025-04-04 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831442', 'tblTempUsageDetail_20' ) start [2025-04-04 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831442', 'tblTempUsageDetail_20' ) end [2025-04-04 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:53:22] Production.INFO: ==21307== Releasing lock... [2025-04-04 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:54:05 [end_date_ymd] => 2025-04-04 07:54:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:54:05' and `end` < '2025-04-04 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-04 07:54:18] Production.INFO: count ==272 [2025-04-04 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:54:05 - End Time 2025-04-04 07:54:05 [2025-04-04 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831447', 'tblTempUsageDetail_20' ) start [2025-04-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831447', 'tblTempUsageDetail_20' ) end [2025-04-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831447', 'tblTempVendorCDR_20' ) start [2025-04-04 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831447', 'tblTempVendorCDR_20' ) end [2025-04-04 07:54:18] Production.INFO: ProcessCDR(1,14831447,1,1,2) [2025-04-04 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831447', 'tblTempUsageDetail_20' ) start [2025-04-04 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831447', 'tblTempUsageDetail_20' ) end [2025-04-04 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:54:21] Production.INFO: ==21387== Releasing lock... [2025-04-04 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:55:06 [end_date_ymd] => 2025-04-04 07:55:06 [RateCDR] => 1 ) [2025-04-04 07: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 04:55:06' and `end` < '2025-04-04 07: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-04 07:55:19] Production.INFO: count ==275 [2025-04-04 07:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 04:55:06 - End Time 2025-04-04 07:55:06 [2025-04-04 07:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831452', 'tblTempUsageDetail_20' ) start [2025-04-04 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831452', 'tblTempUsageDetail_20' ) end [2025-04-04 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831452', 'tblTempVendorCDR_20' ) start [2025-04-04 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831452', 'tblTempVendorCDR_20' ) end [2025-04-04 07:55:19] Production.INFO: ProcessCDR(1,14831452,1,1,2) [2025-04-04 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831452', 'tblTempUsageDetail_20' ) start [2025-04-04 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831452', 'tblTempUsageDetail_20' ) end [2025-04-04 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:55:22] Production.INFO: ==21464== Releasing lock... [2025-04-04 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-04 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:56:05 [end_date_ymd] => 2025-04-04 07:56:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:56:05' and `end` < '2025-04-04 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-04 07:56:18] Production.INFO: count ==279 [2025-04-04 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:56:05 - End Time 2025-04-04 07:56:05 [2025-04-04 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831457', 'tblTempUsageDetail_20' ) start [2025-04-04 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831457', 'tblTempUsageDetail_20' ) end [2025-04-04 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831457', 'tblTempVendorCDR_20' ) start [2025-04-04 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831457', 'tblTempVendorCDR_20' ) end [2025-04-04 07:56:18] Production.INFO: ProcessCDR(1,14831457,1,1,2) [2025-04-04 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831457', 'tblTempUsageDetail_20' ) start [2025-04-04 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831457', 'tblTempUsageDetail_20' ) end [2025-04-04 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:56:23] Production.INFO: ==21541== Releasing lock... [2025-04-04 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:57:06 [end_date_ymd] => 2025-04-04 07:57:06 [RateCDR] => 1 ) [2025-04-04 07: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-04 04:57:06' and `end` < '2025-04-04 07: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-04 07:57:18] Production.INFO: count ==280 [2025-04-04 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:57:06 - End Time 2025-04-04 07:57:06 [2025-04-04 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831462', 'tblTempUsageDetail_20' ) start [2025-04-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831462', 'tblTempUsageDetail_20' ) end [2025-04-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831462', 'tblTempVendorCDR_20' ) start [2025-04-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831462', 'tblTempVendorCDR_20' ) end [2025-04-04 07:57:18] Production.INFO: ProcessCDR(1,14831462,1,1,2) [2025-04-04 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831462', 'tblTempUsageDetail_20' ) start [2025-04-04 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831462', 'tblTempUsageDetail_20' ) end [2025-04-04 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:57:23] Production.INFO: ==21620== Releasing lock... [2025-04-04 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:57:23] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:58:05 [end_date_ymd] => 2025-04-04 07:58:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:58:05' and `end` < '2025-04-04 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-04 07:58:18] Production.INFO: count ==280 [2025-04-04 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:58:05 - End Time 2025-04-04 07:58:05 [2025-04-04 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831467', 'tblTempUsageDetail_20' ) start [2025-04-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831467', 'tblTempUsageDetail_20' ) end [2025-04-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831467', 'tblTempVendorCDR_20' ) start [2025-04-04 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831467', 'tblTempVendorCDR_20' ) end [2025-04-04 07:58:18] Production.INFO: ProcessCDR(1,14831467,1,1,2) [2025-04-04 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831467', 'tblTempUsageDetail_20' ) start [2025-04-04 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831467', 'tblTempUsageDetail_20' ) end [2025-04-04 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:58:21] Production.INFO: ==21699== Releasing lock... [2025-04-04 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-04 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 04:59:05 [end_date_ymd] => 2025-04-04 07:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 04:59:05' and `end` < '2025-04-04 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-04 07:59:18] Production.INFO: count ==275 [2025-04-04 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-04 04:59:05 - End Time 2025-04-04 07:59:05 [2025-04-04 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831472', 'tblTempUsageDetail_20' ) start [2025-04-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831472', 'tblTempUsageDetail_20' ) end [2025-04-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831472', 'tblTempVendorCDR_20' ) start [2025-04-04 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831472', 'tblTempVendorCDR_20' ) end [2025-04-04 07:59:18] Production.INFO: ProcessCDR(1,14831472,1,1,2) [2025-04-04 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831472', 'tblTempUsageDetail_20' ) start [2025-04-04 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831472', 'tblTempUsageDetail_20' ) end [2025-04-04 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 07:59:21] Production.INFO: ==21776== Releasing lock... [2025-04-04 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 07:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:00:07 [end_date_ymd] => 2025-04-04 08:00:07 [RateCDR] => 1 ) [2025-04-04 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:00:07' and `end` < '2025-04-04 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:00:19] Production.INFO: count ==284 [2025-04-04 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:00:07 - End Time 2025-04-04 08:00:07 [2025-04-04 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831478', 'tblTempUsageDetail_20' ) start [2025-04-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831478', 'tblTempUsageDetail_20' ) end [2025-04-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831478', 'tblTempVendorCDR_20' ) start [2025-04-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831478', 'tblTempVendorCDR_20' ) end [2025-04-04 08:00:19] Production.INFO: ProcessCDR(1,14831478,1,1,2) [2025-04-04 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831478', 'tblTempUsageDetail_20' ) start [2025-04-04 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831478', 'tblTempUsageDetail_20' ) end [2025-04-04 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:00:23] Production.INFO: ==21894== Releasing lock... [2025-04-04 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-04 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:01:05 [end_date_ymd] => 2025-04-04 08:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:01:05' and `end` < '2025-04-04 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-04 08:01:18] Production.INFO: count ==284 [2025-04-04 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:01:05 - End Time 2025-04-04 08:01:05 [2025-04-04 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831483', 'tblTempUsageDetail_20' ) start [2025-04-04 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831483', 'tblTempUsageDetail_20' ) end [2025-04-04 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831483', 'tblTempVendorCDR_20' ) start [2025-04-04 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831483', 'tblTempVendorCDR_20' ) end [2025-04-04 08:01:18] Production.INFO: ProcessCDR(1,14831483,1,1,2) [2025-04-04 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831483', 'tblTempUsageDetail_20' ) start [2025-04-04 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831483', 'tblTempUsageDetail_20' ) end [2025-04-04 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:01:21] Production.INFO: ==21988== Releasing lock... [2025-04-04 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:02:05 [end_date_ymd] => 2025-04-04 08:02:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:02:05' and `end` < '2025-04-04 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-04 08:02:18] Production.INFO: count ==285 [2025-04-04 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:02:05 - End Time 2025-04-04 08:02:05 [2025-04-04 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831488', 'tblTempUsageDetail_20' ) start [2025-04-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831488', 'tblTempUsageDetail_20' ) end [2025-04-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831488', 'tblTempVendorCDR_20' ) start [2025-04-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831488', 'tblTempVendorCDR_20' ) end [2025-04-04 08:02:18] Production.INFO: ProcessCDR(1,14831488,1,1,2) [2025-04-04 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831488', 'tblTempUsageDetail_20' ) start [2025-04-04 08:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831488', 'tblTempUsageDetail_20' ) end [2025-04-04 08:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:02:24] Production.INFO: ==22065== Releasing lock... [2025-04-04 08:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:02:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:03:06 [end_date_ymd] => 2025-04-04 08:03:06 [RateCDR] => 1 ) [2025-04-04 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:03:06' and `end` < '2025-04-04 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:03:19] Production.INFO: count ==282 [2025-04-04 08:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:03:06 - End Time 2025-04-04 08:03:06 [2025-04-04 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831493', 'tblTempUsageDetail_20' ) start [2025-04-04 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831493', 'tblTempUsageDetail_20' ) end [2025-04-04 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831493', 'tblTempVendorCDR_20' ) start [2025-04-04 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831493', 'tblTempVendorCDR_20' ) end [2025-04-04 08:03:19] Production.INFO: ProcessCDR(1,14831493,1,1,2) [2025-04-04 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831493', 'tblTempUsageDetail_20' ) start [2025-04-04 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831493', 'tblTempUsageDetail_20' ) end [2025-04-04 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:03:23] Production.INFO: ==22142== Releasing lock... [2025-04-04 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:03:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:04:05 [end_date_ymd] => 2025-04-04 08:04:05 [RateCDR] => 1 ) [2025-04-04 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:04:05' and `end` < '2025-04-04 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:04:18] Production.INFO: count ==285 [2025-04-04 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:04:05 - End Time 2025-04-04 08:04:05 [2025-04-04 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831498', 'tblTempUsageDetail_20' ) start [2025-04-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831498', 'tblTempUsageDetail_20' ) end [2025-04-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831498', 'tblTempVendorCDR_20' ) start [2025-04-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831498', 'tblTempVendorCDR_20' ) end [2025-04-04 08:04:18] Production.INFO: ProcessCDR(1,14831498,1,1,2) [2025-04-04 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831498', 'tblTempUsageDetail_20' ) start [2025-04-04 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831498', 'tblTempUsageDetail_20' ) end [2025-04-04 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:04:24] Production.INFO: ==22229== Releasing lock... [2025-04-04 08:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:04:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:05:06 [end_date_ymd] => 2025-04-04 08:05:06 [RateCDR] => 1 ) [2025-04-04 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:05:06' and `end` < '2025-04-04 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:05:19] Production.INFO: count ==299 [2025-04-04 08:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:05:06 - End Time 2025-04-04 08:05:06 [2025-04-04 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831503', 'tblTempUsageDetail_20' ) start [2025-04-04 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831503', 'tblTempUsageDetail_20' ) end [2025-04-04 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831503', 'tblTempVendorCDR_20' ) start [2025-04-04 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831503', 'tblTempVendorCDR_20' ) end [2025-04-04 08:05:19] Production.INFO: ProcessCDR(1,14831503,1,1,2) [2025-04-04 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831503', 'tblTempUsageDetail_20' ) start [2025-04-04 08:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831503', 'tblTempUsageDetail_20' ) end [2025-04-04 08:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:05:25] Production.INFO: ==22307== Releasing lock... [2025-04-04 08:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:05:25] Production.INFO: 31.25 MB #Memory Used# [2025-04-04 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:06:06 [end_date_ymd] => 2025-04-04 08:06:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:06:06' and `end` < '2025-04-04 08: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-04 08:06:19] Production.INFO: count ==296 [2025-04-04 08:06:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:06:06 - End Time 2025-04-04 08:06:06 [2025-04-04 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831508', 'tblTempUsageDetail_20' ) start [2025-04-04 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831508', 'tblTempUsageDetail_20' ) end [2025-04-04 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831508', 'tblTempVendorCDR_20' ) start [2025-04-04 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831508', 'tblTempVendorCDR_20' ) end [2025-04-04 08:06:19] Production.INFO: ProcessCDR(1,14831508,1,1,2) [2025-04-04 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831508', 'tblTempUsageDetail_20' ) start [2025-04-04 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831508', 'tblTempUsageDetail_20' ) end [2025-04-04 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:06:23] Production.INFO: ==22392== Releasing lock... [2025-04-04 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:06:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-04 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:07:05 [end_date_ymd] => 2025-04-04 08:07:05 [RateCDR] => 1 ) [2025-04-04 08:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:07:05' and `end` < '2025-04-04 08: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-04 08:07:18] Production.INFO: count ==318 [2025-04-04 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:07:05 - End Time 2025-04-04 08:07:05 [2025-04-04 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831513', 'tblTempUsageDetail_20' ) start [2025-04-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831513', 'tblTempUsageDetail_20' ) end [2025-04-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831513', 'tblTempVendorCDR_20' ) start [2025-04-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831513', 'tblTempVendorCDR_20' ) end [2025-04-04 08:07:18] Production.INFO: ProcessCDR(1,14831513,1,1,2) [2025-04-04 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831513', 'tblTempUsageDetail_20' ) start [2025-04-04 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831513', 'tblTempUsageDetail_20' ) end [2025-04-04 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:07:24] Production.INFO: ==22470== Releasing lock... [2025-04-04 08:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:07:24] Production.INFO: 31 MB #Memory Used# [2025-04-04 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:08:06 [end_date_ymd] => 2025-04-04 08:08:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:08:06' and `end` < '2025-04-04 08: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-04 08:08:19] Production.INFO: count ==323 [2025-04-04 08:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:08:06 - End Time 2025-04-04 08:08:06 [2025-04-04 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831518', 'tblTempUsageDetail_20' ) start [2025-04-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831518', 'tblTempUsageDetail_20' ) end [2025-04-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831518', 'tblTempVendorCDR_20' ) start [2025-04-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831518', 'tblTempVendorCDR_20' ) end [2025-04-04 08:08:19] Production.INFO: ProcessCDR(1,14831518,1,1,2) [2025-04-04 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831518', 'tblTempUsageDetail_20' ) start [2025-04-04 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831518', 'tblTempUsageDetail_20' ) end [2025-04-04 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:08:24] Production.INFO: ==22549== Releasing lock... [2025-04-04 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:08:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-04 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:09:05 [end_date_ymd] => 2025-04-04 08:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:09:05' and `end` < '2025-04-04 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-04 08:09:18] Production.INFO: count ==323 [2025-04-04 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:09:05 - End Time 2025-04-04 08:09:05 [2025-04-04 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831523', 'tblTempUsageDetail_20' ) start [2025-04-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831523', 'tblTempUsageDetail_20' ) end [2025-04-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831523', 'tblTempVendorCDR_20' ) start [2025-04-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831523', 'tblTempVendorCDR_20' ) end [2025-04-04 08:09:18] Production.INFO: ProcessCDR(1,14831523,1,1,2) [2025-04-04 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831523', 'tblTempUsageDetail_20' ) start [2025-04-04 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831523', 'tblTempUsageDetail_20' ) end [2025-04-04 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:09:22] Production.INFO: ==22627== Releasing lock... [2025-04-04 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:09:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-04 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:10:06 [end_date_ymd] => 2025-04-04 08:10:06 [RateCDR] => 1 ) [2025-04-04 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:10:06' and `end` < '2025-04-04 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:10:19] Production.INFO: count ==326 [2025-04-04 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:10:06 - End Time 2025-04-04 08:10:06 [2025-04-04 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831529', 'tblTempUsageDetail_20' ) start [2025-04-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831529', 'tblTempUsageDetail_20' ) end [2025-04-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831529', 'tblTempVendorCDR_20' ) start [2025-04-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831529', 'tblTempVendorCDR_20' ) end [2025-04-04 08:10:19] Production.INFO: ProcessCDR(1,14831529,1,1,2) [2025-04-04 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831529', 'tblTempUsageDetail_20' ) start [2025-04-04 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831529', 'tblTempUsageDetail_20' ) end [2025-04-04 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:10:24] Production.INFO: ==22709== Releasing lock... [2025-04-04 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:10:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-04 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:11:05 [end_date_ymd] => 2025-04-04 08:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:11:05' and `end` < '2025-04-04 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-04 08:11:18] Production.INFO: count ==338 [2025-04-04 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:11:05 - End Time 2025-04-04 08:11:05 [2025-04-04 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831534', 'tblTempUsageDetail_20' ) start [2025-04-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831534', 'tblTempUsageDetail_20' ) end [2025-04-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831534', 'tblTempVendorCDR_20' ) start [2025-04-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831534', 'tblTempVendorCDR_20' ) end [2025-04-04 08:11:18] Production.INFO: ProcessCDR(1,14831534,1,1,2) [2025-04-04 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831534', 'tblTempUsageDetail_20' ) start [2025-04-04 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831534', 'tblTempUsageDetail_20' ) end [2025-04-04 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:11:21] Production.INFO: ==22787== Releasing lock... [2025-04-04 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:12:06 [end_date_ymd] => 2025-04-04 08:12:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:12:06' and `end` < '2025-04-04 08: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-04 08:12:18] Production.INFO: count ==338 [2025-04-04 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:12:06 - End Time 2025-04-04 08:12:06 [2025-04-04 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831539', 'tblTempUsageDetail_20' ) start [2025-04-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831539', 'tblTempUsageDetail_20' ) end [2025-04-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831539', 'tblTempVendorCDR_20' ) start [2025-04-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831539', 'tblTempVendorCDR_20' ) end [2025-04-04 08:12:18] Production.INFO: ProcessCDR(1,14831539,1,1,2) [2025-04-04 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831539', 'tblTempUsageDetail_20' ) start [2025-04-04 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831539', 'tblTempUsageDetail_20' ) end [2025-04-04 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:12:22] Production.INFO: ==22866== Releasing lock... [2025-04-04 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:13:05 [end_date_ymd] => 2025-04-04 08:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:13:05' and `end` < '2025-04-04 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-04 08:13:18] Production.INFO: count ==344 [2025-04-04 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:13:05 - End Time 2025-04-04 08:13:05 [2025-04-04 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831544', 'tblTempUsageDetail_20' ) start [2025-04-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831544', 'tblTempUsageDetail_20' ) end [2025-04-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831544', 'tblTempVendorCDR_20' ) start [2025-04-04 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831544', 'tblTempVendorCDR_20' ) end [2025-04-04 08:13:18] Production.INFO: ProcessCDR(1,14831544,1,1,2) [2025-04-04 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831544', 'tblTempUsageDetail_20' ) start [2025-04-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831544', 'tblTempUsageDetail_20' ) end [2025-04-04 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:13:22] Production.INFO: ==22943== Releasing lock... [2025-04-04 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-04 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:14:06 [end_date_ymd] => 2025-04-04 08:14:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:14:06' and `end` < '2025-04-04 08: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-04 08:14:18] Production.INFO: count ==353 [2025-04-04 08:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:14:06 - End Time 2025-04-04 08:14:06 [2025-04-04 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831549', 'tblTempUsageDetail_20' ) start [2025-04-04 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831549', 'tblTempUsageDetail_20' ) end [2025-04-04 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831549', 'tblTempVendorCDR_20' ) start [2025-04-04 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831549', 'tblTempVendorCDR_20' ) end [2025-04-04 08:14:19] Production.INFO: ProcessCDR(1,14831549,1,1,2) [2025-04-04 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831549', 'tblTempUsageDetail_20' ) start [2025-04-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831549', 'tblTempUsageDetail_20' ) end [2025-04-04 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:14:22] Production.INFO: ==23025== Releasing lock... [2025-04-04 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-04 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:15:05 [end_date_ymd] => 2025-04-04 08:15:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:15:05' and `end` < '2025-04-04 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-04 08:15:18] Production.INFO: count ==354 [2025-04-04 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:15:05 - End Time 2025-04-04 08:15:05 [2025-04-04 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831554', 'tblTempUsageDetail_20' ) start [2025-04-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831554', 'tblTempUsageDetail_20' ) end [2025-04-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831554', 'tblTempVendorCDR_20' ) start [2025-04-04 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831554', 'tblTempVendorCDR_20' ) end [2025-04-04 08:15:18] Production.INFO: ProcessCDR(1,14831554,1,1,2) [2025-04-04 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831554', 'tblTempUsageDetail_20' ) start [2025-04-04 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831554', 'tblTempUsageDetail_20' ) end [2025-04-04 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:15:23] Production.INFO: ==23141== Releasing lock... [2025-04-04 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:15:23] Production.INFO: 31 MB #Memory Used# [2025-04-04 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:16:06 [end_date_ymd] => 2025-04-04 08:16:06 [RateCDR] => 1 ) [2025-04-04 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-04 05:16:06' and `end` < '2025-04-04 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-04 08:16:18] Production.INFO: count ==364 [2025-04-04 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:16:06 - End Time 2025-04-04 08:16:06 [2025-04-04 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831559', 'tblTempUsageDetail_20' ) start [2025-04-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831559', 'tblTempUsageDetail_20' ) end [2025-04-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831559', 'tblTempVendorCDR_20' ) start [2025-04-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831559', 'tblTempVendorCDR_20' ) end [2025-04-04 08:16:18] Production.INFO: ProcessCDR(1,14831559,1,1,2) [2025-04-04 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831559', 'tblTempUsageDetail_20' ) start [2025-04-04 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831559', 'tblTempUsageDetail_20' ) end [2025-04-04 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:16:22] Production.INFO: ==23215== Releasing lock... [2025-04-04 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-04 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:17:05 [end_date_ymd] => 2025-04-04 08:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:17:05' and `end` < '2025-04-04 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-04 08:17:18] Production.INFO: count ==365 [2025-04-04 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:17:05 - End Time 2025-04-04 08:17:05 [2025-04-04 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831564', 'tblTempUsageDetail_20' ) start [2025-04-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831564', 'tblTempUsageDetail_20' ) end [2025-04-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831564', 'tblTempVendorCDR_20' ) start [2025-04-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831564', 'tblTempVendorCDR_20' ) end [2025-04-04 08:17:18] Production.INFO: ProcessCDR(1,14831564,1,1,2) [2025-04-04 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831564', 'tblTempUsageDetail_20' ) start [2025-04-04 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831564', 'tblTempUsageDetail_20' ) end [2025-04-04 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:17:23] Production.INFO: ==23286== Releasing lock... [2025-04-04 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:17:23] Production.INFO: 31 MB #Memory Used# [2025-04-04 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:18:06 [end_date_ymd] => 2025-04-04 08:18:06 [RateCDR] => 1 ) [2025-04-04 08:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:18:06' and `end` < '2025-04-04 08:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:18:19] Production.INFO: count ==371 [2025-04-04 08:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:18:06 - End Time 2025-04-04 08:18:06 [2025-04-04 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831569', 'tblTempUsageDetail_20' ) start [2025-04-04 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831569', 'tblTempUsageDetail_20' ) end [2025-04-04 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831569', 'tblTempVendorCDR_20' ) start [2025-04-04 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831569', 'tblTempVendorCDR_20' ) end [2025-04-04 08:18:19] Production.INFO: ProcessCDR(1,14831569,1,1,2) [2025-04-04 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831569', 'tblTempUsageDetail_20' ) start [2025-04-04 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831569', 'tblTempUsageDetail_20' ) end [2025-04-04 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:18:22] Production.INFO: ==23363== Releasing lock... [2025-04-04 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:18:22] Production.INFO: 31 MB #Memory Used# [2025-04-04 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:19:05 [end_date_ymd] => 2025-04-04 08:19:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:19:05' and `end` < '2025-04-04 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-04 08:19:18] Production.INFO: count ==375 [2025-04-04 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:19:05 - End Time 2025-04-04 08:19:05 [2025-04-04 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831574', 'tblTempUsageDetail_20' ) start [2025-04-04 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831574', 'tblTempUsageDetail_20' ) end [2025-04-04 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831574', 'tblTempVendorCDR_20' ) start [2025-04-04 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831574', 'tblTempVendorCDR_20' ) end [2025-04-04 08:19:18] Production.INFO: ProcessCDR(1,14831574,1,1,2) [2025-04-04 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831574', 'tblTempUsageDetail_20' ) start [2025-04-04 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831574', 'tblTempUsageDetail_20' ) end [2025-04-04 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:19:21] Production.INFO: ==23442== Releasing lock... [2025-04-04 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:19:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-04 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:20:06 [end_date_ymd] => 2025-04-04 08:20:06 [RateCDR] => 1 ) [2025-04-04 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:20:06' and `end` < '2025-04-04 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:20:19] Production.INFO: count ==403 [2025-04-04 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:20:06 - End Time 2025-04-04 08:20:06 [2025-04-04 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831579', 'tblTempUsageDetail_20' ) start [2025-04-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831579', 'tblTempUsageDetail_20' ) end [2025-04-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831579', 'tblTempVendorCDR_20' ) start [2025-04-04 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831579', 'tblTempVendorCDR_20' ) end [2025-04-04 08:20:19] Production.INFO: ProcessCDR(1,14831579,1,1,2) [2025-04-04 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831579', 'tblTempUsageDetail_20' ) start [2025-04-04 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831579', 'tblTempUsageDetail_20' ) end [2025-04-04 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:20:24] Production.INFO: ==23524== Releasing lock... [2025-04-04 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:20:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-04 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:21:06 [end_date_ymd] => 2025-04-04 08:21:06 [RateCDR] => 1 ) [2025-04-04 08: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-04 05:21:06' and `end` < '2025-04-04 08: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-04 08:21:18] Production.INFO: count ==426 [2025-04-04 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:21:06 - End Time 2025-04-04 08:21:06 [2025-04-04 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831585', 'tblTempUsageDetail_20' ) start [2025-04-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831585', 'tblTempUsageDetail_20' ) end [2025-04-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831585', 'tblTempVendorCDR_20' ) start [2025-04-04 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831585', 'tblTempVendorCDR_20' ) end [2025-04-04 08:21:18] Production.INFO: ProcessCDR(1,14831585,1,1,2) [2025-04-04 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831585', 'tblTempUsageDetail_20' ) start [2025-04-04 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831585', 'tblTempUsageDetail_20' ) end [2025-04-04 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:21:24] Production.INFO: ==23604== Releasing lock... [2025-04-04 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:21:24] Production.INFO: 32 MB #Memory Used# [2025-04-04 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:22:06 [end_date_ymd] => 2025-04-04 08:22:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:22:06' and `end` < '2025-04-04 08: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-04 08:22:19] Production.INFO: count ==447 [2025-04-04 08:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:22:06 - End Time 2025-04-04 08:22:06 [2025-04-04 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831590', 'tblTempUsageDetail_20' ) start [2025-04-04 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831590', 'tblTempUsageDetail_20' ) end [2025-04-04 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831590', 'tblTempVendorCDR_20' ) start [2025-04-04 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831590', 'tblTempVendorCDR_20' ) end [2025-04-04 08:22:19] Production.INFO: ProcessCDR(1,14831590,1,1,2) [2025-04-04 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831590', 'tblTempUsageDetail_20' ) start [2025-04-04 08:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831590', 'tblTempUsageDetail_20' ) end [2025-04-04 08:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:22:25] Production.INFO: ==23682== Releasing lock... [2025-04-04 08:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:22:25] Production.INFO: 32 MB #Memory Used# [2025-04-04 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:23:06 [end_date_ymd] => 2025-04-04 08:23:06 [RateCDR] => 1 ) [2025-04-04 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-04 05:23:06' and `end` < '2025-04-04 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-04 08:23:18] Production.INFO: count ==449 [2025-04-04 08:23:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:23:06 - End Time 2025-04-04 08:23:06 [2025-04-04 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831595', 'tblTempUsageDetail_20' ) start [2025-04-04 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831595', 'tblTempUsageDetail_20' ) end [2025-04-04 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831595', 'tblTempVendorCDR_20' ) start [2025-04-04 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831595', 'tblTempVendorCDR_20' ) end [2025-04-04 08:23:19] Production.INFO: ProcessCDR(1,14831595,1,1,2) [2025-04-04 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831595', 'tblTempUsageDetail_20' ) start [2025-04-04 08:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831595', 'tblTempUsageDetail_20' ) end [2025-04-04 08:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:23:24] Production.INFO: ==23761== Releasing lock... [2025-04-04 08:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:23:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:24:06 [end_date_ymd] => 2025-04-04 08:24:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:24:06' and `end` < '2025-04-04 08: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-04 08:24:19] Production.INFO: count ==455 [2025-04-04 08:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:24:06 - End Time 2025-04-04 08:24:06 [2025-04-04 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831600', 'tblTempUsageDetail_20' ) start [2025-04-04 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831600', 'tblTempUsageDetail_20' ) end [2025-04-04 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831600', 'tblTempVendorCDR_20' ) start [2025-04-04 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831600', 'tblTempVendorCDR_20' ) end [2025-04-04 08:24:19] Production.INFO: ProcessCDR(1,14831600,1,1,2) [2025-04-04 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831600', 'tblTempUsageDetail_20' ) start [2025-04-04 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831600', 'tblTempUsageDetail_20' ) end [2025-04-04 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:24:23] Production.INFO: ==23837== Releasing lock... [2025-04-04 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:24:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:25:05 [end_date_ymd] => 2025-04-04 08:25:05 [RateCDR] => 1 ) [2025-04-04 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:25:05' and `end` < '2025-04-04 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:25:17] Production.INFO: count ==464 [2025-04-04 08:25:17] Production.ERROR: pbx CDR StartTime 2025-04-04 05:25:05 - End Time 2025-04-04 08:25:05 [2025-04-04 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831605', 'tblTempUsageDetail_20' ) start [2025-04-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831605', 'tblTempUsageDetail_20' ) end [2025-04-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831605', 'tblTempVendorCDR_20' ) start [2025-04-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831605', 'tblTempVendorCDR_20' ) end [2025-04-04 08:25:18] Production.INFO: ProcessCDR(1,14831605,1,1,2) [2025-04-04 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831605', 'tblTempUsageDetail_20' ) start [2025-04-04 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831605', 'tblTempUsageDetail_20' ) end [2025-04-04 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:25:23] Production.INFO: ==23911== Releasing lock... [2025-04-04 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:25:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-04 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:26:06 [end_date_ymd] => 2025-04-04 08:26:06 [RateCDR] => 1 ) [2025-04-04 08: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-04 05:26:06' and `end` < '2025-04-04 08: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-04 08:26:18] Production.INFO: count ==464 [2025-04-04 08:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:26:06 - End Time 2025-04-04 08:26:06 [2025-04-04 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831610', 'tblTempUsageDetail_20' ) start [2025-04-04 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831610', 'tblTempUsageDetail_20' ) end [2025-04-04 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831610', 'tblTempVendorCDR_20' ) start [2025-04-04 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831610', 'tblTempVendorCDR_20' ) end [2025-04-04 08:26:19] Production.INFO: ProcessCDR(1,14831610,1,1,2) [2025-04-04 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831610', 'tblTempUsageDetail_20' ) start [2025-04-04 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831610', 'tblTempUsageDetail_20' ) end [2025-04-04 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:26:22] Production.INFO: ==23987== Releasing lock... [2025-04-04 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-04 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:27:05 [end_date_ymd] => 2025-04-04 08:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:27:05' and `end` < '2025-04-04 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-04 08:27:18] Production.INFO: count ==471 [2025-04-04 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:27:05 - End Time 2025-04-04 08:27:05 [2025-04-04 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831615', 'tblTempUsageDetail_20' ) start [2025-04-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831615', 'tblTempUsageDetail_20' ) end [2025-04-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831615', 'tblTempVendorCDR_20' ) start [2025-04-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831615', 'tblTempVendorCDR_20' ) end [2025-04-04 08:27:18] Production.INFO: ProcessCDR(1,14831615,1,1,2) [2025-04-04 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831615', 'tblTempUsageDetail_20' ) start [2025-04-04 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831615', 'tblTempUsageDetail_20' ) end [2025-04-04 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:27:22] Production.INFO: ==24065== Releasing lock... [2025-04-04 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:27:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-04 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:28:06 [end_date_ymd] => 2025-04-04 08:28:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:28:06' and `end` < '2025-04-04 08: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-04 08:28:19] Production.INFO: count ==478 [2025-04-04 08:28:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:28:06 - End Time 2025-04-04 08:28:06 [2025-04-04 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831620', 'tblTempUsageDetail_20' ) start [2025-04-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831620', 'tblTempUsageDetail_20' ) end [2025-04-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831620', 'tblTempVendorCDR_20' ) start [2025-04-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831620', 'tblTempVendorCDR_20' ) end [2025-04-04 08:28:19] Production.INFO: ProcessCDR(1,14831620,1,1,2) [2025-04-04 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831620', 'tblTempUsageDetail_20' ) start [2025-04-04 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831620', 'tblTempUsageDetail_20' ) end [2025-04-04 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:28:24] Production.INFO: ==24144== Releasing lock... [2025-04-04 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:28:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:29:06 [end_date_ymd] => 2025-04-04 08:29:06 [RateCDR] => 1 ) [2025-04-04 08: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-04 05:29:06' and `end` < '2025-04-04 08: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-04 08:29:18] Production.INFO: count ==483 [2025-04-04 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:29:06 - End Time 2025-04-04 08:29:06 [2025-04-04 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831625', 'tblTempUsageDetail_20' ) start [2025-04-04 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831625', 'tblTempUsageDetail_20' ) end [2025-04-04 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831625', 'tblTempVendorCDR_20' ) start [2025-04-04 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831625', 'tblTempVendorCDR_20' ) end [2025-04-04 08:29:19] Production.INFO: ProcessCDR(1,14831625,1,1,2) [2025-04-04 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831625', 'tblTempUsageDetail_20' ) start [2025-04-04 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831625', 'tblTempUsageDetail_20' ) end [2025-04-04 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:29:22] Production.INFO: ==24223== Releasing lock... [2025-04-04 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:29:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 08:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:30:07 [end_date_ymd] => 2025-04-04 08:30:07 [RateCDR] => 1 ) [2025-04-04 08:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:30:07' and `end` < '2025-04-04 08:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:30:19] Production.INFO: count ==503 [2025-04-04 08:30:20] Production.ERROR: pbx CDR StartTime 2025-04-04 05:30:07 - End Time 2025-04-04 08:30:07 [2025-04-04 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831631', 'tblTempUsageDetail_20' ) start [2025-04-04 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831631', 'tblTempUsageDetail_20' ) end [2025-04-04 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831631', 'tblTempVendorCDR_20' ) start [2025-04-04 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831631', 'tblTempVendorCDR_20' ) end [2025-04-04 08:30:20] Production.INFO: ProcessCDR(1,14831631,1,1,2) [2025-04-04 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831631', 'tblTempUsageDetail_20' ) start [2025-04-04 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831631', 'tblTempUsageDetail_20' ) end [2025-04-04 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:30:23] Production.INFO: ==24302== Releasing lock... [2025-04-04 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:31:05 [end_date_ymd] => 2025-04-04 08:31:05 [RateCDR] => 1 ) [2025-04-04 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:31:05' and `end` < '2025-04-04 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:31:18] Production.INFO: count ==527 [2025-04-04 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:31:05 - End Time 2025-04-04 08:31:05 [2025-04-04 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831636', 'tblTempUsageDetail_20' ) start [2025-04-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831636', 'tblTempUsageDetail_20' ) end [2025-04-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831636', 'tblTempVendorCDR_20' ) start [2025-04-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831636', 'tblTempVendorCDR_20' ) end [2025-04-04 08:31:18] Production.INFO: ProcessCDR(1,14831636,1,1,2) [2025-04-04 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831636', 'tblTempUsageDetail_20' ) start [2025-04-04 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831636', 'tblTempUsageDetail_20' ) end [2025-04-04 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:31:23] Production.INFO: ==24420== Releasing lock... [2025-04-04 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:31:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:32:05 [end_date_ymd] => 2025-04-04 08:32:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:32:05' and `end` < '2025-04-04 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-04 08:32:18] Production.INFO: count ==533 [2025-04-04 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:32:05 - End Time 2025-04-04 08:32:05 [2025-04-04 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831641', 'tblTempUsageDetail_20' ) start [2025-04-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831641', 'tblTempUsageDetail_20' ) end [2025-04-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831641', 'tblTempVendorCDR_20' ) start [2025-04-04 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831641', 'tblTempVendorCDR_20' ) end [2025-04-04 08:32:18] Production.INFO: ProcessCDR(1,14831641,1,1,2) [2025-04-04 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831641', 'tblTempUsageDetail_20' ) start [2025-04-04 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831641', 'tblTempUsageDetail_20' ) end [2025-04-04 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:32:24] Production.INFO: ==24496== Releasing lock... [2025-04-04 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:32:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:33:06 [end_date_ymd] => 2025-04-04 08:33:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:33:06' and `end` < '2025-04-04 08: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-04 08:33:19] Production.INFO: count ==541 [2025-04-04 08:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:33:06 - End Time 2025-04-04 08:33:06 [2025-04-04 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831646', 'tblTempUsageDetail_20' ) start [2025-04-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831646', 'tblTempUsageDetail_20' ) end [2025-04-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831646', 'tblTempVendorCDR_20' ) start [2025-04-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831646', 'tblTempVendorCDR_20' ) end [2025-04-04 08:33:19] Production.INFO: ProcessCDR(1,14831646,1,1,2) [2025-04-04 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831646', 'tblTempUsageDetail_20' ) start [2025-04-04 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831646', 'tblTempUsageDetail_20' ) end [2025-04-04 08:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:33:24] Production.INFO: ==24570== Releasing lock... [2025-04-04 08:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:33:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:34:06 [end_date_ymd] => 2025-04-04 08:34:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:34:06' and `end` < '2025-04-04 08: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-04 08:34:19] Production.INFO: count ==542 [2025-04-04 08:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:34:06 - End Time 2025-04-04 08:34:06 [2025-04-04 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831651', 'tblTempUsageDetail_20' ) start [2025-04-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831651', 'tblTempUsageDetail_20' ) end [2025-04-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831651', 'tblTempVendorCDR_20' ) start [2025-04-04 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831651', 'tblTempVendorCDR_20' ) end [2025-04-04 08:34:19] Production.INFO: ProcessCDR(1,14831651,1,1,2) [2025-04-04 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831651', 'tblTempUsageDetail_20' ) start [2025-04-04 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831651', 'tblTempUsageDetail_20' ) end [2025-04-04 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:34:24] Production.INFO: ==24649== Releasing lock... [2025-04-04 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:34:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:35:05 [end_date_ymd] => 2025-04-04 08:35:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:35:05' and `end` < '2025-04-04 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-04 08:35:18] Production.INFO: count ==547 [2025-04-04 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:35:05 - End Time 2025-04-04 08:35:05 [2025-04-04 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831656', 'tblTempUsageDetail_20' ) start [2025-04-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831656', 'tblTempUsageDetail_20' ) end [2025-04-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831656', 'tblTempVendorCDR_20' ) start [2025-04-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831656', 'tblTempVendorCDR_20' ) end [2025-04-04 08:35:18] Production.INFO: ProcessCDR(1,14831656,1,1,2) [2025-04-04 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831656', 'tblTempUsageDetail_20' ) start [2025-04-04 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831656', 'tblTempUsageDetail_20' ) end [2025-04-04 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:35:22] Production.INFO: ==24728== Releasing lock... [2025-04-04 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:35:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:36:05 [end_date_ymd] => 2025-04-04 08:36:05 [RateCDR] => 1 ) [2025-04-04 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:36:05' and `end` < '2025-04-04 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:36:18] Production.INFO: count ==547 [2025-04-04 08:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:36:05 - End Time 2025-04-04 08:36:05 [2025-04-04 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831661', 'tblTempUsageDetail_20' ) start [2025-04-04 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831661', 'tblTempUsageDetail_20' ) end [2025-04-04 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831661', 'tblTempVendorCDR_20' ) start [2025-04-04 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831661', 'tblTempVendorCDR_20' ) end [2025-04-04 08:36:19] Production.INFO: ProcessCDR(1,14831661,1,1,2) [2025-04-04 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831661', 'tblTempUsageDetail_20' ) start [2025-04-04 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831661', 'tblTempUsageDetail_20' ) end [2025-04-04 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:36:22] Production.INFO: ==24804== Releasing lock... [2025-04-04 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:36:22] Production.INFO: 33 MB #Memory Used# [2025-04-04 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:37:05 [end_date_ymd] => 2025-04-04 08:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:37:05' and `end` < '2025-04-04 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-04 08:37:18] Production.INFO: count ==553 [2025-04-04 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:37:05 - End Time 2025-04-04 08:37:05 [2025-04-04 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831666', 'tblTempUsageDetail_20' ) start [2025-04-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831666', 'tblTempUsageDetail_20' ) end [2025-04-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831666', 'tblTempVendorCDR_20' ) start [2025-04-04 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831666', 'tblTempVendorCDR_20' ) end [2025-04-04 08:37:18] Production.INFO: ProcessCDR(1,14831666,1,1,2) [2025-04-04 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831666', 'tblTempUsageDetail_20' ) start [2025-04-04 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831666', 'tblTempUsageDetail_20' ) end [2025-04-04 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:37:23] Production.INFO: ==24880== Releasing lock... [2025-04-04 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:37:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:38:06 [end_date_ymd] => 2025-04-04 08:38:06 [RateCDR] => 1 ) [2025-04-04 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-04 05:38:06' and `end` < '2025-04-04 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-04 08:38:19] Production.INFO: count ==559 [2025-04-04 08:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:38:06 - End Time 2025-04-04 08:38:06 [2025-04-04 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831671', 'tblTempUsageDetail_20' ) start [2025-04-04 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831671', 'tblTempUsageDetail_20' ) end [2025-04-04 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831671', 'tblTempVendorCDR_20' ) start [2025-04-04 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831671', 'tblTempVendorCDR_20' ) end [2025-04-04 08:38:19] Production.INFO: ProcessCDR(1,14831671,1,1,2) [2025-04-04 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831671', 'tblTempUsageDetail_20' ) start [2025-04-04 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831671', 'tblTempUsageDetail_20' ) end [2025-04-04 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:38:23] Production.INFO: ==24955== Releasing lock... [2025-04-04 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:39:05 [end_date_ymd] => 2025-04-04 08:39:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:39:05' and `end` < '2025-04-04 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-04 08:39:18] Production.INFO: count ==559 [2025-04-04 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:39:05 - End Time 2025-04-04 08:39:05 [2025-04-04 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831676', 'tblTempUsageDetail_20' ) start [2025-04-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831676', 'tblTempUsageDetail_20' ) end [2025-04-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831676', 'tblTempVendorCDR_20' ) start [2025-04-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831676', 'tblTempVendorCDR_20' ) end [2025-04-04 08:39:18] Production.INFO: ProcessCDR(1,14831676,1,1,2) [2025-04-04 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831676', 'tblTempUsageDetail_20' ) start [2025-04-04 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831676', 'tblTempUsageDetail_20' ) end [2025-04-04 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:39:22] Production.INFO: ==25026== Releasing lock... [2025-04-04 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-04 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:40:06 [end_date_ymd] => 2025-04-04 08:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 05:40:06' and `end` < '2025-04-04 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-04 08:40:19] Production.INFO: count ==572 [2025-04-04 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:40:06 - End Time 2025-04-04 08:40:06 [2025-04-04 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831682', 'tblTempUsageDetail_20' ) start [2025-04-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831682', 'tblTempUsageDetail_20' ) end [2025-04-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831682', 'tblTempVendorCDR_20' ) start [2025-04-04 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831682', 'tblTempVendorCDR_20' ) end [2025-04-04 08:40:19] Production.INFO: ProcessCDR(1,14831682,1,1,2) [2025-04-04 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831682', 'tblTempUsageDetail_20' ) start [2025-04-04 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831682', 'tblTempUsageDetail_20' ) end [2025-04-04 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:40:24] Production.INFO: ==25100== Releasing lock... [2025-04-04 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:40:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-04 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:41:05 [end_date_ymd] => 2025-04-04 08:41:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:41:05' and `end` < '2025-04-04 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-04 08:41:18] Production.INFO: count ==606 [2025-04-04 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:41:05 - End Time 2025-04-04 08:41:05 [2025-04-04 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831687', 'tblTempUsageDetail_20' ) start [2025-04-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831687', 'tblTempUsageDetail_20' ) end [2025-04-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831687', 'tblTempVendorCDR_20' ) start [2025-04-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831687', 'tblTempVendorCDR_20' ) end [2025-04-04 08:41:18] Production.INFO: ProcessCDR(1,14831687,1,1,2) [2025-04-04 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831687', 'tblTempUsageDetail_20' ) start [2025-04-04 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831687', 'tblTempUsageDetail_20' ) end [2025-04-04 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:41:22] Production.INFO: ==25176== Releasing lock... [2025-04-04 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:42:06 [end_date_ymd] => 2025-04-04 08:42:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:42:06' and `end` < '2025-04-04 08: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-04 08:42:19] Production.INFO: count ==607 [2025-04-04 08:42:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:42:06 - End Time 2025-04-04 08:42:06 [2025-04-04 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831692', 'tblTempUsageDetail_20' ) start [2025-04-04 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831692', 'tblTempUsageDetail_20' ) end [2025-04-04 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831692', 'tblTempVendorCDR_20' ) start [2025-04-04 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831692', 'tblTempVendorCDR_20' ) end [2025-04-04 08:42:19] Production.INFO: ProcessCDR(1,14831692,1,1,2) [2025-04-04 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831692', 'tblTempUsageDetail_20' ) start [2025-04-04 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831692', 'tblTempUsageDetail_20' ) end [2025-04-04 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:42:24] Production.INFO: ==25252== Releasing lock... [2025-04-04 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:42:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:43:05 [end_date_ymd] => 2025-04-04 08:43:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:43:05' and `end` < '2025-04-04 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-04 08:43:18] Production.INFO: count ==624 [2025-04-04 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:43:05 - End Time 2025-04-04 08:43:05 [2025-04-04 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831697', 'tblTempUsageDetail_20' ) start [2025-04-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831697', 'tblTempUsageDetail_20' ) end [2025-04-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831697', 'tblTempVendorCDR_20' ) start [2025-04-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831697', 'tblTempVendorCDR_20' ) end [2025-04-04 08:43:18] Production.INFO: ProcessCDR(1,14831697,1,1,2) [2025-04-04 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831697', 'tblTempUsageDetail_20' ) start [2025-04-04 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831697', 'tblTempUsageDetail_20' ) end [2025-04-04 08:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:43:24] Production.INFO: ==25330== Releasing lock... [2025-04-04 08:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:43:24] Production.INFO: 33 MB #Memory Used# [2025-04-04 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:44:06 [end_date_ymd] => 2025-04-04 08:44:06 [RateCDR] => 1 ) [2025-04-04 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:44:06' and `end` < '2025-04-04 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:44:18] Production.INFO: count ==631 [2025-04-04 08:44:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:44:06 - End Time 2025-04-04 08:44:06 [2025-04-04 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831702', 'tblTempUsageDetail_20' ) start [2025-04-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831702', 'tblTempUsageDetail_20' ) end [2025-04-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831702', 'tblTempVendorCDR_20' ) start [2025-04-04 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831702', 'tblTempVendorCDR_20' ) end [2025-04-04 08:44:19] Production.INFO: ProcessCDR(1,14831702,1,1,2) [2025-04-04 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831702', 'tblTempUsageDetail_20' ) start [2025-04-04 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831702', 'tblTempUsageDetail_20' ) end [2025-04-04 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:44:22] Production.INFO: ==25402== Releasing lock... [2025-04-04 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:45:05 [end_date_ymd] => 2025-04-04 08:45:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:45:05' and `end` < '2025-04-04 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-04 08:45:17] Production.INFO: count ==642 [2025-04-04 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:45:05 - End Time 2025-04-04 08:45:05 [2025-04-04 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831707', 'tblTempUsageDetail_20' ) start [2025-04-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831707', 'tblTempUsageDetail_20' ) end [2025-04-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831707', 'tblTempVendorCDR_20' ) start [2025-04-04 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831707', 'tblTempVendorCDR_20' ) end [2025-04-04 08:45:18] Production.INFO: ProcessCDR(1,14831707,1,1,2) [2025-04-04 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831707', 'tblTempUsageDetail_20' ) start [2025-04-04 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831707', 'tblTempUsageDetail_20' ) end [2025-04-04 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:45:23] Production.INFO: ==25473== Releasing lock... [2025-04-04 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:45:23] Production.INFO: 33 MB #Memory Used# [2025-04-04 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:46:06 [end_date_ymd] => 2025-04-04 08:46:06 [RateCDR] => 1 ) [2025-04-04 08: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-04 05:46:06' and `end` < '2025-04-04 08: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-04 08:46:19] Production.INFO: count ==661 [2025-04-04 08:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:46:06 - End Time 2025-04-04 08:46:06 [2025-04-04 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831712', 'tblTempUsageDetail_20' ) start [2025-04-04 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831712', 'tblTempUsageDetail_20' ) end [2025-04-04 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831712', 'tblTempVendorCDR_20' ) start [2025-04-04 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831712', 'tblTempVendorCDR_20' ) end [2025-04-04 08:46:19] Production.INFO: ProcessCDR(1,14831712,1,1,2) [2025-04-04 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831712', 'tblTempUsageDetail_20' ) start [2025-04-04 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831712', 'tblTempUsageDetail_20' ) end [2025-04-04 08:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:46:24] Production.INFO: ==25585== Releasing lock... [2025-04-04 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:46:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:47:05 [end_date_ymd] => 2025-04-04 08:47:05 [RateCDR] => 1 ) [2025-04-04 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:47:05' and `end` < '2025-04-04 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:47:18] Production.INFO: count ==663 [2025-04-04 08:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:47:05 - End Time 2025-04-04 08:47:05 [2025-04-04 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831717', 'tblTempUsageDetail_20' ) start [2025-04-04 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831717', 'tblTempUsageDetail_20' ) end [2025-04-04 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831717', 'tblTempVendorCDR_20' ) start [2025-04-04 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831717', 'tblTempVendorCDR_20' ) end [2025-04-04 08:47:19] Production.INFO: ProcessCDR(1,14831717,1,1,2) [2025-04-04 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831717', 'tblTempUsageDetail_20' ) start [2025-04-04 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831717', 'tblTempUsageDetail_20' ) end [2025-04-04 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:47:24] Production.INFO: ==25658== Releasing lock... [2025-04-04 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:47:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:48:05 [end_date_ymd] => 2025-04-04 08:48:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:48:05' and `end` < '2025-04-04 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-04 08:48:18] Production.INFO: count ==676 [2025-04-04 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:48:05 - End Time 2025-04-04 08:48:05 [2025-04-04 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831722', 'tblTempUsageDetail_20' ) start [2025-04-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831722', 'tblTempUsageDetail_20' ) end [2025-04-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831722', 'tblTempVendorCDR_20' ) start [2025-04-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831722', 'tblTempVendorCDR_20' ) end [2025-04-04 08:48:18] Production.INFO: ProcessCDR(1,14831722,1,1,2) [2025-04-04 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831722', 'tblTempUsageDetail_20' ) start [2025-04-04 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831722', 'tblTempUsageDetail_20' ) end [2025-04-04 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:48:22] Production.INFO: ==25733== Releasing lock... [2025-04-04 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-04 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:49:05 [end_date_ymd] => 2025-04-04 08:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:49:05' and `end` < '2025-04-04 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-04 08:49:18] Production.INFO: count ==696 [2025-04-04 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:49:05 - End Time 2025-04-04 08:49:05 [2025-04-04 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831727', 'tblTempUsageDetail_20' ) start [2025-04-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831727', 'tblTempUsageDetail_20' ) end [2025-04-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831727', 'tblTempVendorCDR_20' ) start [2025-04-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831727', 'tblTempVendorCDR_20' ) end [2025-04-04 08:49:18] Production.INFO: ProcessCDR(1,14831727,1,1,2) [2025-04-04 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831727', 'tblTempUsageDetail_20' ) start [2025-04-04 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831727', 'tblTempUsageDetail_20' ) end [2025-04-04 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:49:24] Production.INFO: ==25805== Releasing lock... [2025-04-04 08:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:49:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:50:06 [end_date_ymd] => 2025-04-04 08:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 05:50:06' and `end` < '2025-04-04 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-04 08:50:19] Production.INFO: count ==720 [2025-04-04 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:50:06 - End Time 2025-04-04 08:50:06 [2025-04-04 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831733', 'tblTempUsageDetail_20' ) start [2025-04-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831733', 'tblTempUsageDetail_20' ) end [2025-04-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831733', 'tblTempVendorCDR_20' ) start [2025-04-04 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831733', 'tblTempVendorCDR_20' ) end [2025-04-04 08:50:19] Production.INFO: ProcessCDR(1,14831733,1,1,2) [2025-04-04 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831733', 'tblTempUsageDetail_20' ) start [2025-04-04 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831733', 'tblTempUsageDetail_20' ) end [2025-04-04 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:50:24] Production.INFO: ==25882== Releasing lock... [2025-04-04 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:50:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-04 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:51:05 [end_date_ymd] => 2025-04-04 08:51:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:51:05' and `end` < '2025-04-04 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-04 08:51:18] Production.INFO: count ==757 [2025-04-04 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:51:05 - End Time 2025-04-04 08:51:05 [2025-04-04 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831738', 'tblTempUsageDetail_20' ) start [2025-04-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831738', 'tblTempUsageDetail_20' ) end [2025-04-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831738', 'tblTempVendorCDR_20' ) start [2025-04-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831738', 'tblTempVendorCDR_20' ) end [2025-04-04 08:51:18] Production.INFO: ProcessCDR(1,14831738,1,1,2) [2025-04-04 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831738', 'tblTempUsageDetail_20' ) start [2025-04-04 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831738', 'tblTempUsageDetail_20' ) end [2025-04-04 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:51:23] Production.INFO: ==25957== Releasing lock... [2025-04-04 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:51:23] Production.INFO: 34 MB #Memory Used# [2025-04-04 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:52:05 [end_date_ymd] => 2025-04-04 08:52:05 [RateCDR] => 1 ) [2025-04-04 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:52:05' and `end` < '2025-04-04 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:52:18] Production.INFO: count ==764 [2025-04-04 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:52:05 - End Time 2025-04-04 08:52:05 [2025-04-04 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831743', 'tblTempUsageDetail_20' ) start [2025-04-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831743', 'tblTempUsageDetail_20' ) end [2025-04-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831743', 'tblTempVendorCDR_20' ) start [2025-04-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831743', 'tblTempVendorCDR_20' ) end [2025-04-04 08:52:18] Production.INFO: ProcessCDR(1,14831743,1,1,2) [2025-04-04 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831743', 'tblTempUsageDetail_20' ) start [2025-04-04 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831743', 'tblTempUsageDetail_20' ) end [2025-04-04 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:52:23] Production.INFO: ==26030== Releasing lock... [2025-04-04 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:52:23] Production.INFO: 34 MB #Memory Used# [2025-04-04 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:53:06 [end_date_ymd] => 2025-04-04 08:53:06 [RateCDR] => 1 ) [2025-04-04 08: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 05:53:06' and `end` < '2025-04-04 08: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-04 08:53:19] Production.INFO: count ==765 [2025-04-04 08:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:53:06 - End Time 2025-04-04 08:53:06 [2025-04-04 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831748', 'tblTempUsageDetail_20' ) start [2025-04-04 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831748', 'tblTempUsageDetail_20' ) end [2025-04-04 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831748', 'tblTempVendorCDR_20' ) start [2025-04-04 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831748', 'tblTempVendorCDR_20' ) end [2025-04-04 08:53:19] Production.INFO: ProcessCDR(1,14831748,1,1,2) [2025-04-04 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831748', 'tblTempUsageDetail_20' ) start [2025-04-04 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831748', 'tblTempUsageDetail_20' ) end [2025-04-04 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:53:23] Production.INFO: ==26104== Releasing lock... [2025-04-04 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:53:23] Production.INFO: 34 MB #Memory Used# [2025-04-04 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:54:05 [end_date_ymd] => 2025-04-04 08:54:05 [RateCDR] => 1 ) [2025-04-04 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:54:05' and `end` < '2025-04-04 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:54:18] Production.INFO: count ==774 [2025-04-04 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:54:05 - End Time 2025-04-04 08:54:05 [2025-04-04 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831753', 'tblTempUsageDetail_20' ) start [2025-04-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831753', 'tblTempUsageDetail_20' ) end [2025-04-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831753', 'tblTempVendorCDR_20' ) start [2025-04-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831753', 'tblTempVendorCDR_20' ) end [2025-04-04 08:54:18] Production.INFO: ProcessCDR(1,14831753,1,1,2) [2025-04-04 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831753', 'tblTempUsageDetail_20' ) start [2025-04-04 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831753', 'tblTempUsageDetail_20' ) end [2025-04-04 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:54:23] Production.INFO: ==26176== Releasing lock... [2025-04-04 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:54:23] Production.INFO: 34 MB #Memory Used# [2025-04-04 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:55:05 [end_date_ymd] => 2025-04-04 08:55:05 [RateCDR] => 1 ) [2025-04-04 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:55:05' and `end` < '2025-04-04 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:55:17] Production.INFO: count ==786 [2025-04-04 08:55:17] Production.ERROR: pbx CDR StartTime 2025-04-04 05:55:05 - End Time 2025-04-04 08:55:05 [2025-04-04 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831758', 'tblTempUsageDetail_20' ) start [2025-04-04 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831758', 'tblTempUsageDetail_20' ) end [2025-04-04 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831758', 'tblTempVendorCDR_20' ) start [2025-04-04 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831758', 'tblTempVendorCDR_20' ) end [2025-04-04 08:55:17] Production.INFO: ProcessCDR(1,14831758,1,1,2) [2025-04-04 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831758', 'tblTempUsageDetail_20' ) start [2025-04-04 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831758', 'tblTempUsageDetail_20' ) end [2025-04-04 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:55:23] Production.INFO: ==26248== Releasing lock... [2025-04-04 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:55:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:56:05 [end_date_ymd] => 2025-04-04 08:56:05 [RateCDR] => 1 ) [2025-04-04 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:56:05' and `end` < '2025-04-04 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:56:18] Production.INFO: count ==785 [2025-04-04 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:56:05 - End Time 2025-04-04 08:56:05 [2025-04-04 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831763', 'tblTempUsageDetail_20' ) start [2025-04-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831763', 'tblTempUsageDetail_20' ) end [2025-04-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831763', 'tblTempVendorCDR_20' ) start [2025-04-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831763', 'tblTempVendorCDR_20' ) end [2025-04-04 08:56:18] Production.INFO: ProcessCDR(1,14831763,1,1,2) [2025-04-04 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831763', 'tblTempUsageDetail_20' ) start [2025-04-04 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831763', 'tblTempUsageDetail_20' ) end [2025-04-04 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:56:24] Production.INFO: ==26320== Releasing lock... [2025-04-04 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:56:24] Production.INFO: 34 MB #Memory Used# [2025-04-04 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:57:06 [end_date_ymd] => 2025-04-04 08:57:06 [RateCDR] => 1 ) [2025-04-04 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:57:06' and `end` < '2025-04-04 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:57:19] Production.INFO: count ==787 [2025-04-04 08:57:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:57:06 - End Time 2025-04-04 08:57:06 [2025-04-04 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831768', 'tblTempUsageDetail_20' ) start [2025-04-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831768', 'tblTempUsageDetail_20' ) end [2025-04-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831768', 'tblTempVendorCDR_20' ) start [2025-04-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831768', 'tblTempVendorCDR_20' ) end [2025-04-04 08:57:19] Production.INFO: ProcessCDR(1,14831768,1,1,2) [2025-04-04 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831768', 'tblTempUsageDetail_20' ) start [2025-04-04 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831768', 'tblTempUsageDetail_20' ) end [2025-04-04 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:57:22] Production.INFO: ==26396== Releasing lock... [2025-04-04 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-04 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:58:05 [end_date_ymd] => 2025-04-04 08:58:05 [RateCDR] => 1 ) [2025-04-04 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-04 05:58:05' and `end` < '2025-04-04 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-04 08:58:18] Production.INFO: count ==786 [2025-04-04 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-04 05:58:05 - End Time 2025-04-04 08:58:05 [2025-04-04 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831773', 'tblTempUsageDetail_20' ) start [2025-04-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831773', 'tblTempUsageDetail_20' ) end [2025-04-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831773', 'tblTempVendorCDR_20' ) start [2025-04-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831773', 'tblTempVendorCDR_20' ) end [2025-04-04 08:58:18] Production.INFO: ProcessCDR(1,14831773,1,1,2) [2025-04-04 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831773', 'tblTempUsageDetail_20' ) start [2025-04-04 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831773', 'tblTempUsageDetail_20' ) end [2025-04-04 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:58:24] Production.INFO: ==26475== Releasing lock... [2025-04-04 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:58:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-04 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 05:59:06 [end_date_ymd] => 2025-04-04 08:59:06 [RateCDR] => 1 ) [2025-04-04 08:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 05:59:06' and `end` < '2025-04-04 08:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 08:59:19] Production.INFO: count ==793 [2025-04-04 08:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 05:59:06 - End Time 2025-04-04 08:59:06 [2025-04-04 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831778', 'tblTempUsageDetail_20' ) start [2025-04-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831778', 'tblTempUsageDetail_20' ) end [2025-04-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831778', 'tblTempVendorCDR_20' ) start [2025-04-04 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831778', 'tblTempVendorCDR_20' ) end [2025-04-04 08:59:19] Production.INFO: ProcessCDR(1,14831778,1,1,2) [2025-04-04 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 08:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831778', 'tblTempUsageDetail_20' ) start [2025-04-04 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831778', 'tblTempUsageDetail_20' ) end [2025-04-04 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 08:59:24] Production.INFO: ==26550== Releasing lock... [2025-04-04 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 08:59:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:00:07 [end_date_ymd] => 2025-04-04 09:00:07 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:00:07' and `end` < '2025-04-04 09: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-04 09:00:20] Production.INFO: count ==803 [2025-04-04 09:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:00:07 - End Time 2025-04-04 09:00:07 [2025-04-04 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831784', 'tblTempUsageDetail_20' ) start [2025-04-04 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831784', 'tblTempUsageDetail_20' ) end [2025-04-04 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831784', 'tblTempVendorCDR_20' ) start [2025-04-04 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831784', 'tblTempVendorCDR_20' ) end [2025-04-04 09:00:20] Production.INFO: ProcessCDR(1,14831784,1,1,2) [2025-04-04 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831784', 'tblTempUsageDetail_20' ) start [2025-04-04 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831784', 'tblTempUsageDetail_20' ) end [2025-04-04 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:00:25] Production.INFO: ==26625== Releasing lock... [2025-04-04 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:00:25] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:01:05 [end_date_ymd] => 2025-04-04 09:01:05 [RateCDR] => 1 ) [2025-04-04 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:01:05' and `end` < '2025-04-04 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:01:18] Production.INFO: count ==845 [2025-04-04 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-04 06:01:05 - End Time 2025-04-04 09:01:05 [2025-04-04 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831789', 'tblTempUsageDetail_20' ) start [2025-04-04 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831789', 'tblTempUsageDetail_20' ) end [2025-04-04 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831789', 'tblTempVendorCDR_20' ) start [2025-04-04 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831789', 'tblTempVendorCDR_20' ) end [2025-04-04 09:01:19] Production.INFO: ProcessCDR(1,14831789,1,1,2) [2025-04-04 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831789', 'tblTempUsageDetail_20' ) start [2025-04-04 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831789', 'tblTempUsageDetail_20' ) end [2025-04-04 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:01:24] Production.INFO: ==26713== Releasing lock... [2025-04-04 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:01:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-04 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:02:06 [end_date_ymd] => 2025-04-04 09:02:06 [RateCDR] => 1 ) [2025-04-04 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:02:06' and `end` < '2025-04-04 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:02:18] Production.INFO: count ==858 [2025-04-04 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:02:06 - End Time 2025-04-04 09:02:06 [2025-04-04 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831794', 'tblTempUsageDetail_20' ) start [2025-04-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831794', 'tblTempUsageDetail_20' ) end [2025-04-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831794', 'tblTempVendorCDR_20' ) start [2025-04-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831794', 'tblTempVendorCDR_20' ) end [2025-04-04 09:02:19] Production.INFO: ProcessCDR(1,14831794,1,1,2) [2025-04-04 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831794', 'tblTempUsageDetail_20' ) start [2025-04-04 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831794', 'tblTempUsageDetail_20' ) end [2025-04-04 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:02:23] Production.INFO: ==26832== Releasing lock... [2025-04-04 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:02:23] Production.INFO: 35 MB #Memory Used# [2025-04-04 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:03:06 [end_date_ymd] => 2025-04-04 09:03:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:03:06' and `end` < '2025-04-04 09: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-04 09:03:19] Production.INFO: count ==875 [2025-04-04 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:03:06 - End Time 2025-04-04 09:03:06 [2025-04-04 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831799', 'tblTempUsageDetail_20' ) start [2025-04-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831799', 'tblTempUsageDetail_20' ) end [2025-04-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831799', 'tblTempVendorCDR_20' ) start [2025-04-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831799', 'tblTempVendorCDR_20' ) end [2025-04-04 09:03:19] Production.INFO: ProcessCDR(1,14831799,1,1,2) [2025-04-04 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831799', 'tblTempUsageDetail_20' ) start [2025-04-04 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831799', 'tblTempUsageDetail_20' ) end [2025-04-04 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:03:24] Production.INFO: ==26905== Releasing lock... [2025-04-04 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:03:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-04 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:04:05 [end_date_ymd] => 2025-04-04 09:04:05 [RateCDR] => 1 ) [2025-04-04 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-04 06:04:05' and `end` < '2025-04-04 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-04 09:04:18] Production.INFO: count ==889 [2025-04-04 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:04:05 - End Time 2025-04-04 09:04:05 [2025-04-04 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831804', 'tblTempUsageDetail_20' ) start [2025-04-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831804', 'tblTempUsageDetail_20' ) end [2025-04-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831804', 'tblTempVendorCDR_20' ) start [2025-04-04 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831804', 'tblTempVendorCDR_20' ) end [2025-04-04 09:04:19] Production.INFO: ProcessCDR(1,14831804,1,1,2) [2025-04-04 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831804', 'tblTempUsageDetail_20' ) start [2025-04-04 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831804', 'tblTempUsageDetail_20' ) end [2025-04-04 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:04:25] Production.INFO: ==26982== Releasing lock... [2025-04-04 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:04:25] Production.INFO: 35 MB #Memory Used# [2025-04-04 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:05:06 [end_date_ymd] => 2025-04-04 09:05:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:05:06' and `end` < '2025-04-04 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-04 09:05:19] Production.INFO: count ==907 [2025-04-04 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:05:06 - End Time 2025-04-04 09:05:06 [2025-04-04 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831809', 'tblTempUsageDetail_20' ) start [2025-04-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831809', 'tblTempUsageDetail_20' ) end [2025-04-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831809', 'tblTempVendorCDR_20' ) start [2025-04-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831809', 'tblTempVendorCDR_20' ) end [2025-04-04 09:05:19] Production.INFO: ProcessCDR(1,14831809,1,1,2) [2025-04-04 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831809', 'tblTempUsageDetail_20' ) start [2025-04-04 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831809', 'tblTempUsageDetail_20' ) end [2025-04-04 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:05:24] Production.INFO: ==27062== Releasing lock... [2025-04-04 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:05:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-04 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:06:06 [end_date_ymd] => 2025-04-04 09:06:06 [RateCDR] => 1 ) [2025-04-04 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:06:06' and `end` < '2025-04-04 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:06:19] Production.INFO: count ==964 [2025-04-04 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:06:06 - End Time 2025-04-04 09:06:06 [2025-04-04 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831814', 'tblTempUsageDetail_20' ) start [2025-04-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831814', 'tblTempUsageDetail_20' ) end [2025-04-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831814', 'tblTempVendorCDR_20' ) start [2025-04-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831814', 'tblTempVendorCDR_20' ) end [2025-04-04 09:06:19] Production.INFO: ProcessCDR(1,14831814,1,1,2) [2025-04-04 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831814', 'tblTempUsageDetail_20' ) start [2025-04-04 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831814', 'tblTempUsageDetail_20' ) end [2025-04-04 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:06:25] Production.INFO: ==27136== Releasing lock... [2025-04-04 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:06:25] Production.INFO: 35.5 MB #Memory Used# [2025-04-04 09:07:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:07:07 [end_date_ymd] => 2025-04-04 09:07:07 [RateCDR] => 1 ) [2025-04-04 09:07: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 06:07:07' and `end` < '2025-04-04 09:07: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-04 09:07:19] Production.INFO: count ==966 [2025-04-04 09:07:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:07:07 - End Time 2025-04-04 09:07:07 [2025-04-04 09:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831819', 'tblTempUsageDetail_20' ) start [2025-04-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831819', 'tblTempUsageDetail_20' ) end [2025-04-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831819', 'tblTempVendorCDR_20' ) start [2025-04-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831819', 'tblTempVendorCDR_20' ) end [2025-04-04 09:07:20] Production.INFO: ProcessCDR(1,14831819,1,1,2) [2025-04-04 09:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831819', 'tblTempUsageDetail_20' ) start [2025-04-04 09:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831819', 'tblTempUsageDetail_20' ) end [2025-04-04 09:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:07:26] Production.INFO: ==27210== Releasing lock... [2025-04-04 09:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:07:26] Production.INFO: 35.75 MB #Memory Used# [2025-04-04 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:08:06 [end_date_ymd] => 2025-04-04 09:08:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:08:06' and `end` < '2025-04-04 09: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-04 09:08:19] Production.INFO: count ==978 [2025-04-04 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:08:06 - End Time 2025-04-04 09:08:06 [2025-04-04 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831824', 'tblTempUsageDetail_20' ) start [2025-04-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831824', 'tblTempUsageDetail_20' ) end [2025-04-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831824', 'tblTempVendorCDR_20' ) start [2025-04-04 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831824', 'tblTempVendorCDR_20' ) end [2025-04-04 09:08:19] Production.INFO: ProcessCDR(1,14831824,1,1,2) [2025-04-04 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831824', 'tblTempUsageDetail_20' ) start [2025-04-04 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831824', 'tblTempUsageDetail_20' ) end [2025-04-04 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:08:24] Production.INFO: ==27288== Releasing lock... [2025-04-04 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:08:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-04 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:09:06 [end_date_ymd] => 2025-04-04 09:09:06 [RateCDR] => 1 ) [2025-04-04 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:09:06' and `end` < '2025-04-04 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:09:19] Production.INFO: count ==991 [2025-04-04 09:09:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:09:06 - End Time 2025-04-04 09:09:06 [2025-04-04 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831829', 'tblTempUsageDetail_20' ) start [2025-04-04 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831829', 'tblTempUsageDetail_20' ) end [2025-04-04 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831829', 'tblTempVendorCDR_20' ) start [2025-04-04 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831829', 'tblTempVendorCDR_20' ) end [2025-04-04 09:09:20] Production.INFO: ProcessCDR(1,14831829,1,1,2) [2025-04-04 09:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831829', 'tblTempUsageDetail_20' ) start [2025-04-04 09:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831829', 'tblTempUsageDetail_20' ) end [2025-04-04 09:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:09:26] Production.INFO: ==27369== Releasing lock... [2025-04-04 09:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:09:26] Production.INFO: 35.75 MB #Memory Used# [2025-04-04 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:10:07 [end_date_ymd] => 2025-04-04 09:10:07 [RateCDR] => 1 ) [2025-04-04 09: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 06:10:07' and `end` < '2025-04-04 09: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-04 09:10:19] Production.INFO: count ==1022 [2025-04-04 09:10:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:10:07 - End Time 2025-04-04 09:10:07 [2025-04-04 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831835', 'tblTempUsageDetail_20' ) start [2025-04-04 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831835', 'tblTempUsageDetail_20' ) end [2025-04-04 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831835', 'tblTempVendorCDR_20' ) start [2025-04-04 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831835', 'tblTempVendorCDR_20' ) end [2025-04-04 09:10:20] Production.INFO: ProcessCDR(1,14831835,1,1,2) [2025-04-04 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831835', 'tblTempUsageDetail_20' ) start [2025-04-04 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831835', 'tblTempUsageDetail_20' ) end [2025-04-04 09:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:10:26] Production.INFO: ==27450== Releasing lock... [2025-04-04 09:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:10:26] Production.INFO: 36 MB #Memory Used# [2025-04-04 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:11:06 [end_date_ymd] => 2025-04-04 09:11:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:11:06' and `end` < '2025-04-04 09: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-04 09:11:19] Production.INFO: count ==1074 [2025-04-04 09:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:11:06 - End Time 2025-04-04 09:11:06 [2025-04-04 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831840', 'tblTempUsageDetail_20' ) start [2025-04-04 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831840', 'tblTempUsageDetail_20' ) end [2025-04-04 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831840', 'tblTempVendorCDR_20' ) start [2025-04-04 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831840', 'tblTempVendorCDR_20' ) end [2025-04-04 09:11:19] Production.INFO: ProcessCDR(1,14831840,1,1,2) [2025-04-04 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831840', 'tblTempUsageDetail_20' ) start [2025-04-04 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831840', 'tblTempUsageDetail_20' ) end [2025-04-04 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:11:25] Production.INFO: ==27529== Releasing lock... [2025-04-04 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:11:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:12:06 [end_date_ymd] => 2025-04-04 09:12:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:12:06' and `end` < '2025-04-04 09: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-04 09:12:19] Production.INFO: count ==1084 [2025-04-04 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:12:06 - End Time 2025-04-04 09:12:06 [2025-04-04 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831845', 'tblTempUsageDetail_20' ) start [2025-04-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831845', 'tblTempUsageDetail_20' ) end [2025-04-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831845', 'tblTempVendorCDR_20' ) start [2025-04-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831845', 'tblTempVendorCDR_20' ) end [2025-04-04 09:12:19] Production.INFO: ProcessCDR(1,14831845,1,1,2) [2025-04-04 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831845', 'tblTempUsageDetail_20' ) start [2025-04-04 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831845', 'tblTempUsageDetail_20' ) end [2025-04-04 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:12:25] Production.INFO: ==27610== Releasing lock... [2025-04-04 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:12:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-04 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:13:06 [end_date_ymd] => 2025-04-04 09:13:06 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:13:06' and `end` < '2025-04-04 09: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-04 09:13:19] Production.INFO: count ==1097 [2025-04-04 09:13:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:13:06 - End Time 2025-04-04 09:13:06 [2025-04-04 09:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831850', 'tblTempUsageDetail_20' ) start [2025-04-04 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831850', 'tblTempUsageDetail_20' ) end [2025-04-04 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831850', 'tblTempVendorCDR_20' ) start [2025-04-04 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831850', 'tblTempVendorCDR_20' ) end [2025-04-04 09:13:20] Production.INFO: ProcessCDR(1,14831850,1,1,2) [2025-04-04 09:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831850', 'tblTempUsageDetail_20' ) start [2025-04-04 09:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831850', 'tblTempUsageDetail_20' ) end [2025-04-04 09:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:13:26] Production.INFO: ==27693== Releasing lock... [2025-04-04 09:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:13:26] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:14:06 [end_date_ymd] => 2025-04-04 09:14:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:14:06' and `end` < '2025-04-04 09: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-04 09:14:19] Production.INFO: count ==1106 [2025-04-04 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:14:06 - End Time 2025-04-04 09:14:06 [2025-04-04 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831855', 'tblTempUsageDetail_20' ) start [2025-04-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831855', 'tblTempUsageDetail_20' ) end [2025-04-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831855', 'tblTempVendorCDR_20' ) start [2025-04-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831855', 'tblTempVendorCDR_20' ) end [2025-04-04 09:14:19] Production.INFO: ProcessCDR(1,14831855,1,1,2) [2025-04-04 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831855', 'tblTempUsageDetail_20' ) start [2025-04-04 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831855', 'tblTempUsageDetail_20' ) end [2025-04-04 09:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:14:25] Production.INFO: ==27775== Releasing lock... [2025-04-04 09:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:14:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-04 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:15:06 [end_date_ymd] => 2025-04-04 09:15:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:15:06' and `end` < '2025-04-04 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-04 09:15:19] Production.INFO: count ==1123 [2025-04-04 09:15:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:15:06 - End Time 2025-04-04 09:15:06 [2025-04-04 09:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831860', 'tblTempUsageDetail_20' ) start [2025-04-04 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831860', 'tblTempUsageDetail_20' ) end [2025-04-04 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831860', 'tblTempVendorCDR_20' ) start [2025-04-04 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831860', 'tblTempVendorCDR_20' ) end [2025-04-04 09:15:20] Production.INFO: ProcessCDR(1,14831860,1,1,2) [2025-04-04 09:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831860', 'tblTempUsageDetail_20' ) start [2025-04-04 09:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831860', 'tblTempUsageDetail_20' ) end [2025-04-04 09:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:15:26] Production.INFO: ==27854== Releasing lock... [2025-04-04 09:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:15:26] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:16:06 [end_date_ymd] => 2025-04-04 09:16:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:16:06' and `end` < '2025-04-04 09: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-04 09:16:19] Production.INFO: count ==1135 [2025-04-04 09:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:16:06 - End Time 2025-04-04 09:16:06 [2025-04-04 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831865', 'tblTempUsageDetail_20' ) start [2025-04-04 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831865', 'tblTempUsageDetail_20' ) end [2025-04-04 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831865', 'tblTempVendorCDR_20' ) start [2025-04-04 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831865', 'tblTempVendorCDR_20' ) end [2025-04-04 09:16:20] Production.INFO: ProcessCDR(1,14831865,1,1,2) [2025-04-04 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831865', 'tblTempUsageDetail_20' ) start [2025-04-04 09:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831865', 'tblTempUsageDetail_20' ) end [2025-04-04 09:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:16:26] Production.INFO: ==27932== Releasing lock... [2025-04-04 09:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:16:26] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:17:06 [end_date_ymd] => 2025-04-04 09:17:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:17:06' and `end` < '2025-04-04 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-04 09:17:19] Production.INFO: count ==1144 [2025-04-04 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:17:06 - End Time 2025-04-04 09:17:06 [2025-04-04 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831870', 'tblTempUsageDetail_20' ) start [2025-04-04 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831870', 'tblTempUsageDetail_20' ) end [2025-04-04 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831870', 'tblTempVendorCDR_20' ) start [2025-04-04 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831870', 'tblTempVendorCDR_20' ) end [2025-04-04 09:17:20] Production.INFO: ProcessCDR(1,14831870,1,1,2) [2025-04-04 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831870', 'tblTempUsageDetail_20' ) start [2025-04-04 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831870', 'tblTempUsageDetail_20' ) end [2025-04-04 09:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:17:25] Production.INFO: ==28052== Releasing lock... [2025-04-04 09:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:17:25] Production.INFO: 36.75 MB #Memory Used# [2025-04-04 09:18:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:18:07 [end_date_ymd] => 2025-04-04 09:18:07 [RateCDR] => 1 ) [2025-04-04 09:18: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 06:18:07' and `end` < '2025-04-04 09:18: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-04 09:18:19] Production.INFO: count ==1152 [2025-04-04 09:18:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:18:07 - End Time 2025-04-04 09:18:07 [2025-04-04 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831875', 'tblTempUsageDetail_20' ) start [2025-04-04 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831875', 'tblTempUsageDetail_20' ) end [2025-04-04 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831875', 'tblTempVendorCDR_20' ) start [2025-04-04 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831875', 'tblTempVendorCDR_20' ) end [2025-04-04 09:18:20] Production.INFO: ProcessCDR(1,14831875,1,1,2) [2025-04-04 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831875', 'tblTempUsageDetail_20' ) start [2025-04-04 09:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831875', 'tblTempUsageDetail_20' ) end [2025-04-04 09:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:18:26] Production.INFO: ==28137== Releasing lock... [2025-04-04 09:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:18:26] Production.INFO: 37 MB #Memory Used# [2025-04-04 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:19:06 [end_date_ymd] => 2025-04-04 09:19:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:19:06' and `end` < '2025-04-04 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-04 09:19:19] Production.INFO: count ==1160 [2025-04-04 09:19:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:19:06 - End Time 2025-04-04 09:19:06 [2025-04-04 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831880', 'tblTempUsageDetail_20' ) start [2025-04-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831880', 'tblTempUsageDetail_20' ) end [2025-04-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831880', 'tblTempVendorCDR_20' ) start [2025-04-04 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831880', 'tblTempVendorCDR_20' ) end [2025-04-04 09:19:19] Production.INFO: ProcessCDR(1,14831880,1,1,2) [2025-04-04 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831880', 'tblTempUsageDetail_20' ) start [2025-04-04 09:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831880', 'tblTempUsageDetail_20' ) end [2025-04-04 09:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:19:25] Production.INFO: ==28220== Releasing lock... [2025-04-04 09:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:19:25] Production.INFO: 37 MB #Memory Used# [2025-04-04 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:20:07 [end_date_ymd] => 2025-04-04 09:20:07 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:20:07' and `end` < '2025-04-04 09: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-04 09:20:20] Production.INFO: count ==1177 [2025-04-04 09:20:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:20:07 - End Time 2025-04-04 09:20:07 [2025-04-04 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831886', 'tblTempUsageDetail_20' ) start [2025-04-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831886', 'tblTempUsageDetail_20' ) end [2025-04-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831886', 'tblTempVendorCDR_20' ) start [2025-04-04 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831886', 'tblTempVendorCDR_20' ) end [2025-04-04 09:20:20] Production.INFO: ProcessCDR(1,14831886,1,1,2) [2025-04-04 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831886', 'tblTempUsageDetail_20' ) start [2025-04-04 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831886', 'tblTempUsageDetail_20' ) end [2025-04-04 09:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:20:26] Production.INFO: ==28299== Releasing lock... [2025-04-04 09:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:20:26] Production.INFO: 37 MB #Memory Used# [2025-04-04 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:21:06 [end_date_ymd] => 2025-04-04 09:21:06 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:21:06' and `end` < '2025-04-04 09: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-04 09:21:19] Production.INFO: count ==1227 [2025-04-04 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:21:06 - End Time 2025-04-04 09:21:06 [2025-04-04 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831891', 'tblTempUsageDetail_20' ) start [2025-04-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831891', 'tblTempUsageDetail_20' ) end [2025-04-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831891', 'tblTempVendorCDR_20' ) start [2025-04-04 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831891', 'tblTempVendorCDR_20' ) end [2025-04-04 09:21:19] Production.INFO: ProcessCDR(1,14831891,1,1,2) [2025-04-04 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831891', 'tblTempUsageDetail_20' ) start [2025-04-04 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831891', 'tblTempUsageDetail_20' ) end [2025-04-04 09:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:21:25] Production.INFO: ==28386== Releasing lock... [2025-04-04 09:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:21:25] Production.INFO: 37 MB #Memory Used# [2025-04-04 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:22:06 [end_date_ymd] => 2025-04-04 09:22:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:22:06' and `end` < '2025-04-04 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-04 09:22:19] Production.INFO: count ==1242 [2025-04-04 09:22:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:22:06 - End Time 2025-04-04 09:22:06 [2025-04-04 09:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831896', 'tblTempUsageDetail_20' ) start [2025-04-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831896', 'tblTempUsageDetail_20' ) end [2025-04-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831896', 'tblTempVendorCDR_20' ) start [2025-04-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831896', 'tblTempVendorCDR_20' ) end [2025-04-04 09:22:20] Production.INFO: ProcessCDR(1,14831896,1,1,2) [2025-04-04 09:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831896', 'tblTempUsageDetail_20' ) start [2025-04-04 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831896', 'tblTempUsageDetail_20' ) end [2025-04-04 09:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:22:26] Production.INFO: ==28464== Releasing lock... [2025-04-04 09:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:22:26] Production.INFO: 37.25 MB #Memory Used# [2025-04-04 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:23:05 [end_date_ymd] => 2025-04-04 09:23:05 [RateCDR] => 1 ) [2025-04-04 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-04 06:23:05' and `end` < '2025-04-04 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-04 09:23:18] Production.INFO: count ==1260 [2025-04-04 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:23:05 - End Time 2025-04-04 09:23:05 [2025-04-04 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831901', 'tblTempUsageDetail_20' ) start [2025-04-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831901', 'tblTempUsageDetail_20' ) end [2025-04-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831901', 'tblTempVendorCDR_20' ) start [2025-04-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831901', 'tblTempVendorCDR_20' ) end [2025-04-04 09:23:19] Production.INFO: ProcessCDR(1,14831901,1,1,2) [2025-04-04 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831901', 'tblTempUsageDetail_20' ) start [2025-04-04 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831901', 'tblTempUsageDetail_20' ) end [2025-04-04 09:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:23:25] Production.INFO: ==28544== Releasing lock... [2025-04-04 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:23:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-04 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:24:06 [end_date_ymd] => 2025-04-04 09:24:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:24:06' and `end` < '2025-04-04 09: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-04 09:24:19] Production.INFO: count ==1277 [2025-04-04 09:24:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:24:06 - End Time 2025-04-04 09:24:06 [2025-04-04 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831906', 'tblTempUsageDetail_20' ) start [2025-04-04 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831906', 'tblTempUsageDetail_20' ) end [2025-04-04 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831906', 'tblTempVendorCDR_20' ) start [2025-04-04 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831906', 'tblTempVendorCDR_20' ) end [2025-04-04 09:24:20] Production.INFO: ProcessCDR(1,14831906,1,1,2) [2025-04-04 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831906', 'tblTempUsageDetail_20' ) start [2025-04-04 09:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831906', 'tblTempUsageDetail_20' ) end [2025-04-04 09:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:24:26] Production.INFO: ==28622== Releasing lock... [2025-04-04 09:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:24:26] Production.INFO: 37.75 MB #Memory Used# [2025-04-04 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:25:05 [end_date_ymd] => 2025-04-04 09:25:05 [RateCDR] => 1 ) [2025-04-04 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:25:05' and `end` < '2025-04-04 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-04 09:25:19] Production.INFO: count ==1285 [2025-04-04 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:25:05 - End Time 2025-04-04 09:25:05 [2025-04-04 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831911', 'tblTempUsageDetail_20' ) start [2025-04-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831911', 'tblTempUsageDetail_20' ) end [2025-04-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831911', 'tblTempVendorCDR_20' ) start [2025-04-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831911', 'tblTempVendorCDR_20' ) end [2025-04-04 09:25:19] Production.INFO: ProcessCDR(1,14831911,1,1,2) [2025-04-04 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831911', 'tblTempUsageDetail_20' ) start [2025-04-04 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831911', 'tblTempUsageDetail_20' ) end [2025-04-04 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:25:25] Production.INFO: ==28697== Releasing lock... [2025-04-04 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-04 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:26:06 [end_date_ymd] => 2025-04-04 09:26:06 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:26:06' and `end` < '2025-04-04 09: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-04 09:26:19] Production.INFO: count ==1289 [2025-04-04 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:26:06 - End Time 2025-04-04 09:26:06 [2025-04-04 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831916', 'tblTempUsageDetail_20' ) start [2025-04-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831916', 'tblTempUsageDetail_20' ) end [2025-04-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831916', 'tblTempVendorCDR_20' ) start [2025-04-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831916', 'tblTempVendorCDR_20' ) end [2025-04-04 09:26:19] Production.INFO: ProcessCDR(1,14831916,1,1,2) [2025-04-04 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831916', 'tblTempUsageDetail_20' ) start [2025-04-04 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831916', 'tblTempUsageDetail_20' ) end [2025-04-04 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:26:25] Production.INFO: ==28780== Releasing lock... [2025-04-04 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:26:25] Production.INFO: 38 MB #Memory Used# [2025-04-04 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:27:05 [end_date_ymd] => 2025-04-04 09:27:05 [RateCDR] => 1 ) [2025-04-04 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:27:05' and `end` < '2025-04-04 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:27:18] Production.INFO: count ==1297 [2025-04-04 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:27:05 - End Time 2025-04-04 09:27:05 [2025-04-04 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831921', 'tblTempUsageDetail_20' ) start [2025-04-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831921', 'tblTempUsageDetail_20' ) end [2025-04-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831921', 'tblTempVendorCDR_20' ) start [2025-04-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831921', 'tblTempVendorCDR_20' ) end [2025-04-04 09:27:19] Production.INFO: ProcessCDR(1,14831921,1,1,2) [2025-04-04 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831921', 'tblTempUsageDetail_20' ) start [2025-04-04 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831921', 'tblTempUsageDetail_20' ) end [2025-04-04 09:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:27:25] Production.INFO: ==28858== Releasing lock... [2025-04-04 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:27:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-04 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:28:06 [end_date_ymd] => 2025-04-04 09:28:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:28:06' and `end` < '2025-04-04 09: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-04 09:28:19] Production.INFO: count ==1340 [2025-04-04 09:28:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:28:06 - End Time 2025-04-04 09:28:06 [2025-04-04 09:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831926', 'tblTempUsageDetail_20' ) start [2025-04-04 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831926', 'tblTempUsageDetail_20' ) end [2025-04-04 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831926', 'tblTempVendorCDR_20' ) start [2025-04-04 09:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831926', 'tblTempVendorCDR_20' ) end [2025-04-04 09:28:20] Production.INFO: ProcessCDR(1,14831926,1,1,2) [2025-04-04 09:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831926', 'tblTempUsageDetail_20' ) start [2025-04-04 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831926', 'tblTempUsageDetail_20' ) end [2025-04-04 09:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:28:26] Production.INFO: ==28936== Releasing lock... [2025-04-04 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:28:26] Production.INFO: 38.25 MB #Memory Used# [2025-04-04 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:29:06 [end_date_ymd] => 2025-04-04 09:29:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:29:06' and `end` < '2025-04-04 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-04 09:29:19] Production.INFO: count ==1363 [2025-04-04 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:29:06 - End Time 2025-04-04 09:29:06 [2025-04-04 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831931', 'tblTempUsageDetail_20' ) start [2025-04-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831931', 'tblTempUsageDetail_20' ) end [2025-04-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831931', 'tblTempVendorCDR_20' ) start [2025-04-04 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831931', 'tblTempVendorCDR_20' ) end [2025-04-04 09:29:19] Production.INFO: ProcessCDR(1,14831931,1,1,2) [2025-04-04 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831931', 'tblTempUsageDetail_20' ) start [2025-04-04 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831931', 'tblTempUsageDetail_20' ) end [2025-04-04 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:29:25] Production.INFO: ==29016== Releasing lock... [2025-04-04 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:29:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-04 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:30:07 [end_date_ymd] => 2025-04-04 09:30:07 [RateCDR] => 1 ) [2025-04-04 09:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:30:07' and `end` < '2025-04-04 09:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:30:19] Production.INFO: count ==1370 [2025-04-04 09:30:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:30:07 - End Time 2025-04-04 09:30:07 [2025-04-04 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831936', 'tblTempUsageDetail_20' ) start [2025-04-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831936', 'tblTempUsageDetail_20' ) end [2025-04-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831936', 'tblTempVendorCDR_20' ) start [2025-04-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831936', 'tblTempVendorCDR_20' ) end [2025-04-04 09:30:20] Production.INFO: ProcessCDR(1,14831936,1,1,2) [2025-04-04 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831936', 'tblTempUsageDetail_20' ) start [2025-04-04 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831936', 'tblTempUsageDetail_20' ) end [2025-04-04 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:30:26] Production.INFO: ==29101== Releasing lock... [2025-04-04 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:30:26] Production.INFO: 38.25 MB #Memory Used# [2025-04-04 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:31:05 [end_date_ymd] => 2025-04-04 09:31:05 [RateCDR] => 1 ) [2025-04-04 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-04 06:31:05' and `end` < '2025-04-04 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-04 09:31:18] Production.INFO: count ==1435 [2025-04-04 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:31:05 - End Time 2025-04-04 09:31:05 [2025-04-04 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831942', 'tblTempUsageDetail_20' ) start [2025-04-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831942', 'tblTempUsageDetail_20' ) end [2025-04-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831942', 'tblTempVendorCDR_20' ) start [2025-04-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831942', 'tblTempVendorCDR_20' ) end [2025-04-04 09:31:19] Production.INFO: ProcessCDR(1,14831942,1,1,2) [2025-04-04 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831942', 'tblTempUsageDetail_20' ) start [2025-04-04 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831942', 'tblTempUsageDetail_20' ) end [2025-04-04 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:31:25] Production.INFO: ==29180== Releasing lock... [2025-04-04 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:31:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-04 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:32:06 [end_date_ymd] => 2025-04-04 09:32:06 [RateCDR] => 1 ) [2025-04-04 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:32:06' and `end` < '2025-04-04 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:32:19] Production.INFO: count ==1450 [2025-04-04 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:32:06 - End Time 2025-04-04 09:32:06 [2025-04-04 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831947', 'tblTempUsageDetail_20' ) start [2025-04-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831947', 'tblTempUsageDetail_20' ) end [2025-04-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831947', 'tblTempVendorCDR_20' ) start [2025-04-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831947', 'tblTempVendorCDR_20' ) end [2025-04-04 09:32:19] Production.INFO: ProcessCDR(1,14831947,1,1,2) [2025-04-04 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831947', 'tblTempUsageDetail_20' ) start [2025-04-04 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831947', 'tblTempUsageDetail_20' ) end [2025-04-04 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:32:25] Production.INFO: ==29256== Releasing lock... [2025-04-04 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:32:25] Production.INFO: 39 MB #Memory Used# [2025-04-04 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:33:06 [end_date_ymd] => 2025-04-04 09:33:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:33:06' and `end` < '2025-04-04 09: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-04 09:33:19] Production.INFO: count ==1461 [2025-04-04 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:33:06 - End Time 2025-04-04 09:33:06 [2025-04-04 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831952', 'tblTempUsageDetail_20' ) start [2025-04-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831952', 'tblTempUsageDetail_20' ) end [2025-04-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831952', 'tblTempVendorCDR_20' ) start [2025-04-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831952', 'tblTempVendorCDR_20' ) end [2025-04-04 09:33:19] Production.INFO: ProcessCDR(1,14831952,1,1,2) [2025-04-04 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831952', 'tblTempUsageDetail_20' ) start [2025-04-04 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831952', 'tblTempUsageDetail_20' ) end [2025-04-04 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:33:25] Production.INFO: ==29373== Releasing lock... [2025-04-04 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:33:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-04 09:34:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:34:07 [end_date_ymd] => 2025-04-04 09:34:07 [RateCDR] => 1 ) [2025-04-04 09:34: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 06:34:07' and `end` < '2025-04-04 09:34: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-04 09:34:20] Production.INFO: count ==1472 [2025-04-04 09:34:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:34:07 - End Time 2025-04-04 09:34:07 [2025-04-04 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831957', 'tblTempUsageDetail_20' ) start [2025-04-04 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831957', 'tblTempUsageDetail_20' ) end [2025-04-04 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831957', 'tblTempVendorCDR_20' ) start [2025-04-04 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831957', 'tblTempVendorCDR_20' ) end [2025-04-04 09:34:20] Production.INFO: ProcessCDR(1,14831957,1,1,2) [2025-04-04 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831957', 'tblTempUsageDetail_20' ) start [2025-04-04 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831957', 'tblTempUsageDetail_20' ) end [2025-04-04 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:34:26] Production.INFO: ==29457== Releasing lock... [2025-04-04 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:34:26] Production.INFO: 39.25 MB #Memory Used# [2025-04-04 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:35:06 [end_date_ymd] => 2025-04-04 09:35:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:35:06' and `end` < '2025-04-04 09: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-04 09:35:19] Production.INFO: count ==1484 [2025-04-04 09:35:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:35:06 - End Time 2025-04-04 09:35:06 [2025-04-04 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831962', 'tblTempUsageDetail_20' ) start [2025-04-04 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831962', 'tblTempUsageDetail_20' ) end [2025-04-04 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831962', 'tblTempVendorCDR_20' ) start [2025-04-04 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831962', 'tblTempVendorCDR_20' ) end [2025-04-04 09:35:20] Production.INFO: ProcessCDR(1,14831962,1,1,2) [2025-04-04 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831962', 'tblTempUsageDetail_20' ) start [2025-04-04 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831962', 'tblTempUsageDetail_20' ) end [2025-04-04 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:35:25] Production.INFO: ==29538== Releasing lock... [2025-04-04 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:35:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-04 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:36:06 [end_date_ymd] => 2025-04-04 09:36:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:36:06' and `end` < '2025-04-04 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-04 09:36:19] Production.INFO: count ==1508 [2025-04-04 09:36:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:36:06 - End Time 2025-04-04 09:36:06 [2025-04-04 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831967', 'tblTempUsageDetail_20' ) start [2025-04-04 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831967', 'tblTempUsageDetail_20' ) end [2025-04-04 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831967', 'tblTempVendorCDR_20' ) start [2025-04-04 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831967', 'tblTempVendorCDR_20' ) end [2025-04-04 09:36:20] Production.INFO: ProcessCDR(1,14831967,1,1,2) [2025-04-04 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831967', 'tblTempUsageDetail_20' ) start [2025-04-04 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831967', 'tblTempUsageDetail_20' ) end [2025-04-04 09:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:36:26] Production.INFO: ==29620== Releasing lock... [2025-04-04 09:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:36:26] Production.INFO: 39.25 MB #Memory Used# [2025-04-04 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:37:06 [end_date_ymd] => 2025-04-04 09:37:06 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:37:06' and `end` < '2025-04-04 09: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-04 09:37:19] Production.INFO: count ==1530 [2025-04-04 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:37:06 - End Time 2025-04-04 09:37:06 [2025-04-04 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831972', 'tblTempUsageDetail_20' ) start [2025-04-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831972', 'tblTempUsageDetail_20' ) end [2025-04-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831972', 'tblTempVendorCDR_20' ) start [2025-04-04 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831972', 'tblTempVendorCDR_20' ) end [2025-04-04 09:37:19] Production.INFO: ProcessCDR(1,14831972,1,1,2) [2025-04-04 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831972', 'tblTempUsageDetail_20' ) start [2025-04-04 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831972', 'tblTempUsageDetail_20' ) end [2025-04-04 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:37:26] Production.INFO: ==29698== Releasing lock... [2025-04-04 09:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:37:26] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:38:06 [end_date_ymd] => 2025-04-04 09:38:06 [RateCDR] => 1 ) [2025-04-04 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:38:06' and `end` < '2025-04-04 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:38:19] Production.INFO: count ==1539 [2025-04-04 09:38:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:38:06 - End Time 2025-04-04 09:38:06 [2025-04-04 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831977', 'tblTempUsageDetail_20' ) start [2025-04-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831977', 'tblTempUsageDetail_20' ) end [2025-04-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831977', 'tblTempVendorCDR_20' ) start [2025-04-04 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831977', 'tblTempVendorCDR_20' ) end [2025-04-04 09:38:20] Production.INFO: ProcessCDR(1,14831977,1,1,2) [2025-04-04 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831977', 'tblTempUsageDetail_20' ) start [2025-04-04 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831977', 'tblTempUsageDetail_20' ) end [2025-04-04 09:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:38:26] Production.INFO: ==29775== Releasing lock... [2025-04-04 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:38:26] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:39:06 [end_date_ymd] => 2025-04-04 09:39:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:39:06' and `end` < '2025-04-04 09: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-04 09:39:19] Production.INFO: count ==1552 [2025-04-04 09:39:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:39:06 - End Time 2025-04-04 09:39:06 [2025-04-04 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831982', 'tblTempUsageDetail_20' ) start [2025-04-04 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831982', 'tblTempUsageDetail_20' ) end [2025-04-04 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831982', 'tblTempVendorCDR_20' ) start [2025-04-04 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831982', 'tblTempVendorCDR_20' ) end [2025-04-04 09:39:20] Production.INFO: ProcessCDR(1,14831982,1,1,2) [2025-04-04 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831982', 'tblTempUsageDetail_20' ) start [2025-04-04 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831982', 'tblTempUsageDetail_20' ) end [2025-04-04 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:39:25] Production.INFO: ==29853== Releasing lock... [2025-04-04 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:39:25] Production.INFO: 40 MB #Memory Used# [2025-04-04 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:40:07 [end_date_ymd] => 2025-04-04 09:40:07 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:40:07' and `end` < '2025-04-04 09: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-04 09:40:20] Production.INFO: count ==1574 [2025-04-04 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:40:07 - End Time 2025-04-04 09:40:07 [2025-04-04 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831988', 'tblTempUsageDetail_20' ) start [2025-04-04 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831988', 'tblTempUsageDetail_20' ) end [2025-04-04 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831988', 'tblTempVendorCDR_20' ) start [2025-04-04 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831988', 'tblTempVendorCDR_20' ) end [2025-04-04 09:40:20] Production.INFO: ProcessCDR(1,14831988,1,1,2) [2025-04-04 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831988', 'tblTempUsageDetail_20' ) start [2025-04-04 09:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831988', 'tblTempUsageDetail_20' ) end [2025-04-04 09:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:40:27] Production.INFO: ==29936== Releasing lock... [2025-04-04 09:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:40:27] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:41:06 [end_date_ymd] => 2025-04-04 09:41:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:41:06' and `end` < '2025-04-04 09: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-04 09:41:19] Production.INFO: count ==1703 [2025-04-04 09:41:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:41:06 - End Time 2025-04-04 09:41:06 [2025-04-04 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831993', 'tblTempUsageDetail_20' ) start [2025-04-04 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831993', 'tblTempUsageDetail_20' ) end [2025-04-04 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831993', 'tblTempVendorCDR_20' ) start [2025-04-04 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831993', 'tblTempVendorCDR_20' ) end [2025-04-04 09:41:20] Production.INFO: ProcessCDR(1,14831993,1,1,2) [2025-04-04 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831993', 'tblTempUsageDetail_20' ) start [2025-04-04 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831993', 'tblTempUsageDetail_20' ) end [2025-04-04 09:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:41:25] Production.INFO: ==30023== Releasing lock... [2025-04-04 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:41:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:42:06 [end_date_ymd] => 2025-04-04 09:42:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:42:06' and `end` < '2025-04-04 09: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-04 09:42:19] Production.INFO: count ==1725 [2025-04-04 09:42:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:42:06 - End Time 2025-04-04 09:42:06 [2025-04-04 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831998', 'tblTempUsageDetail_20' ) start [2025-04-04 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14831998', 'tblTempUsageDetail_20' ) end [2025-04-04 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831998', 'tblTempVendorCDR_20' ) start [2025-04-04 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14831998', 'tblTempVendorCDR_20' ) end [2025-04-04 09:42:20] Production.INFO: ProcessCDR(1,14831998,1,1,2) [2025-04-04 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14831998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14831998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14831998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14831998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831998', 'tblTempUsageDetail_20' ) start [2025-04-04 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14831998', 'tblTempUsageDetail_20' ) end [2025-04-04 09:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:42:26] Production.INFO: ==30101== Releasing lock... [2025-04-04 09:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:42:26] Production.INFO: 41 MB #Memory Used# [2025-04-04 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:43:06 [end_date_ymd] => 2025-04-04 09:43:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:43:06' and `end` < '2025-04-04 09: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-04 09:43:19] Production.INFO: count ==1743 [2025-04-04 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:43:06 - End Time 2025-04-04 09:43:06 [2025-04-04 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832002', 'tblTempUsageDetail_20' ) start [2025-04-04 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832002', 'tblTempUsageDetail_20' ) end [2025-04-04 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832002', 'tblTempVendorCDR_20' ) start [2025-04-04 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832002', 'tblTempVendorCDR_20' ) end [2025-04-04 09:43:19] Production.INFO: ProcessCDR(1,14832002,1,1,2) [2025-04-04 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832002', 'tblTempUsageDetail_20' ) start [2025-04-04 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832002', 'tblTempUsageDetail_20' ) end [2025-04-04 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:43:25] Production.INFO: ==30178== Releasing lock... [2025-04-04 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:43:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-04 09:44:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:44:07 [end_date_ymd] => 2025-04-04 09:44:07 [RateCDR] => 1 ) [2025-04-04 09:44: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 06:44:07' and `end` < '2025-04-04 09:44: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-04 09:44:20] Production.INFO: count ==1756 [2025-04-04 09:44:21] Production.ERROR: pbx CDR StartTime 2025-04-04 06:44:07 - End Time 2025-04-04 09:44:07 [2025-04-04 09:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832008', 'tblTempUsageDetail_20' ) start [2025-04-04 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832008', 'tblTempUsageDetail_20' ) end [2025-04-04 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832008', 'tblTempVendorCDR_20' ) start [2025-04-04 09:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832008', 'tblTempVendorCDR_20' ) end [2025-04-04 09:44:21] Production.INFO: ProcessCDR(1,14832008,1,1,2) [2025-04-04 09:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832008', 'tblTempUsageDetail_20' ) start [2025-04-04 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832008', 'tblTempUsageDetail_20' ) end [2025-04-04 09:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:44:26] Production.INFO: ==30259== Releasing lock... [2025-04-04 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:44:26] Production.INFO: 41.25 MB #Memory Used# [2025-04-04 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:45:05 [end_date_ymd] => 2025-04-04 09:45:05 [RateCDR] => 1 ) [2025-04-04 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:45:05' and `end` < '2025-04-04 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:45:19] Production.INFO: count ==1770 [2025-04-04 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:45:05 - End Time 2025-04-04 09:45:05 [2025-04-04 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832013', 'tblTempUsageDetail_20' ) start [2025-04-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832013', 'tblTempUsageDetail_20' ) end [2025-04-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832013', 'tblTempVendorCDR_20' ) start [2025-04-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832013', 'tblTempVendorCDR_20' ) end [2025-04-04 09:45:19] Production.INFO: ProcessCDR(1,14832013,1,1,2) [2025-04-04 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832013', 'tblTempUsageDetail_20' ) start [2025-04-04 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832013', 'tblTempUsageDetail_20' ) end [2025-04-04 09:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:45:26] Production.INFO: ==30335== Releasing lock... [2025-04-04 09:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:45:26] Production.INFO: 41.25 MB #Memory Used# [2025-04-04 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:46:06 [end_date_ymd] => 2025-04-04 09:46:06 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:46:06' and `end` < '2025-04-04 09: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-04 09:46:19] Production.INFO: count ==1777 [2025-04-04 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:46:06 - End Time 2025-04-04 09:46:06 [2025-04-04 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832018', 'tblTempUsageDetail_20' ) start [2025-04-04 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832018', 'tblTempUsageDetail_20' ) end [2025-04-04 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832018', 'tblTempVendorCDR_20' ) start [2025-04-04 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832018', 'tblTempVendorCDR_20' ) end [2025-04-04 09:46:20] Production.INFO: ProcessCDR(1,14832018,1,1,2) [2025-04-04 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832018', 'tblTempUsageDetail_20' ) start [2025-04-04 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832018', 'tblTempUsageDetail_20' ) end [2025-04-04 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:46:25] Production.INFO: ==30420== Releasing lock... [2025-04-04 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:46:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:47:05 [end_date_ymd] => 2025-04-04 09:47:05 [RateCDR] => 1 ) [2025-04-04 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:47:05' and `end` < '2025-04-04 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:47:18] Production.INFO: count ==1788 [2025-04-04 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:47:05 - End Time 2025-04-04 09:47:05 [2025-04-04 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832023', 'tblTempUsageDetail_20' ) start [2025-04-04 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832023', 'tblTempUsageDetail_20' ) end [2025-04-04 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832023', 'tblTempVendorCDR_20' ) start [2025-04-04 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832023', 'tblTempVendorCDR_20' ) end [2025-04-04 09:47:19] Production.INFO: ProcessCDR(1,14832023,1,1,2) [2025-04-04 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832023', 'tblTempUsageDetail_20' ) start [2025-04-04 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832023', 'tblTempUsageDetail_20' ) end [2025-04-04 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:47:24] Production.INFO: ==30496== Releasing lock... [2025-04-04 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:47:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:48:06 [end_date_ymd] => 2025-04-04 09:48:06 [RateCDR] => 1 ) [2025-04-04 09:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:48:06' and `end` < '2025-04-04 09:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:48:19] Production.INFO: count ==1795 [2025-04-04 09:48:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:48:06 - End Time 2025-04-04 09:48:06 [2025-04-04 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832028', 'tblTempUsageDetail_20' ) start [2025-04-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832028', 'tblTempUsageDetail_20' ) end [2025-04-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832028', 'tblTempVendorCDR_20' ) start [2025-04-04 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832028', 'tblTempVendorCDR_20' ) end [2025-04-04 09:48:20] Production.INFO: ProcessCDR(1,14832028,1,1,2) [2025-04-04 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832028', 'tblTempUsageDetail_20' ) start [2025-04-04 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832028', 'tblTempUsageDetail_20' ) end [2025-04-04 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:48:25] Production.INFO: ==30611== Releasing lock... [2025-04-04 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:48:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:49:05 [end_date_ymd] => 2025-04-04 09:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 06:49:05' and `end` < '2025-04-04 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-04 09:49:18] Production.INFO: count ==1817 [2025-04-04 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:49:05 - End Time 2025-04-04 09:49:05 [2025-04-04 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832033', 'tblTempUsageDetail_20' ) start [2025-04-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832033', 'tblTempUsageDetail_20' ) end [2025-04-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832033', 'tblTempVendorCDR_20' ) start [2025-04-04 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832033', 'tblTempVendorCDR_20' ) end [2025-04-04 09:49:19] Production.INFO: ProcessCDR(1,14832033,1,1,2) [2025-04-04 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832033', 'tblTempUsageDetail_20' ) start [2025-04-04 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832033', 'tblTempUsageDetail_20' ) end [2025-04-04 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:49:25] Production.INFO: ==30692== Releasing lock... [2025-04-04 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:49:25] Production.INFO: 42 MB #Memory Used# [2025-04-04 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:50:07 [end_date_ymd] => 2025-04-04 09:50:07 [RateCDR] => 1 ) [2025-04-04 09: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-04 06:50:07' and `end` < '2025-04-04 09: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-04 09:50:20] Production.INFO: count ==1838 [2025-04-04 09:50:21] Production.ERROR: pbx CDR StartTime 2025-04-04 06:50:07 - End Time 2025-04-04 09:50:07 [2025-04-04 09:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832039', 'tblTempUsageDetail_20' ) start [2025-04-04 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832039', 'tblTempUsageDetail_20' ) end [2025-04-04 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832039', 'tblTempVendorCDR_20' ) start [2025-04-04 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832039', 'tblTempVendorCDR_20' ) end [2025-04-04 09:50:21] Production.INFO: ProcessCDR(1,14832039,1,1,2) [2025-04-04 09:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832039', 'tblTempUsageDetail_20' ) start [2025-04-04 09:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832039', 'tblTempUsageDetail_20' ) end [2025-04-04 09:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:50:27] Production.INFO: ==30779== Releasing lock... [2025-04-04 09:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:50:27] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:51:05 [end_date_ymd] => 2025-04-04 09:51:05 [RateCDR] => 1 ) [2025-04-04 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:51:05' and `end` < '2025-04-04 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:51:18] Production.INFO: count ==1922 [2025-04-04 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:51:05 - End Time 2025-04-04 09:51:05 [2025-04-04 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832044', 'tblTempUsageDetail_20' ) start [2025-04-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832044', 'tblTempUsageDetail_20' ) end [2025-04-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832044', 'tblTempVendorCDR_20' ) start [2025-04-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832044', 'tblTempVendorCDR_20' ) end [2025-04-04 09:51:19] Production.INFO: ProcessCDR(1,14832044,1,1,2) [2025-04-04 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832044', 'tblTempUsageDetail_20' ) start [2025-04-04 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832044', 'tblTempUsageDetail_20' ) end [2025-04-04 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:51:25] Production.INFO: ==30857== Releasing lock... [2025-04-04 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:51:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:52:06 [end_date_ymd] => 2025-04-04 09:52:06 [RateCDR] => 1 ) [2025-04-04 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:52:06' and `end` < '2025-04-04 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:52:19] Production.INFO: count ==1927 [2025-04-04 09:52:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:52:06 - End Time 2025-04-04 09:52:06 [2025-04-04 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832049', 'tblTempUsageDetail_20' ) start [2025-04-04 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832049', 'tblTempUsageDetail_20' ) end [2025-04-04 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832049', 'tblTempVendorCDR_20' ) start [2025-04-04 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832049', 'tblTempVendorCDR_20' ) end [2025-04-04 09:52:20] Production.INFO: ProcessCDR(1,14832049,1,1,2) [2025-04-04 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832049', 'tblTempUsageDetail_20' ) start [2025-04-04 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832049', 'tblTempUsageDetail_20' ) end [2025-04-04 09:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:52:26] Production.INFO: ==30934== Releasing lock... [2025-04-04 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:52:26] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:53:05 [end_date_ymd] => 2025-04-04 09:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 06:53:05' and `end` < '2025-04-04 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-04 09:53:18] Production.INFO: count ==1944 [2025-04-04 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:53:05 - End Time 2025-04-04 09:53:05 [2025-04-04 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832054', 'tblTempUsageDetail_20' ) start [2025-04-04 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832054', 'tblTempUsageDetail_20' ) end [2025-04-04 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832054', 'tblTempVendorCDR_20' ) start [2025-04-04 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832054', 'tblTempVendorCDR_20' ) end [2025-04-04 09:53:19] Production.INFO: ProcessCDR(1,14832054,1,1,2) [2025-04-04 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832054', 'tblTempUsageDetail_20' ) start [2025-04-04 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832054', 'tblTempUsageDetail_20' ) end [2025-04-04 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:53:23] Production.INFO: ==31015== Releasing lock... [2025-04-04 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:53:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 09:54:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:54:07 [end_date_ymd] => 2025-04-04 09:54:07 [RateCDR] => 1 ) [2025-04-04 09:54: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 06:54:07' and `end` < '2025-04-04 09:54: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-04 09:54:20] Production.INFO: count ==1952 [2025-04-04 09:54:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:54:07 - End Time 2025-04-04 09:54:07 [2025-04-04 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832059', 'tblTempUsageDetail_20' ) start [2025-04-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832059', 'tblTempUsageDetail_20' ) end [2025-04-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832059', 'tblTempVendorCDR_20' ) start [2025-04-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832059', 'tblTempVendorCDR_20' ) end [2025-04-04 09:54:20] Production.INFO: ProcessCDR(1,14832059,1,1,2) [2025-04-04 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832059', 'tblTempUsageDetail_20' ) start [2025-04-04 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832059', 'tblTempUsageDetail_20' ) end [2025-04-04 09:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:54:26] Production.INFO: ==31095== Releasing lock... [2025-04-04 09:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:54:26] Production.INFO: 43 MB #Memory Used# [2025-04-04 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:55:06 [end_date_ymd] => 2025-04-04 09:55:06 [RateCDR] => 1 ) [2025-04-04 09: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 06:55:06' and `end` < '2025-04-04 09: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-04 09:55:19] Production.INFO: count ==1967 [2025-04-04 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:55:06 - End Time 2025-04-04 09:55:06 [2025-04-04 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832064', 'tblTempUsageDetail_20' ) start [2025-04-04 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832064', 'tblTempUsageDetail_20' ) end [2025-04-04 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832064', 'tblTempVendorCDR_20' ) start [2025-04-04 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832064', 'tblTempVendorCDR_20' ) end [2025-04-04 09:55:20] Production.INFO: ProcessCDR(1,14832064,1,1,2) [2025-04-04 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832064', 'tblTempUsageDetail_20' ) start [2025-04-04 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832064', 'tblTempUsageDetail_20' ) end [2025-04-04 09:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:55:26] Production.INFO: ==31170== Releasing lock... [2025-04-04 09:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:55:26] Production.INFO: 43 MB #Memory Used# [2025-04-04 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:56:06 [end_date_ymd] => 2025-04-04 09:56:06 [RateCDR] => 1 ) [2025-04-04 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:56:06' and `end` < '2025-04-04 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 09:56:19] Production.INFO: count ==1996 [2025-04-04 09:56:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:56:06 - End Time 2025-04-04 09:56:06 [2025-04-04 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832069', 'tblTempUsageDetail_20' ) start [2025-04-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832069', 'tblTempUsageDetail_20' ) end [2025-04-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832069', 'tblTempVendorCDR_20' ) start [2025-04-04 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832069', 'tblTempVendorCDR_20' ) end [2025-04-04 09:56:20] Production.INFO: ProcessCDR(1,14832069,1,1,2) [2025-04-04 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832069', 'tblTempUsageDetail_20' ) start [2025-04-04 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832069', 'tblTempUsageDetail_20' ) end [2025-04-04 09:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:56:26] Production.INFO: ==31250== Releasing lock... [2025-04-04 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:56:26] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:57:05 [end_date_ymd] => 2025-04-04 09:57:05 [RateCDR] => 1 ) [2025-04-04 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 06:57:05' and `end` < '2025-04-04 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-04 09:57:19] Production.INFO: count ==2015 [2025-04-04 09:57:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:57:05 - End Time 2025-04-04 09:57:05 [2025-04-04 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832074', 'tblTempUsageDetail_20' ) start [2025-04-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832074', 'tblTempUsageDetail_20' ) end [2025-04-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832074', 'tblTempVendorCDR_20' ) start [2025-04-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832074', 'tblTempVendorCDR_20' ) end [2025-04-04 09:57:20] Production.INFO: ProcessCDR(1,14832074,1,1,2) [2025-04-04 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832074', 'tblTempUsageDetail_20' ) start [2025-04-04 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832074', 'tblTempUsageDetail_20' ) end [2025-04-04 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:57:26] Production.INFO: ==31331== Releasing lock... [2025-04-04 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:57:26] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:58:06 [end_date_ymd] => 2025-04-04 09:58:06 [RateCDR] => 1 ) [2025-04-04 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-04 06:58:06' and `end` < '2025-04-04 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-04 09:58:19] Production.INFO: count ==2034 [2025-04-04 09:58:20] Production.ERROR: pbx CDR StartTime 2025-04-04 06:58:06 - End Time 2025-04-04 09:58:06 [2025-04-04 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832075', 'tblTempUsageDetail_20' ) start [2025-04-04 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832075', 'tblTempUsageDetail_20' ) end [2025-04-04 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832075', 'tblTempVendorCDR_20' ) start [2025-04-04 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832075', 'tblTempVendorCDR_20' ) end [2025-04-04 09:58:20] Production.INFO: ProcessCDR(1,14832075,1,1,2) [2025-04-04 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832075', 'tblTempUsageDetail_20' ) start [2025-04-04 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832075', 'tblTempUsageDetail_20' ) end [2025-04-04 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:58:24] Production.INFO: ==31410== Releasing lock... [2025-04-04 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:58:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-04 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 06:59:05 [end_date_ymd] => 2025-04-04 09:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 06:59:05' and `end` < '2025-04-04 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-04 09:59:19] Production.INFO: count ==2048 [2025-04-04 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 06:59:05 - End Time 2025-04-04 09:59:05 [2025-04-04 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832084', 'tblTempUsageDetail_20' ) start [2025-04-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832084', 'tblTempUsageDetail_20' ) end [2025-04-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832084', 'tblTempVendorCDR_20' ) start [2025-04-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832084', 'tblTempVendorCDR_20' ) end [2025-04-04 09:59:19] Production.INFO: ProcessCDR(1,14832084,1,1,2) [2025-04-04 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832084', 'tblTempUsageDetail_20' ) start [2025-04-04 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832084', 'tblTempUsageDetail_20' ) end [2025-04-04 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 09:59:25] Production.INFO: ==31483== Releasing lock... [2025-04-04 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 09:59:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-04 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:00:07 [end_date_ymd] => 2025-04-04 10:00:07 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:00:07' and `end` < '2025-04-04 10: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-04 10:00:20] Production.INFO: count ==2082 [2025-04-04 10:00:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:00:07 - End Time 2025-04-04 10:00:07 [2025-04-04 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832089', 'tblTempUsageDetail_20' ) start [2025-04-04 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832089', 'tblTempUsageDetail_20' ) end [2025-04-04 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832089', 'tblTempVendorCDR_20' ) start [2025-04-04 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832089', 'tblTempVendorCDR_20' ) end [2025-04-04 10:00:21] Production.INFO: ProcessCDR(1,14832089,1,1,2) [2025-04-04 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832089', 'tblTempUsageDetail_20' ) start [2025-04-04 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832089', 'tblTempUsageDetail_20' ) end [2025-04-04 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:00:27] Production.INFO: ==31568== Releasing lock... [2025-04-04 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:00:27] Production.INFO: 43.75 MB #Memory Used# [2025-04-04 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:01:05 [end_date_ymd] => 2025-04-04 10:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:01:05' and `end` < '2025-04-04 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-04 10:01:19] Production.INFO: count ==2172 [2025-04-04 10:01:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:01:05 - End Time 2025-04-04 10:01:05 [2025-04-04 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832095', 'tblTempUsageDetail_20' ) start [2025-04-04 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832095', 'tblTempUsageDetail_20' ) end [2025-04-04 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832095', 'tblTempVendorCDR_20' ) start [2025-04-04 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832095', 'tblTempVendorCDR_20' ) end [2025-04-04 10:01:20] Production.INFO: ProcessCDR(1,14832095,1,1,2) [2025-04-04 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832095', 'tblTempUsageDetail_20' ) start [2025-04-04 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832095', 'tblTempUsageDetail_20' ) end [2025-04-04 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:01:25] Production.INFO: ==31654== Releasing lock... [2025-04-04 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:01:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-04 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:02:06 [end_date_ymd] => 2025-04-04 10:02:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:02:06' and `end` < '2025-04-04 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-04 10:02:19] Production.INFO: count ==2204 [2025-04-04 10:02:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:02:06 - End Time 2025-04-04 10:02:06 [2025-04-04 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832100', 'tblTempUsageDetail_20' ) start [2025-04-04 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832100', 'tblTempUsageDetail_20' ) end [2025-04-04 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832100', 'tblTempVendorCDR_20' ) start [2025-04-04 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832100', 'tblTempVendorCDR_20' ) end [2025-04-04 10:02:20] Production.INFO: ProcessCDR(1,14832100,1,1,2) [2025-04-04 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832100', 'tblTempUsageDetail_20' ) start [2025-04-04 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832100', 'tblTempUsageDetail_20' ) end [2025-04-04 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:02:26] Production.INFO: ==31732== Releasing lock... [2025-04-04 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:02:26] Production.INFO: 44.5 MB #Memory Used# [2025-04-04 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:03:05 [end_date_ymd] => 2025-04-04 10:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:03:05' and `end` < '2025-04-04 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-04 10:03:19] Production.INFO: count ==2219 [2025-04-04 10:03:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:03:05 - End Time 2025-04-04 10:03:05 [2025-04-04 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832105', 'tblTempUsageDetail_20' ) start [2025-04-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832105', 'tblTempUsageDetail_20' ) end [2025-04-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832105', 'tblTempVendorCDR_20' ) start [2025-04-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832105', 'tblTempVendorCDR_20' ) end [2025-04-04 10:03:20] Production.INFO: ProcessCDR(1,14832105,1,1,2) [2025-04-04 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832105', 'tblTempUsageDetail_20' ) start [2025-04-04 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832105', 'tblTempUsageDetail_20' ) end [2025-04-04 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:03:26] Production.INFO: ==31806== Releasing lock... [2025-04-04 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:03:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-04 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:04:06 [end_date_ymd] => 2025-04-04 10:04:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:04:06' and `end` < '2025-04-04 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-04 10:04:19] Production.INFO: count ==2249 [2025-04-04 10:04:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:04:06 - End Time 2025-04-04 10:04:06 [2025-04-04 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832110', 'tblTempUsageDetail_20' ) start [2025-04-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832110', 'tblTempUsageDetail_20' ) end [2025-04-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832110', 'tblTempVendorCDR_20' ) start [2025-04-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832110', 'tblTempVendorCDR_20' ) end [2025-04-04 10:04:20] Production.INFO: ProcessCDR(1,14832110,1,1,2) [2025-04-04 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832110', 'tblTempUsageDetail_20' ) start [2025-04-04 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832110', 'tblTempUsageDetail_20' ) end [2025-04-04 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:04:26] Production.INFO: ==31920== Releasing lock... [2025-04-04 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:04:26] Production.INFO: 45 MB #Memory Used# [2025-04-04 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:05:06 [end_date_ymd] => 2025-04-04 10:05:06 [RateCDR] => 1 ) [2025-04-04 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:05:06' and `end` < '2025-04-04 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:05:19] Production.INFO: count ==2296 [2025-04-04 10:05:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:05:06 - End Time 2025-04-04 10:05:06 [2025-04-04 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832115', 'tblTempUsageDetail_20' ) start [2025-04-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832115', 'tblTempUsageDetail_20' ) end [2025-04-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832115', 'tblTempVendorCDR_20' ) start [2025-04-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832115', 'tblTempVendorCDR_20' ) end [2025-04-04 10:05:20] Production.INFO: ProcessCDR(1,14832115,1,1,2) [2025-04-04 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832115', 'tblTempUsageDetail_20' ) start [2025-04-04 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832115', 'tblTempUsageDetail_20' ) end [2025-04-04 10:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:05:26] Production.INFO: ==31996== Releasing lock... [2025-04-04 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:05:26] Production.INFO: 45.5 MB #Memory Used# [2025-04-04 10:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:06:07 [end_date_ymd] => 2025-04-04 10:06:07 [RateCDR] => 1 ) [2025-04-04 10:06: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 07:06:07' and `end` < '2025-04-04 10:06: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-04 10:06:20] Production.INFO: count ==2320 [2025-04-04 10:06:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:06:07 - End Time 2025-04-04 10:06:07 [2025-04-04 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832120', 'tblTempUsageDetail_20' ) start [2025-04-04 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832120', 'tblTempUsageDetail_20' ) end [2025-04-04 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832120', 'tblTempVendorCDR_20' ) start [2025-04-04 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832120', 'tblTempVendorCDR_20' ) end [2025-04-04 10:06:21] Production.INFO: ProcessCDR(1,14832120,1,1,2) [2025-04-04 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832120', 'tblTempUsageDetail_20' ) start [2025-04-04 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832120', 'tblTempUsageDetail_20' ) end [2025-04-04 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:06:26] Production.INFO: ==32075== Releasing lock... [2025-04-04 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:06:26] Production.INFO: 45.75 MB #Memory Used# [2025-04-04 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:07:05 [end_date_ymd] => 2025-04-04 10:07:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:07:05' and `end` < '2025-04-04 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-04 10:07:19] Production.INFO: count ==2362 [2025-04-04 10:07:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:07:05 - End Time 2025-04-04 10:07:05 [2025-04-04 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832125', 'tblTempUsageDetail_20' ) start [2025-04-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832125', 'tblTempUsageDetail_20' ) end [2025-04-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832125', 'tblTempVendorCDR_20' ) start [2025-04-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832125', 'tblTempVendorCDR_20' ) end [2025-04-04 10:07:20] Production.INFO: ProcessCDR(1,14832125,1,1,2) [2025-04-04 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832125', 'tblTempUsageDetail_20' ) start [2025-04-04 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832125', 'tblTempUsageDetail_20' ) end [2025-04-04 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:07:26] Production.INFO: ==32145== Releasing lock... [2025-04-04 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:07:26] Production.INFO: 45.75 MB #Memory Used# [2025-04-04 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:08:06 [end_date_ymd] => 2025-04-04 10:08:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:08:06' and `end` < '2025-04-04 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-04 10:08:19] Production.INFO: count ==2368 [2025-04-04 10:08:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:08:06 - End Time 2025-04-04 10:08:06 [2025-04-04 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832130', 'tblTempUsageDetail_20' ) start [2025-04-04 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832130', 'tblTempUsageDetail_20' ) end [2025-04-04 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832130', 'tblTempVendorCDR_20' ) start [2025-04-04 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832130', 'tblTempVendorCDR_20' ) end [2025-04-04 10:08:20] Production.INFO: ProcessCDR(1,14832130,1,1,2) [2025-04-04 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832130', 'tblTempUsageDetail_20' ) start [2025-04-04 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832130', 'tblTempUsageDetail_20' ) end [2025-04-04 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:08:26] Production.INFO: ==32219== Releasing lock... [2025-04-04 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:08:26] Production.INFO: 46 MB #Memory Used# [2025-04-04 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:09:05 [end_date_ymd] => 2025-04-04 10:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:09:05' and `end` < '2025-04-04 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-04 10:09:19] Production.INFO: count ==2392 [2025-04-04 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:09:05 - End Time 2025-04-04 10:09:05 [2025-04-04 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832135', 'tblTempUsageDetail_20' ) start [2025-04-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832135', 'tblTempUsageDetail_20' ) end [2025-04-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832135', 'tblTempVendorCDR_20' ) start [2025-04-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832135', 'tblTempVendorCDR_20' ) end [2025-04-04 10:09:20] Production.INFO: ProcessCDR(1,14832135,1,1,2) [2025-04-04 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832135', 'tblTempUsageDetail_20' ) start [2025-04-04 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832135', 'tblTempUsageDetail_20' ) end [2025-04-04 10:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:09:26] Production.INFO: ==32294== Releasing lock... [2025-04-04 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:09:26] Production.INFO: 46 MB #Memory Used# [2025-04-04 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:10:07 [end_date_ymd] => 2025-04-04 10:10:07 [RateCDR] => 1 ) [2025-04-04 10: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 07:10:07' and `end` < '2025-04-04 10: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-04 10:10:20] Production.INFO: count ==2399 [2025-04-04 10:10:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:10:07 - End Time 2025-04-04 10:10:07 [2025-04-04 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832140', 'tblTempUsageDetail_20' ) start [2025-04-04 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832140', 'tblTempUsageDetail_20' ) end [2025-04-04 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832140', 'tblTempVendorCDR_20' ) start [2025-04-04 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832140', 'tblTempVendorCDR_20' ) end [2025-04-04 10:10:21] Production.INFO: ProcessCDR(1,14832140,1,1,2) [2025-04-04 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832140', 'tblTempUsageDetail_20' ) start [2025-04-04 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832140', 'tblTempUsageDetail_20' ) end [2025-04-04 10:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:10:27] Production.INFO: ==32367== Releasing lock... [2025-04-04 10:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:10:27] Production.INFO: 46 MB #Memory Used# [2025-04-04 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:11:06 [end_date_ymd] => 2025-04-04 10:11:06 [RateCDR] => 1 ) [2025-04-04 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:11:06' and `end` < '2025-04-04 10: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-04 10:11:19] Production.INFO: count ==2469 [2025-04-04 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:11:06 - End Time 2025-04-04 10:11:06 [2025-04-04 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832146', 'tblTempUsageDetail_20' ) start [2025-04-04 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832146', 'tblTempUsageDetail_20' ) end [2025-04-04 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832146', 'tblTempVendorCDR_20' ) start [2025-04-04 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832146', 'tblTempVendorCDR_20' ) end [2025-04-04 10:11:20] Production.INFO: ProcessCDR(1,14832146,1,1,2) [2025-04-04 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832146', 'tblTempUsageDetail_20' ) start [2025-04-04 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832146', 'tblTempUsageDetail_20' ) end [2025-04-04 10:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:11:26] Production.INFO: ==32446== Releasing lock... [2025-04-04 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:11:26] Production.INFO: 46.5 MB #Memory Used# [2025-04-04 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:12:06 [end_date_ymd] => 2025-04-04 10:12:06 [RateCDR] => 1 ) [2025-04-04 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:12:06' and `end` < '2025-04-04 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:12:19] Production.INFO: count ==2489 [2025-04-04 10:12:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:12:06 - End Time 2025-04-04 10:12:06 [2025-04-04 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832151', 'tblTempUsageDetail_20' ) start [2025-04-04 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832151', 'tblTempUsageDetail_20' ) end [2025-04-04 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832151', 'tblTempVendorCDR_20' ) start [2025-04-04 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832151', 'tblTempVendorCDR_20' ) end [2025-04-04 10:12:20] Production.INFO: ProcessCDR(1,14832151,1,1,2) [2025-04-04 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832151', 'tblTempUsageDetail_20' ) start [2025-04-04 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832151', 'tblTempUsageDetail_20' ) end [2025-04-04 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:12:26] Production.INFO: ==32519== Releasing lock... [2025-04-04 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:12:26] Production.INFO: 46.75 MB #Memory Used# [2025-04-04 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:13:06 [end_date_ymd] => 2025-04-04 10:13:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:13:06' and `end` < '2025-04-04 10: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-04 10:13:19] Production.INFO: count ==2492 [2025-04-04 10:13:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:13:06 - End Time 2025-04-04 10:13:06 [2025-04-04 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832156', 'tblTempUsageDetail_20' ) start [2025-04-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832156', 'tblTempUsageDetail_20' ) end [2025-04-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832156', 'tblTempVendorCDR_20' ) start [2025-04-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832156', 'tblTempVendorCDR_20' ) end [2025-04-04 10:13:20] Production.INFO: ProcessCDR(1,14832156,1,1,2) [2025-04-04 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832156', 'tblTempUsageDetail_20' ) start [2025-04-04 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832156', 'tblTempUsageDetail_20' ) end [2025-04-04 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:13:25] Production.INFO: ==32589== Releasing lock... [2025-04-04 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:13:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-04 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:14:06 [end_date_ymd] => 2025-04-04 10:14:06 [RateCDR] => 1 ) [2025-04-04 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:14:06' and `end` < '2025-04-04 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:14:20] Production.INFO: count ==2506 [2025-04-04 10:14:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:14:06 - End Time 2025-04-04 10:14:06 [2025-04-04 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832161', 'tblTempUsageDetail_20' ) start [2025-04-04 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832161', 'tblTempUsageDetail_20' ) end [2025-04-04 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832161', 'tblTempVendorCDR_20' ) start [2025-04-04 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832161', 'tblTempVendorCDR_20' ) end [2025-04-04 10:14:21] Production.INFO: ProcessCDR(1,14832161,1,1,2) [2025-04-04 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832161', 'tblTempUsageDetail_20' ) start [2025-04-04 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832161', 'tblTempUsageDetail_20' ) end [2025-04-04 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:14:26] Production.INFO: ==32667== Releasing lock... [2025-04-04 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:14:26] Production.INFO: 46.75 MB #Memory Used# [2025-04-04 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:15:06 [end_date_ymd] => 2025-04-04 10:15:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:15:06' and `end` < '2025-04-04 10: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-04 10:15:19] Production.INFO: count ==2523 [2025-04-04 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:15:06 - End Time 2025-04-04 10:15:06 [2025-04-04 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832166', 'tblTempUsageDetail_20' ) start [2025-04-04 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832166', 'tblTempUsageDetail_20' ) end [2025-04-04 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832166', 'tblTempVendorCDR_20' ) start [2025-04-04 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832166', 'tblTempVendorCDR_20' ) end [2025-04-04 10:15:20] Production.INFO: ProcessCDR(1,14832166,1,1,2) [2025-04-04 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832166', 'tblTempUsageDetail_20' ) start [2025-04-04 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832166', 'tblTempUsageDetail_20' ) end [2025-04-04 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:15:26] Production.INFO: ==32743== Releasing lock... [2025-04-04 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:15:26] Production.INFO: 47 MB #Memory Used# [2025-04-04 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:16:06 [end_date_ymd] => 2025-04-04 10:16:06 [RateCDR] => 1 ) [2025-04-04 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:16:06' and `end` < '2025-04-04 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:16:19] Production.INFO: count ==2539 [2025-04-04 10:16:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:16:06 - End Time 2025-04-04 10:16:06 [2025-04-04 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832171', 'tblTempUsageDetail_20' ) start [2025-04-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832171', 'tblTempUsageDetail_20' ) end [2025-04-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832171', 'tblTempVendorCDR_20' ) start [2025-04-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832171', 'tblTempVendorCDR_20' ) end [2025-04-04 10:16:20] Production.INFO: ProcessCDR(1,14832171,1,1,2) [2025-04-04 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832171', 'tblTempUsageDetail_20' ) start [2025-04-04 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832171', 'tblTempUsageDetail_20' ) end [2025-04-04 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:16:26] Production.INFO: ==368== Releasing lock... [2025-04-04 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:16:26] Production.INFO: 47 MB #Memory Used# [2025-04-04 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:17:06 [end_date_ymd] => 2025-04-04 10:17:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:17:06' and `end` < '2025-04-04 10: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-04 10:17:19] Production.INFO: count ==2571 [2025-04-04 10:17:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:17:06 - End Time 2025-04-04 10:17:06 [2025-04-04 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832176', 'tblTempUsageDetail_20' ) start [2025-04-04 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832176', 'tblTempUsageDetail_20' ) end [2025-04-04 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832176', 'tblTempVendorCDR_20' ) start [2025-04-04 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832176', 'tblTempVendorCDR_20' ) end [2025-04-04 10:17:20] Production.INFO: ProcessCDR(1,14832176,1,1,2) [2025-04-04 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832176', 'tblTempUsageDetail_20' ) start [2025-04-04 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832176', 'tblTempUsageDetail_20' ) end [2025-04-04 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:17:26] Production.INFO: ==443== Releasing lock... [2025-04-04 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:17:26] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:18:06 [end_date_ymd] => 2025-04-04 10:18:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:18:06' and `end` < '2025-04-04 10: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-04 10:18:19] Production.INFO: count ==2588 [2025-04-04 10:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:18:06 - End Time 2025-04-04 10:18:06 [2025-04-04 10:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832181', 'tblTempUsageDetail_20' ) start [2025-04-04 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832181', 'tblTempUsageDetail_20' ) end [2025-04-04 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832181', 'tblTempVendorCDR_20' ) start [2025-04-04 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832181', 'tblTempVendorCDR_20' ) end [2025-04-04 10:18:21] Production.INFO: ProcessCDR(1,14832181,1,1,2) [2025-04-04 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832181', 'tblTempUsageDetail_20' ) start [2025-04-04 10:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832181', 'tblTempUsageDetail_20' ) end [2025-04-04 10:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:18:27] Production.INFO: ==519== Releasing lock... [2025-04-04 10:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:18:27] Production.INFO: 47.5 MB #Memory Used# [2025-04-04 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:19:06 [end_date_ymd] => 2025-04-04 10:19:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:19:06' and `end` < '2025-04-04 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-04 10:19:19] Production.INFO: count ==2594 [2025-04-04 10:19:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:19:06 - End Time 2025-04-04 10:19:06 [2025-04-04 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832186', 'tblTempUsageDetail_20' ) start [2025-04-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832186', 'tblTempUsageDetail_20' ) end [2025-04-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832186', 'tblTempVendorCDR_20' ) start [2025-04-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832186', 'tblTempVendorCDR_20' ) end [2025-04-04 10:19:20] Production.INFO: ProcessCDR(1,14832186,1,1,2) [2025-04-04 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832186', 'tblTempUsageDetail_20' ) start [2025-04-04 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832186', 'tblTempUsageDetail_20' ) end [2025-04-04 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:19:26] Production.INFO: ==649== Releasing lock... [2025-04-04 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:19:26] Production.INFO: 47.5 MB #Memory Used# [2025-04-04 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:20:07 [end_date_ymd] => 2025-04-04 10:20:07 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:20:07' and `end` < '2025-04-04 10: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-04 10:20:20] Production.INFO: count ==2607 [2025-04-04 10:20:22] Production.ERROR: pbx CDR StartTime 2025-04-04 07:20:07 - End Time 2025-04-04 10:20:07 [2025-04-04 10:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832192', 'tblTempUsageDetail_20' ) start [2025-04-04 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832192', 'tblTempUsageDetail_20' ) end [2025-04-04 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832192', 'tblTempVendorCDR_20' ) start [2025-04-04 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832192', 'tblTempVendorCDR_20' ) end [2025-04-04 10:20:22] Production.INFO: ProcessCDR(1,14832192,1,1,2) [2025-04-04 10:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832192', 'tblTempUsageDetail_20' ) start [2025-04-04 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832192', 'tblTempUsageDetail_20' ) end [2025-04-04 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:20:27] Production.INFO: ==759== Releasing lock... [2025-04-04 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:20:27] Production.INFO: 47.5 MB #Memory Used# [2025-04-04 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:21:05 [end_date_ymd] => 2025-04-04 10:21:05 [RateCDR] => 1 ) [2025-04-04 10: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 07:21:05' and `end` < '2025-04-04 10: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-04 10:21:19] Production.INFO: count ==2687 [2025-04-04 10:21:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:21:05 - End Time 2025-04-04 10:21:05 [2025-04-04 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832197', 'tblTempUsageDetail_20' ) start [2025-04-04 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832197', 'tblTempUsageDetail_20' ) end [2025-04-04 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832197', 'tblTempVendorCDR_20' ) start [2025-04-04 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832197', 'tblTempVendorCDR_20' ) end [2025-04-04 10:21:20] Production.INFO: ProcessCDR(1,14832197,1,1,2) [2025-04-04 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832197', 'tblTempUsageDetail_20' ) start [2025-04-04 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832197', 'tblTempUsageDetail_20' ) end [2025-04-04 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:21:26] Production.INFO: ==835== Releasing lock... [2025-04-04 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:21:26] Production.INFO: 48.25 MB #Memory Used# [2025-04-04 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:22:06 [end_date_ymd] => 2025-04-04 10:22:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:22:06' and `end` < '2025-04-04 10: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-04 10:22:20] Production.INFO: count ==2692 [2025-04-04 10:22:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:22:06 - End Time 2025-04-04 10:22:06 [2025-04-04 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832202', 'tblTempUsageDetail_20' ) start [2025-04-04 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832202', 'tblTempUsageDetail_20' ) end [2025-04-04 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832202', 'tblTempVendorCDR_20' ) start [2025-04-04 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832202', 'tblTempVendorCDR_20' ) end [2025-04-04 10:22:21] Production.INFO: ProcessCDR(1,14832202,1,1,2) [2025-04-04 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832202', 'tblTempUsageDetail_20' ) start [2025-04-04 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832202', 'tblTempUsageDetail_20' ) end [2025-04-04 10:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:22:27] Production.INFO: ==912== Releasing lock... [2025-04-04 10:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:22:27] Production.INFO: 48.25 MB #Memory Used# [2025-04-04 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:23:05 [end_date_ymd] => 2025-04-04 10:23:05 [RateCDR] => 1 ) [2025-04-04 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:23:05' and `end` < '2025-04-04 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:23:19] Production.INFO: count ==2711 [2025-04-04 10:23:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:23:05 - End Time 2025-04-04 10:23:05 [2025-04-04 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832207', 'tblTempUsageDetail_20' ) start [2025-04-04 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832207', 'tblTempUsageDetail_20' ) end [2025-04-04 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832207', 'tblTempVendorCDR_20' ) start [2025-04-04 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832207', 'tblTempVendorCDR_20' ) end [2025-04-04 10:23:20] Production.INFO: ProcessCDR(1,14832207,1,1,2) [2025-04-04 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832207', 'tblTempUsageDetail_20' ) start [2025-04-04 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832207', 'tblTempUsageDetail_20' ) end [2025-04-04 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:23:26] Production.INFO: ==988== Releasing lock... [2025-04-04 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:23:26] Production.INFO: 48.5 MB #Memory Used# [2025-04-04 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:24:06 [end_date_ymd] => 2025-04-04 10:24:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:24:06' and `end` < '2025-04-04 10: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-04 10:24:19] Production.INFO: count ==2741 [2025-04-04 10:24:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:24:06 - End Time 2025-04-04 10:24:06 [2025-04-04 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832212', 'tblTempUsageDetail_20' ) start [2025-04-04 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832212', 'tblTempUsageDetail_20' ) end [2025-04-04 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832212', 'tblTempVendorCDR_20' ) start [2025-04-04 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832212', 'tblTempVendorCDR_20' ) end [2025-04-04 10:24:21] Production.INFO: ProcessCDR(1,14832212,1,1,2) [2025-04-04 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832212', 'tblTempUsageDetail_20' ) start [2025-04-04 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832212', 'tblTempUsageDetail_20' ) end [2025-04-04 10:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:24:27] Production.INFO: ==1065== Releasing lock... [2025-04-04 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:24:27] Production.INFO: 48.75 MB #Memory Used# [2025-04-04 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:25:06 [end_date_ymd] => 2025-04-04 10:25:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:25:06' and `end` < '2025-04-04 10: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-04 10:25:19] Production.INFO: count ==2778 [2025-04-04 10:25:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:25:06 - End Time 2025-04-04 10:25:06 [2025-04-04 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832217', 'tblTempUsageDetail_20' ) start [2025-04-04 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832217', 'tblTempUsageDetail_20' ) end [2025-04-04 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832217', 'tblTempVendorCDR_20' ) start [2025-04-04 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832217', 'tblTempVendorCDR_20' ) end [2025-04-04 10:25:21] Production.INFO: ProcessCDR(1,14832217,1,1,2) [2025-04-04 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832217', 'tblTempUsageDetail_20' ) start [2025-04-04 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832217', 'tblTempUsageDetail_20' ) end [2025-04-04 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:25:27] Production.INFO: ==1149== Releasing lock... [2025-04-04 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:25:27] Production.INFO: 49 MB #Memory Used# [2025-04-04 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:26:06 [end_date_ymd] => 2025-04-04 10:26:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:26:06' and `end` < '2025-04-04 10: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-04 10:26:19] Production.INFO: count ==2801 [2025-04-04 10:26:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:26:06 - End Time 2025-04-04 10:26:06 [2025-04-04 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832222', 'tblTempUsageDetail_20' ) start [2025-04-04 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832222', 'tblTempUsageDetail_20' ) end [2025-04-04 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832222', 'tblTempVendorCDR_20' ) start [2025-04-04 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832222', 'tblTempVendorCDR_20' ) end [2025-04-04 10:26:21] Production.INFO: ProcessCDR(1,14832222,1,1,2) [2025-04-04 10:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832222', 'tblTempUsageDetail_20' ) start [2025-04-04 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832222', 'tblTempUsageDetail_20' ) end [2025-04-04 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:26:25] Production.INFO: ==1229== Releasing lock... [2025-04-04 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:26:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-04 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:27:06 [end_date_ymd] => 2025-04-04 10:27:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:27:06' and `end` < '2025-04-04 10: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-04 10:27:19] Production.INFO: count ==2822 [2025-04-04 10:27:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:27:06 - End Time 2025-04-04 10:27:06 [2025-04-04 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832227', 'tblTempUsageDetail_20' ) start [2025-04-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832227', 'tblTempUsageDetail_20' ) end [2025-04-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832227', 'tblTempVendorCDR_20' ) start [2025-04-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832227', 'tblTempVendorCDR_20' ) end [2025-04-04 10:27:20] Production.INFO: ProcessCDR(1,14832227,1,1,2) [2025-04-04 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832227', 'tblTempUsageDetail_20' ) start [2025-04-04 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832227', 'tblTempUsageDetail_20' ) end [2025-04-04 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:27:26] Production.INFO: ==1317== Releasing lock... [2025-04-04 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:27:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-04 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:28:06 [end_date_ymd] => 2025-04-04 10:28:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:28:06' and `end` < '2025-04-04 10: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-04 10:28:19] Production.INFO: count ==2845 [2025-04-04 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:28:06 - End Time 2025-04-04 10:28:06 [2025-04-04 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832232', 'tblTempUsageDetail_20' ) start [2025-04-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832232', 'tblTempUsageDetail_20' ) end [2025-04-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832232', 'tblTempVendorCDR_20' ) start [2025-04-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832232', 'tblTempVendorCDR_20' ) end [2025-04-04 10:28:20] Production.INFO: ProcessCDR(1,14832232,1,1,2) [2025-04-04 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832232', 'tblTempUsageDetail_20' ) start [2025-04-04 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832232', 'tblTempUsageDetail_20' ) end [2025-04-04 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:28:26] Production.INFO: ==1393== Releasing lock... [2025-04-04 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:28:26] Production.INFO: 49.75 MB #Memory Used# [2025-04-04 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:29:06 [end_date_ymd] => 2025-04-04 10:29:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:29:06' and `end` < '2025-04-04 10: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-04 10:29:19] Production.INFO: count ==2856 [2025-04-04 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:29:06 - End Time 2025-04-04 10:29:06 [2025-04-04 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832237', 'tblTempUsageDetail_20' ) start [2025-04-04 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832237', 'tblTempUsageDetail_20' ) end [2025-04-04 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832237', 'tblTempVendorCDR_20' ) start [2025-04-04 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832237', 'tblTempVendorCDR_20' ) end [2025-04-04 10:29:21] Production.INFO: ProcessCDR(1,14832237,1,1,2) [2025-04-04 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832237', 'tblTempUsageDetail_20' ) start [2025-04-04 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832237', 'tblTempUsageDetail_20' ) end [2025-04-04 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:29:26] Production.INFO: ==1468== Releasing lock... [2025-04-04 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:29:26] Production.INFO: 49.75 MB #Memory Used# [2025-04-04 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:30:06 [end_date_ymd] => 2025-04-04 10:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:30:06' and `end` < '2025-04-04 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-04 10:30:20] Production.INFO: count ==2895 [2025-04-04 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:30:06 - End Time 2025-04-04 10:30:06 [2025-04-04 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832243', 'tblTempUsageDetail_20' ) start [2025-04-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832243', 'tblTempUsageDetail_20' ) end [2025-04-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832243', 'tblTempVendorCDR_20' ) start [2025-04-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832243', 'tblTempVendorCDR_20' ) end [2025-04-04 10:30:21] Production.INFO: ProcessCDR(1,14832243,1,1,2) [2025-04-04 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832243', 'tblTempUsageDetail_20' ) start [2025-04-04 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832243', 'tblTempUsageDetail_20' ) end [2025-04-04 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:30:27] Production.INFO: ==1587== Releasing lock... [2025-04-04 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:30:27] Production.INFO: 50.25 MB #Memory Used# [2025-04-04 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:31:06 [end_date_ymd] => 2025-04-04 10:31:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:31:06' and `end` < '2025-04-04 10: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-04 10:31:19] Production.INFO: count ==2988 [2025-04-04 10:31:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:31:06 - End Time 2025-04-04 10:31:06 [2025-04-04 10:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832248', 'tblTempUsageDetail_20' ) start [2025-04-04 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832248', 'tblTempUsageDetail_20' ) end [2025-04-04 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832248', 'tblTempVendorCDR_20' ) start [2025-04-04 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832248', 'tblTempVendorCDR_20' ) end [2025-04-04 10:31:21] Production.INFO: ProcessCDR(1,14832248,1,1,2) [2025-04-04 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832248', 'tblTempUsageDetail_20' ) start [2025-04-04 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832248', 'tblTempUsageDetail_20' ) end [2025-04-04 10:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:31:27] Production.INFO: ==1665== Releasing lock... [2025-04-04 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:31:27] Production.INFO: 51 MB #Memory Used# [2025-04-04 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:32:06 [end_date_ymd] => 2025-04-04 10:32:06 [RateCDR] => 1 ) [2025-04-04 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:32:06' and `end` < '2025-04-04 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:32:19] Production.INFO: count ==3004 [2025-04-04 10:32:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:32:06 - End Time 2025-04-04 10:32:06 [2025-04-04 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832253', 'tblTempUsageDetail_20' ) start [2025-04-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832253', 'tblTempUsageDetail_20' ) end [2025-04-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832253', 'tblTempVendorCDR_20' ) start [2025-04-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832253', 'tblTempVendorCDR_20' ) end [2025-04-04 10:32:21] Production.INFO: ProcessCDR(1,14832253,1,1,2) [2025-04-04 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832253', 'tblTempUsageDetail_20' ) start [2025-04-04 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832253', 'tblTempUsageDetail_20' ) end [2025-04-04 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:32:27] Production.INFO: ==1748== Releasing lock... [2025-04-04 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:32:27] Production.INFO: 51.25 MB #Memory Used# [2025-04-04 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:33:06 [end_date_ymd] => 2025-04-04 10:33:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:33:06' and `end` < '2025-04-04 10: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-04 10:33:19] Production.INFO: count ==3021 [2025-04-04 10:33:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:33:06 - End Time 2025-04-04 10:33:06 [2025-04-04 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832258', 'tblTempUsageDetail_20' ) start [2025-04-04 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832258', 'tblTempUsageDetail_20' ) end [2025-04-04 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832258', 'tblTempVendorCDR_20' ) start [2025-04-04 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832258', 'tblTempVendorCDR_20' ) end [2025-04-04 10:33:21] Production.INFO: ProcessCDR(1,14832258,1,1,2) [2025-04-04 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832258', 'tblTempUsageDetail_20' ) start [2025-04-04 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832258', 'tblTempUsageDetail_20' ) end [2025-04-04 10:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:33:27] Production.INFO: ==1822== Releasing lock... [2025-04-04 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:33:27] Production.INFO: 51 MB #Memory Used# [2025-04-04 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:34:06 [end_date_ymd] => 2025-04-04 10:34:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:34:06' and `end` < '2025-04-04 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-04 10:34:20] Production.INFO: count ==3055 [2025-04-04 10:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:34:06 - End Time 2025-04-04 10:34:06 [2025-04-04 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832263', 'tblTempUsageDetail_20' ) start [2025-04-04 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832263', 'tblTempUsageDetail_20' ) end [2025-04-04 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832263', 'tblTempVendorCDR_20' ) start [2025-04-04 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832263', 'tblTempVendorCDR_20' ) end [2025-04-04 10:34:21] Production.INFO: ProcessCDR(1,14832263,1,1,2) [2025-04-04 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832263', 'tblTempUsageDetail_20' ) start [2025-04-04 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832263', 'tblTempUsageDetail_20' ) end [2025-04-04 10:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:34:27] Production.INFO: ==1907== Releasing lock... [2025-04-04 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:34:27] Production.INFO: 51 MB #Memory Used# [2025-04-04 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:35:06 [end_date_ymd] => 2025-04-04 10:35:06 [RateCDR] => 1 ) [2025-04-04 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:35:06' and `end` < '2025-04-04 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:35:19] Production.INFO: count ==3060 [2025-04-04 10:35:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:35:06 - End Time 2025-04-04 10:35:06 [2025-04-04 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832268', 'tblTempUsageDetail_20' ) start [2025-04-04 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832268', 'tblTempUsageDetail_20' ) end [2025-04-04 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832268', 'tblTempVendorCDR_20' ) start [2025-04-04 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832268', 'tblTempVendorCDR_20' ) end [2025-04-04 10:35:21] Production.INFO: ProcessCDR(1,14832268,1,1,2) [2025-04-04 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832268', 'tblTempUsageDetail_20' ) start [2025-04-04 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832268', 'tblTempUsageDetail_20' ) end [2025-04-04 10:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:35:27] Production.INFO: ==2021== Releasing lock... [2025-04-04 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:35:27] Production.INFO: 50.75 MB #Memory Used# [2025-04-04 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:36:05 [end_date_ymd] => 2025-04-04 10:36:05 [RateCDR] => 1 ) [2025-04-04 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:36:05' and `end` < '2025-04-04 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:36:19] Production.INFO: count ==3063 [2025-04-04 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:36:05 - End Time 2025-04-04 10:36:05 [2025-04-04 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832273', 'tblTempUsageDetail_20' ) start [2025-04-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832273', 'tblTempUsageDetail_20' ) end [2025-04-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832273', 'tblTempVendorCDR_20' ) start [2025-04-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832273', 'tblTempVendorCDR_20' ) end [2025-04-04 10:36:20] Production.INFO: ProcessCDR(1,14832273,1,1,2) [2025-04-04 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832273', 'tblTempUsageDetail_20' ) start [2025-04-04 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832273', 'tblTempUsageDetail_20' ) end [2025-04-04 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:36:24] Production.INFO: ==2099== Releasing lock... [2025-04-04 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:36:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-04 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:37:06 [end_date_ymd] => 2025-04-04 10:37:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:37:06' and `end` < '2025-04-04 10: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-04 10:37:20] Production.INFO: count ==3066 [2025-04-04 10:37:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:37:06 - End Time 2025-04-04 10:37:06 [2025-04-04 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832278', 'tblTempUsageDetail_20' ) start [2025-04-04 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832278', 'tblTempUsageDetail_20' ) end [2025-04-04 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832278', 'tblTempVendorCDR_20' ) start [2025-04-04 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832278', 'tblTempVendorCDR_20' ) end [2025-04-04 10:37:21] Production.INFO: ProcessCDR(1,14832278,1,1,2) [2025-04-04 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832278', 'tblTempUsageDetail_20' ) start [2025-04-04 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832278', 'tblTempUsageDetail_20' ) end [2025-04-04 10:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:37:27] Production.INFO: ==2174== Releasing lock... [2025-04-04 10:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:37:27] Production.INFO: 51 MB #Memory Used# [2025-04-04 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:38:05 [end_date_ymd] => 2025-04-04 10:38:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:38:05' and `end` < '2025-04-04 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-04 10:38:18] Production.INFO: count ==3081 [2025-04-04 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:38:05 - End Time 2025-04-04 10:38:05 [2025-04-04 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832283', 'tblTempUsageDetail_20' ) start [2025-04-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832283', 'tblTempUsageDetail_20' ) end [2025-04-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832283', 'tblTempVendorCDR_20' ) start [2025-04-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832283', 'tblTempVendorCDR_20' ) end [2025-04-04 10:38:20] Production.INFO: ProcessCDR(1,14832283,1,1,2) [2025-04-04 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832283', 'tblTempUsageDetail_20' ) start [2025-04-04 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832283', 'tblTempUsageDetail_20' ) end [2025-04-04 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:38:25] Production.INFO: ==2258== Releasing lock... [2025-04-04 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:38:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-04 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:39:05 [end_date_ymd] => 2025-04-04 10:39:05 [RateCDR] => 1 ) [2025-04-04 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:39:05' and `end` < '2025-04-04 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:39:19] Production.INFO: count ==3080 [2025-04-04 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:39:05 - End Time 2025-04-04 10:39:05 [2025-04-04 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832288', 'tblTempUsageDetail_20' ) start [2025-04-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832288', 'tblTempUsageDetail_20' ) end [2025-04-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832288', 'tblTempVendorCDR_20' ) start [2025-04-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832288', 'tblTempVendorCDR_20' ) end [2025-04-04 10:39:20] Production.INFO: ProcessCDR(1,14832288,1,1,2) [2025-04-04 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832288', 'tblTempUsageDetail_20' ) start [2025-04-04 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832288', 'tblTempUsageDetail_20' ) end [2025-04-04 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:39:23] Production.INFO: ==2342== Releasing lock... [2025-04-04 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:39:23] Production.INFO: 51.75 MB #Memory Used# [2025-04-04 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:40:05 [end_date_ymd] => 2025-04-04 10:40:05 [RateCDR] => 1 ) [2025-04-04 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:40:05' and `end` < '2025-04-04 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:40:18] Production.INFO: count ==3097 [2025-04-04 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:40:05 - End Time 2025-04-04 10:40:05 [2025-04-04 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832293', 'tblTempUsageDetail_20' ) start [2025-04-04 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832293', 'tblTempUsageDetail_20' ) end [2025-04-04 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832293', 'tblTempVendorCDR_20' ) start [2025-04-04 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832293', 'tblTempVendorCDR_20' ) end [2025-04-04 10:40:20] Production.INFO: ProcessCDR(1,14832293,1,1,2) [2025-04-04 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832293', 'tblTempUsageDetail_20' ) start [2025-04-04 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832293', 'tblTempUsageDetail_20' ) end [2025-04-04 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:40:25] Production.INFO: ==2424== Releasing lock... [2025-04-04 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:40:25] Production.INFO: 52 MB #Memory Used# [2025-04-04 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:41:05 [end_date_ymd] => 2025-04-04 10:41:05 [RateCDR] => 1 ) [2025-04-04 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:41:05' and `end` < '2025-04-04 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:41:19] Production.INFO: count ==3165 [2025-04-04 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:41:05 - End Time 2025-04-04 10:41:05 [2025-04-04 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832299', 'tblTempUsageDetail_20' ) start [2025-04-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832299', 'tblTempUsageDetail_20' ) end [2025-04-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832299', 'tblTempVendorCDR_20' ) start [2025-04-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832299', 'tblTempVendorCDR_20' ) end [2025-04-04 10:41:20] Production.INFO: ProcessCDR(1,14832299,1,1,2) [2025-04-04 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832299', 'tblTempUsageDetail_20' ) start [2025-04-04 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832299', 'tblTempUsageDetail_20' ) end [2025-04-04 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:41:25] Production.INFO: ==2511== Releasing lock... [2025-04-04 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:41:25] Production.INFO: 52 MB #Memory Used# [2025-04-04 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:42:06 [end_date_ymd] => 2025-04-04 10:42:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:42:06' and `end` < '2025-04-04 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-04 10:42:19] Production.INFO: count ==3171 [2025-04-04 10:42:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:42:06 - End Time 2025-04-04 10:42:06 [2025-04-04 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832304', 'tblTempUsageDetail_20' ) start [2025-04-04 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832304', 'tblTempUsageDetail_20' ) end [2025-04-04 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832304', 'tblTempVendorCDR_20' ) start [2025-04-04 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832304', 'tblTempVendorCDR_20' ) end [2025-04-04 10:42:21] Production.INFO: ProcessCDR(1,14832304,1,1,2) [2025-04-04 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832304', 'tblTempUsageDetail_20' ) start [2025-04-04 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832304', 'tblTempUsageDetail_20' ) end [2025-04-04 10:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:42:27] Production.INFO: ==2589== Releasing lock... [2025-04-04 10:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:42:27] Production.INFO: 51.75 MB #Memory Used# [2025-04-04 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:43:06 [end_date_ymd] => 2025-04-04 10:43:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:43:06' and `end` < '2025-04-04 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-04 10:43:20] Production.INFO: count ==3180 [2025-04-04 10:43:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:43:06 - End Time 2025-04-04 10:43:06 [2025-04-04 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832309', 'tblTempUsageDetail_20' ) start [2025-04-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832309', 'tblTempUsageDetail_20' ) end [2025-04-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832309', 'tblTempVendorCDR_20' ) start [2025-04-04 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832309', 'tblTempVendorCDR_20' ) end [2025-04-04 10:43:21] Production.INFO: ProcessCDR(1,14832309,1,1,2) [2025-04-04 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832309', 'tblTempUsageDetail_20' ) start [2025-04-04 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832309', 'tblTempUsageDetail_20' ) end [2025-04-04 10:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:43:27] Production.INFO: ==2670== Releasing lock... [2025-04-04 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:43:27] Production.INFO: 52.5 MB #Memory Used# [2025-04-04 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:44:05 [end_date_ymd] => 2025-04-04 10:44:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:44:05' and `end` < '2025-04-04 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-04 10:44:19] Production.INFO: count ==3195 [2025-04-04 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:44:05 - End Time 2025-04-04 10:44:05 [2025-04-04 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832314', 'tblTempUsageDetail_20' ) start [2025-04-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832314', 'tblTempUsageDetail_20' ) end [2025-04-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832314', 'tblTempVendorCDR_20' ) start [2025-04-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832314', 'tblTempVendorCDR_20' ) end [2025-04-04 10:44:20] Production.INFO: ProcessCDR(1,14832314,1,1,2) [2025-04-04 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832314', 'tblTempUsageDetail_20' ) start [2025-04-04 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832314', 'tblTempUsageDetail_20' ) end [2025-04-04 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:44:25] Production.INFO: ==2751== Releasing lock... [2025-04-04 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:44:25] Production.INFO: 52 MB #Memory Used# [2025-04-04 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:45:06 [end_date_ymd] => 2025-04-04 10:45:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:45:06' and `end` < '2025-04-04 10: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-04 10:45:19] Production.INFO: count ==3207 [2025-04-04 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:45:06 - End Time 2025-04-04 10:45:06 [2025-04-04 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832319', 'tblTempUsageDetail_20' ) start [2025-04-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832319', 'tblTempUsageDetail_20' ) end [2025-04-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832319', 'tblTempVendorCDR_20' ) start [2025-04-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832319', 'tblTempVendorCDR_20' ) end [2025-04-04 10:45:20] Production.INFO: ProcessCDR(1,14832319,1,1,2) [2025-04-04 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832319', 'tblTempUsageDetail_20' ) start [2025-04-04 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832319', 'tblTempUsageDetail_20' ) end [2025-04-04 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:45:26] Production.INFO: ==2834== Releasing lock... [2025-04-04 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:45:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-04 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:46:06 [end_date_ymd] => 2025-04-04 10:46:06 [RateCDR] => 1 ) [2025-04-04 10: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-04 07:46:06' and `end` < '2025-04-04 10: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-04 10:46:19] Production.INFO: count ==3223 [2025-04-04 10:46:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:46:06 - End Time 2025-04-04 10:46:06 [2025-04-04 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832324', 'tblTempUsageDetail_20' ) start [2025-04-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832324', 'tblTempUsageDetail_20' ) end [2025-04-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832324', 'tblTempVendorCDR_20' ) start [2025-04-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832324', 'tblTempVendorCDR_20' ) end [2025-04-04 10:46:20] Production.INFO: ProcessCDR(1,14832324,1,1,2) [2025-04-04 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832324', 'tblTempUsageDetail_20' ) start [2025-04-04 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832324', 'tblTempUsageDetail_20' ) end [2025-04-04 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:46:26] Production.INFO: ==2916== Releasing lock... [2025-04-04 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:46:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-04 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:47:05 [end_date_ymd] => 2025-04-04 10:47:05 [RateCDR] => 1 ) [2025-04-04 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:47:05' and `end` < '2025-04-04 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-04 10:47:19] Production.INFO: count ==3238 [2025-04-04 10:47:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:47:05 - End Time 2025-04-04 10:47:05 [2025-04-04 10:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832329', 'tblTempUsageDetail_20' ) start [2025-04-04 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832329', 'tblTempUsageDetail_20' ) end [2025-04-04 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832329', 'tblTempVendorCDR_20' ) start [2025-04-04 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832329', 'tblTempVendorCDR_20' ) end [2025-04-04 10:47:21] Production.INFO: ProcessCDR(1,14832329,1,1,2) [2025-04-04 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832329', 'tblTempUsageDetail_20' ) start [2025-04-04 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832329', 'tblTempUsageDetail_20' ) end [2025-04-04 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:47:26] Production.INFO: ==2995== Releasing lock... [2025-04-04 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:47:26] Production.INFO: 52.75 MB #Memory Used# [2025-04-04 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:48:05 [end_date_ymd] => 2025-04-04 10:48:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:48:05' and `end` < '2025-04-04 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-04 10:48:19] Production.INFO: count ==3259 [2025-04-04 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:48:05 - End Time 2025-04-04 10:48:05 [2025-04-04 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832334', 'tblTempUsageDetail_20' ) start [2025-04-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832334', 'tblTempUsageDetail_20' ) end [2025-04-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832334', 'tblTempVendorCDR_20' ) start [2025-04-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832334', 'tblTempVendorCDR_20' ) end [2025-04-04 10:48:20] Production.INFO: ProcessCDR(1,14832334,1,1,2) [2025-04-04 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832334', 'tblTempUsageDetail_20' ) start [2025-04-04 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832334', 'tblTempUsageDetail_20' ) end [2025-04-04 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:48:25] Production.INFO: ==3076== Releasing lock... [2025-04-04 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:48:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-04 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:49:05 [end_date_ymd] => 2025-04-04 10:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:49:05' and `end` < '2025-04-04 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-04 10:49:19] Production.INFO: count ==3275 [2025-04-04 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:49:05 - End Time 2025-04-04 10:49:05 [2025-04-04 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832339', 'tblTempUsageDetail_20' ) start [2025-04-04 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832339', 'tblTempUsageDetail_20' ) end [2025-04-04 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832339', 'tblTempVendorCDR_20' ) start [2025-04-04 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832339', 'tblTempVendorCDR_20' ) end [2025-04-04 10:49:20] Production.INFO: ProcessCDR(1,14832339,1,1,2) [2025-04-04 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832339', 'tblTempUsageDetail_20' ) start [2025-04-04 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832339', 'tblTempUsageDetail_20' ) end [2025-04-04 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:49:26] Production.INFO: ==3158== Releasing lock... [2025-04-04 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:49:26] Production.INFO: 53 MB #Memory Used# [2025-04-04 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:50:05 [end_date_ymd] => 2025-04-04 10:50:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:50:05' and `end` < '2025-04-04 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-04 10:50:19] Production.INFO: count ==3296 [2025-04-04 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:50:05 - End Time 2025-04-04 10:50:05 [2025-04-04 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832345', 'tblTempUsageDetail_20' ) start [2025-04-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832345', 'tblTempUsageDetail_20' ) end [2025-04-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832345', 'tblTempVendorCDR_20' ) start [2025-04-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832345', 'tblTempVendorCDR_20' ) end [2025-04-04 10:50:21] Production.INFO: ProcessCDR(1,14832345,1,1,2) [2025-04-04 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832345', 'tblTempUsageDetail_20' ) start [2025-04-04 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832345', 'tblTempUsageDetail_20' ) end [2025-04-04 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:50:27] Production.INFO: ==3279== Releasing lock... [2025-04-04 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:50:27] Production.INFO: 52.75 MB #Memory Used# [2025-04-04 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:51:05 [end_date_ymd] => 2025-04-04 10:51:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:51:05' and `end` < '2025-04-04 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-04 10:51:18] Production.INFO: count ==3424 [2025-04-04 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:51:05 - End Time 2025-04-04 10:51:05 [2025-04-04 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832350', 'tblTempUsageDetail_20' ) start [2025-04-04 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832350', 'tblTempUsageDetail_20' ) end [2025-04-04 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832350', 'tblTempVendorCDR_20' ) start [2025-04-04 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832350', 'tblTempVendorCDR_20' ) end [2025-04-04 10:51:20] Production.INFO: ProcessCDR(1,14832350,1,1,2) [2025-04-04 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832350', 'tblTempUsageDetail_20' ) start [2025-04-04 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832350', 'tblTempUsageDetail_20' ) end [2025-04-04 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:51:25] Production.INFO: ==3359== Releasing lock... [2025-04-04 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:51:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-04 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:52:06 [end_date_ymd] => 2025-04-04 10:52:06 [RateCDR] => 1 ) [2025-04-04 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-04 07:52:06' and `end` < '2025-04-04 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-04 10:52:19] Production.INFO: count ==3456 [2025-04-04 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:52:06 - End Time 2025-04-04 10:52:06 [2025-04-04 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832355', 'tblTempUsageDetail_20' ) start [2025-04-04 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832355', 'tblTempUsageDetail_20' ) end [2025-04-04 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832355', 'tblTempVendorCDR_20' ) start [2025-04-04 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832355', 'tblTempVendorCDR_20' ) end [2025-04-04 10:52:21] Production.INFO: ProcessCDR(1,14832355,1,1,2) [2025-04-04 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832355', 'tblTempUsageDetail_20' ) start [2025-04-04 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832355', 'tblTempUsageDetail_20' ) end [2025-04-04 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:52:26] Production.INFO: ==3443== Releasing lock... [2025-04-04 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:52:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-04 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:53:05 [end_date_ymd] => 2025-04-04 10:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:53:05' and `end` < '2025-04-04 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-04 10:53:19] Production.INFO: count ==3481 [2025-04-04 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:53:05 - End Time 2025-04-04 10:53:05 [2025-04-04 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832360', 'tblTempUsageDetail_20' ) start [2025-04-04 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832360', 'tblTempUsageDetail_20' ) end [2025-04-04 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832360', 'tblTempVendorCDR_20' ) start [2025-04-04 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832360', 'tblTempVendorCDR_20' ) end [2025-04-04 10:53:20] Production.INFO: ProcessCDR(1,14832360,1,1,2) [2025-04-04 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832360', 'tblTempUsageDetail_20' ) start [2025-04-04 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832360', 'tblTempUsageDetail_20' ) end [2025-04-04 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:53:25] Production.INFO: ==3524== Releasing lock... [2025-04-04 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:53:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-04 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:54:05 [end_date_ymd] => 2025-04-04 10:54:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:54:05' and `end` < '2025-04-04 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-04 10:54:20] Production.INFO: count ==3502 [2025-04-04 10:54:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:54:05 - End Time 2025-04-04 10:54:05 [2025-04-04 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832365', 'tblTempUsageDetail_20' ) start [2025-04-04 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832365', 'tblTempUsageDetail_20' ) end [2025-04-04 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832365', 'tblTempVendorCDR_20' ) start [2025-04-04 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832365', 'tblTempVendorCDR_20' ) end [2025-04-04 10:54:21] Production.INFO: ProcessCDR(1,14832365,1,1,2) [2025-04-04 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832365', 'tblTempUsageDetail_20' ) start [2025-04-04 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832365', 'tblTempUsageDetail_20' ) end [2025-04-04 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:54:26] Production.INFO: ==3605== Releasing lock... [2025-04-04 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:54:26] Production.INFO: 55 MB #Memory Used# [2025-04-04 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:55:06 [end_date_ymd] => 2025-04-04 10:55:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:55:06' and `end` < '2025-04-04 10: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-04 10:55:20] Production.INFO: count ==3543 [2025-04-04 10:55:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:55:06 - End Time 2025-04-04 10:55:06 [2025-04-04 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832370', 'tblTempUsageDetail_20' ) start [2025-04-04 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832370', 'tblTempUsageDetail_20' ) end [2025-04-04 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832370', 'tblTempVendorCDR_20' ) start [2025-04-04 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832370', 'tblTempVendorCDR_20' ) end [2025-04-04 10:55:22] Production.INFO: ProcessCDR(1,14832370,1,1,2) [2025-04-04 10:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832370', 'tblTempUsageDetail_20' ) start [2025-04-04 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832370', 'tblTempUsageDetail_20' ) end [2025-04-04 10:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:55:27] Production.INFO: ==3683== Releasing lock... [2025-04-04 10:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:55:27] Production.INFO: 55 MB #Memory Used# [2025-04-04 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:56:06 [end_date_ymd] => 2025-04-04 10:56:06 [RateCDR] => 1 ) [2025-04-04 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:56:06' and `end` < '2025-04-04 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:56:20] Production.INFO: count ==3553 [2025-04-04 10:56:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:56:06 - End Time 2025-04-04 10:56:06 [2025-04-04 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832375', 'tblTempUsageDetail_20' ) start [2025-04-04 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832375', 'tblTempUsageDetail_20' ) end [2025-04-04 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832375', 'tblTempVendorCDR_20' ) start [2025-04-04 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832375', 'tblTempVendorCDR_20' ) end [2025-04-04 10:56:21] Production.INFO: ProcessCDR(1,14832375,1,1,2) [2025-04-04 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832375', 'tblTempUsageDetail_20' ) start [2025-04-04 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832375', 'tblTempUsageDetail_20' ) end [2025-04-04 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:56:27] Production.INFO: ==3765== Releasing lock... [2025-04-04 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:56:27] Production.INFO: 54.75 MB #Memory Used# [2025-04-04 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:57:05 [end_date_ymd] => 2025-04-04 10:57:05 [RateCDR] => 1 ) [2025-04-04 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-04 07:57:05' and `end` < '2025-04-04 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-04 10:57:19] Production.INFO: count ==3564 [2025-04-04 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-04 07:57:05 - End Time 2025-04-04 10:57:05 [2025-04-04 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832380', 'tblTempUsageDetail_20' ) start [2025-04-04 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832380', 'tblTempUsageDetail_20' ) end [2025-04-04 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832380', 'tblTempVendorCDR_20' ) start [2025-04-04 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832380', 'tblTempVendorCDR_20' ) end [2025-04-04 10:57:21] Production.INFO: ProcessCDR(1,14832380,1,1,2) [2025-04-04 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832380', 'tblTempUsageDetail_20' ) start [2025-04-04 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832380', 'tblTempUsageDetail_20' ) end [2025-04-04 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:57:26] Production.INFO: ==3843== Releasing lock... [2025-04-04 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:57:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-04 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:58:06 [end_date_ymd] => 2025-04-04 10:58:06 [RateCDR] => 1 ) [2025-04-04 10: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 07:58:06' and `end` < '2025-04-04 10: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-04 10:58:19] Production.INFO: count ==3572 [2025-04-04 10:58:21] Production.ERROR: pbx CDR StartTime 2025-04-04 07:58:06 - End Time 2025-04-04 10:58:06 [2025-04-04 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832385', 'tblTempUsageDetail_20' ) start [2025-04-04 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832385', 'tblTempUsageDetail_20' ) end [2025-04-04 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832385', 'tblTempVendorCDR_20' ) start [2025-04-04 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832385', 'tblTempVendorCDR_20' ) end [2025-04-04 10:58:21] Production.INFO: ProcessCDR(1,14832385,1,1,2) [2025-04-04 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832385', 'tblTempUsageDetail_20' ) start [2025-04-04 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832385', 'tblTempUsageDetail_20' ) end [2025-04-04 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:58:27] Production.INFO: ==3930== Releasing lock... [2025-04-04 10:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:58:27] Production.INFO: 55 MB #Memory Used# [2025-04-04 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 07:59:05 [end_date_ymd] => 2025-04-04 10:59:05 [RateCDR] => 1 ) [2025-04-04 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 07:59:05' and `end` < '2025-04-04 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 10:59:18] Production.INFO: count ==3588 [2025-04-04 10:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 07:59:05 - End Time 2025-04-04 10:59:05 [2025-04-04 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832390', 'tblTempUsageDetail_20' ) start [2025-04-04 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832390', 'tblTempUsageDetail_20' ) end [2025-04-04 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832390', 'tblTempVendorCDR_20' ) start [2025-04-04 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832390', 'tblTempVendorCDR_20' ) end [2025-04-04 10:59:20] Production.INFO: ProcessCDR(1,14832390,1,1,2) [2025-04-04 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832390', 'tblTempUsageDetail_20' ) start [2025-04-04 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832390', 'tblTempUsageDetail_20' ) end [2025-04-04 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 10:59:25] Production.INFO: ==4007== Releasing lock... [2025-04-04 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 10:59:25] Production.INFO: 55 MB #Memory Used# [2025-04-04 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:00:07 [end_date_ymd] => 2025-04-04 11:00:07 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:00:07' and `end` < '2025-04-04 11: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-04 11:00:20] Production.INFO: count ==3608 [2025-04-04 11:00:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:00:07 - End Time 2025-04-04 11:00:07 [2025-04-04 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832395', 'tblTempUsageDetail_20' ) start [2025-04-04 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832395', 'tblTempUsageDetail_20' ) end [2025-04-04 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832395', 'tblTempVendorCDR_20' ) start [2025-04-04 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832395', 'tblTempVendorCDR_20' ) end [2025-04-04 11:00:22] Production.INFO: ProcessCDR(1,14832395,1,1,2) [2025-04-04 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832395', 'tblTempUsageDetail_20' ) start [2025-04-04 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832395', 'tblTempUsageDetail_20' ) end [2025-04-04 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:00:28] Production.INFO: ==4094== Releasing lock... [2025-04-04 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:00:28] Production.INFO: 55 MB #Memory Used# [2025-04-04 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:01:05 [end_date_ymd] => 2025-04-04 11:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:01:05' and `end` < '2025-04-04 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-04 11:01:18] Production.INFO: count ==3751 [2025-04-04 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:01:05 - End Time 2025-04-04 11:01:05 [2025-04-04 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832401', 'tblTempUsageDetail_20' ) start [2025-04-04 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832401', 'tblTempUsageDetail_20' ) end [2025-04-04 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832401', 'tblTempVendorCDR_20' ) start [2025-04-04 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832401', 'tblTempVendorCDR_20' ) end [2025-04-04 11:01:20] Production.INFO: ProcessCDR(1,14832401,1,1,2) [2025-04-04 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832401', 'tblTempUsageDetail_20' ) start [2025-04-04 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832401', 'tblTempUsageDetail_20' ) end [2025-04-04 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:01:26] Production.INFO: ==4194== Releasing lock... [2025-04-04 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:01:26] Production.INFO: 56 MB #Memory Used# [2025-04-04 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:02:06 [end_date_ymd] => 2025-04-04 11:02:06 [RateCDR] => 1 ) [2025-04-04 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:02:06' and `end` < '2025-04-04 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:02:19] Production.INFO: count ==3769 [2025-04-04 11:02:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:02:06 - End Time 2025-04-04 11:02:06 [2025-04-04 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832406', 'tblTempUsageDetail_20' ) start [2025-04-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832406', 'tblTempUsageDetail_20' ) end [2025-04-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832406', 'tblTempVendorCDR_20' ) start [2025-04-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832406', 'tblTempVendorCDR_20' ) end [2025-04-04 11:02:21] Production.INFO: ProcessCDR(1,14832406,1,1,2) [2025-04-04 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832406', 'tblTempUsageDetail_20' ) start [2025-04-04 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832406', 'tblTempUsageDetail_20' ) end [2025-04-04 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:02:27] Production.INFO: ==4350== Releasing lock... [2025-04-04 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:02:27] Production.INFO: 56.5 MB #Memory Used# [2025-04-04 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:03:05 [end_date_ymd] => 2025-04-04 11:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:03:05' and `end` < '2025-04-04 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-04 11:03:19] Production.INFO: count ==3789 [2025-04-04 11:03:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:03:05 - End Time 2025-04-04 11:03:05 [2025-04-04 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832411', 'tblTempUsageDetail_20' ) start [2025-04-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832411', 'tblTempUsageDetail_20' ) end [2025-04-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832411', 'tblTempVendorCDR_20' ) start [2025-04-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832411', 'tblTempVendorCDR_20' ) end [2025-04-04 11:03:20] Production.INFO: ProcessCDR(1,14832411,1,1,2) [2025-04-04 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832411', 'tblTempUsageDetail_20' ) start [2025-04-04 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832411', 'tblTempUsageDetail_20' ) end [2025-04-04 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:03:25] Production.INFO: ==4435== Releasing lock... [2025-04-04 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:03:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-04 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:04:05 [end_date_ymd] => 2025-04-04 11:04:05 [RateCDR] => 1 ) [2025-04-04 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:04:05' and `end` < '2025-04-04 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-04 11:04:19] Production.INFO: count ==3794 [2025-04-04 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:04:05 - End Time 2025-04-04 11:04:05 [2025-04-04 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832416', 'tblTempUsageDetail_20' ) start [2025-04-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832416', 'tblTempUsageDetail_20' ) end [2025-04-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832416', 'tblTempVendorCDR_20' ) start [2025-04-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832416', 'tblTempVendorCDR_20' ) end [2025-04-04 11:04:21] Production.INFO: ProcessCDR(1,14832416,1,1,2) [2025-04-04 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832416', 'tblTempUsageDetail_20' ) start [2025-04-04 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832416', 'tblTempUsageDetail_20' ) end [2025-04-04 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:04:26] Production.INFO: ==4517== Releasing lock... [2025-04-04 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:04:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-04 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:05:05 [end_date_ymd] => 2025-04-04 11:05:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:05:05' and `end` < '2025-04-04 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-04 11:05:19] Production.INFO: count ==3788 [2025-04-04 11:05:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:05:05 - End Time 2025-04-04 11:05:05 [2025-04-04 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832421', 'tblTempUsageDetail_20' ) start [2025-04-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832421', 'tblTempUsageDetail_20' ) end [2025-04-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832421', 'tblTempVendorCDR_20' ) start [2025-04-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832421', 'tblTempVendorCDR_20' ) end [2025-04-04 11:05:21] Production.INFO: ProcessCDR(1,14832421,1,1,2) [2025-04-04 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832421', 'tblTempUsageDetail_20' ) start [2025-04-04 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832421', 'tblTempUsageDetail_20' ) end [2025-04-04 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:05:26] Production.INFO: ==4725== Releasing lock... [2025-04-04 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:05:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-04 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:06:06 [end_date_ymd] => 2025-04-04 11:06:06 [RateCDR] => 1 ) [2025-04-04 11: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 08:06:06' and `end` < '2025-04-04 11: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-04 11:06:19] Production.INFO: count ==3797 [2025-04-04 11:06:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:06:06 - End Time 2025-04-04 11:06:06 [2025-04-04 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832426', 'tblTempUsageDetail_20' ) start [2025-04-04 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832426', 'tblTempUsageDetail_20' ) end [2025-04-04 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832426', 'tblTempVendorCDR_20' ) start [2025-04-04 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832426', 'tblTempVendorCDR_20' ) end [2025-04-04 11:06:21] Production.INFO: ProcessCDR(1,14832426,1,1,2) [2025-04-04 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832426', 'tblTempUsageDetail_20' ) start [2025-04-04 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832426', 'tblTempUsageDetail_20' ) end [2025-04-04 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:06:27] Production.INFO: ==4802== Releasing lock... [2025-04-04 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:06:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-04 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:07:05 [end_date_ymd] => 2025-04-04 11:07:05 [RateCDR] => 1 ) [2025-04-04 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:07:05' and `end` < '2025-04-04 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:07:19] Production.INFO: count ==3823 [2025-04-04 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:07:05 - End Time 2025-04-04 11:07:05 [2025-04-04 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832431', 'tblTempUsageDetail_20' ) start [2025-04-04 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832431', 'tblTempUsageDetail_20' ) end [2025-04-04 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832431', 'tblTempVendorCDR_20' ) start [2025-04-04 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832431', 'tblTempVendorCDR_20' ) end [2025-04-04 11:07:20] Production.INFO: ProcessCDR(1,14832431,1,1,2) [2025-04-04 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832431', 'tblTempUsageDetail_20' ) start [2025-04-04 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832431', 'tblTempUsageDetail_20' ) end [2025-04-04 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:07:26] Production.INFO: ==4883== Releasing lock... [2025-04-04 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:07:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-04 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:08:06 [end_date_ymd] => 2025-04-04 11:08:06 [RateCDR] => 1 ) [2025-04-04 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:08:06' and `end` < '2025-04-04 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:08:19] Production.INFO: count ==3836 [2025-04-04 11:08:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:08:06 - End Time 2025-04-04 11:08:06 [2025-04-04 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832436', 'tblTempUsageDetail_20' ) start [2025-04-04 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832436', 'tblTempUsageDetail_20' ) end [2025-04-04 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832436', 'tblTempVendorCDR_20' ) start [2025-04-04 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832436', 'tblTempVendorCDR_20' ) end [2025-04-04 11:08:21] Production.INFO: ProcessCDR(1,14832436,1,1,2) [2025-04-04 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832436', 'tblTempUsageDetail_20' ) start [2025-04-04 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832436', 'tblTempUsageDetail_20' ) end [2025-04-04 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:08:26] Production.INFO: ==5000== Releasing lock... [2025-04-04 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:08:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-04 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:09:05 [end_date_ymd] => 2025-04-04 11:09:05 [RateCDR] => 1 ) [2025-04-04 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:09:05' and `end` < '2025-04-04 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:09:18] Production.INFO: count ==3862 [2025-04-04 11:09:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:09:05 - End Time 2025-04-04 11:09:05 [2025-04-04 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832441', 'tblTempUsageDetail_20' ) start [2025-04-04 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832441', 'tblTempUsageDetail_20' ) end [2025-04-04 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832441', 'tblTempVendorCDR_20' ) start [2025-04-04 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832441', 'tblTempVendorCDR_20' ) end [2025-04-04 11:09:20] Production.INFO: ProcessCDR(1,14832441,1,1,2) [2025-04-04 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832441', 'tblTempUsageDetail_20' ) start [2025-04-04 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832441', 'tblTempUsageDetail_20' ) end [2025-04-04 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:09:25] Production.INFO: ==5113== Releasing lock... [2025-04-04 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:09:25] Production.INFO: 57 MB #Memory Used# [2025-04-04 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:10:07 [end_date_ymd] => 2025-04-04 11:10:07 [RateCDR] => 1 ) [2025-04-04 11: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 08:10:07' and `end` < '2025-04-04 11: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-04 11:10:21] Production.INFO: count ==3866 [2025-04-04 11:10:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:10:07 - End Time 2025-04-04 11:10:07 [2025-04-04 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832447', 'tblTempUsageDetail_20' ) start [2025-04-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832447', 'tblTempUsageDetail_20' ) end [2025-04-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832447', 'tblTempVendorCDR_20' ) start [2025-04-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832447', 'tblTempVendorCDR_20' ) end [2025-04-04 11:10:22] Production.INFO: ProcessCDR(1,14832447,1,1,2) [2025-04-04 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832447', 'tblTempUsageDetail_20' ) start [2025-04-04 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832447', 'tblTempUsageDetail_20' ) end [2025-04-04 11:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:10:28] Production.INFO: ==5194== Releasing lock... [2025-04-04 11:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:10:28] Production.INFO: 56.75 MB #Memory Used# [2025-04-04 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:11:05 [end_date_ymd] => 2025-04-04 11:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:11:05' and `end` < '2025-04-04 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-04 11:11:19] Production.INFO: count ==3946 [2025-04-04 11:11:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:11:05 - End Time 2025-04-04 11:11:05 [2025-04-04 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832452', 'tblTempUsageDetail_20' ) start [2025-04-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832452', 'tblTempUsageDetail_20' ) end [2025-04-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832452', 'tblTempVendorCDR_20' ) start [2025-04-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832452', 'tblTempVendorCDR_20' ) end [2025-04-04 11:11:20] Production.INFO: ProcessCDR(1,14832452,1,1,2) [2025-04-04 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832452', 'tblTempUsageDetail_20' ) start [2025-04-04 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832452', 'tblTempUsageDetail_20' ) end [2025-04-04 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:11:25] Production.INFO: ==5273== Releasing lock... [2025-04-04 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:11:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-04 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:12:05 [end_date_ymd] => 2025-04-04 11:12:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:12:05' and `end` < '2025-04-04 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-04 11:12:19] Production.INFO: count ==3972 [2025-04-04 11:12:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:12:05 - End Time 2025-04-04 11:12:05 [2025-04-04 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832457', 'tblTempUsageDetail_20' ) start [2025-04-04 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832457', 'tblTempUsageDetail_20' ) end [2025-04-04 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832457', 'tblTempVendorCDR_20' ) start [2025-04-04 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832457', 'tblTempVendorCDR_20' ) end [2025-04-04 11:12:20] Production.INFO: ProcessCDR(1,14832457,1,1,2) [2025-04-04 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832457', 'tblTempUsageDetail_20' ) start [2025-04-04 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832457', 'tblTempUsageDetail_20' ) end [2025-04-04 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:12:26] Production.INFO: ==5432== Releasing lock... [2025-04-04 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:12:26] Production.INFO: 58 MB #Memory Used# [2025-04-04 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:13:05 [end_date_ymd] => 2025-04-04 11:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:13:05' and `end` < '2025-04-04 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-04 11:13:18] Production.INFO: count ==3971 [2025-04-04 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:13:05 - End Time 2025-04-04 11:13:05 [2025-04-04 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832462', 'tblTempUsageDetail_20' ) start [2025-04-04 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832462', 'tblTempUsageDetail_20' ) end [2025-04-04 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832462', 'tblTempVendorCDR_20' ) start [2025-04-04 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832462', 'tblTempVendorCDR_20' ) end [2025-04-04 11:13:20] Production.INFO: ProcessCDR(1,14832462,1,1,2) [2025-04-04 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832462', 'tblTempUsageDetail_20' ) start [2025-04-04 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832462', 'tblTempUsageDetail_20' ) end [2025-04-04 11:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:13:24] Production.INFO: ==5509== Releasing lock... [2025-04-04 11:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:13:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-04 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:14:05 [end_date_ymd] => 2025-04-04 11:14:05 [RateCDR] => 1 ) [2025-04-04 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:14:05' and `end` < '2025-04-04 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:14:19] Production.INFO: count ==3981 [2025-04-04 11:14:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:14:05 - End Time 2025-04-04 11:14:05 [2025-04-04 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832467', 'tblTempUsageDetail_20' ) start [2025-04-04 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832467', 'tblTempUsageDetail_20' ) end [2025-04-04 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832467', 'tblTempVendorCDR_20' ) start [2025-04-04 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832467', 'tblTempVendorCDR_20' ) end [2025-04-04 11:14:21] Production.INFO: ProcessCDR(1,14832467,1,1,2) [2025-04-04 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832467', 'tblTempUsageDetail_20' ) start [2025-04-04 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832467', 'tblTempUsageDetail_20' ) end [2025-04-04 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:14:26] Production.INFO: ==5587== Releasing lock... [2025-04-04 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:14:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-04 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:15:06 [end_date_ymd] => 2025-04-04 11:15:06 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:15:06' and `end` < '2025-04-04 11: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-04 11:15:19] Production.INFO: count ==4010 [2025-04-04 11:15:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:15:06 - End Time 2025-04-04 11:15:06 [2025-04-04 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832472', 'tblTempUsageDetail_20' ) start [2025-04-04 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832472', 'tblTempUsageDetail_20' ) end [2025-04-04 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832472', 'tblTempVendorCDR_20' ) start [2025-04-04 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832472', 'tblTempVendorCDR_20' ) end [2025-04-04 11:15:21] Production.INFO: ProcessCDR(1,14832472,1,1,2) [2025-04-04 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832472', 'tblTempUsageDetail_20' ) start [2025-04-04 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832472', 'tblTempUsageDetail_20' ) end [2025-04-04 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:15:27] Production.INFO: ==5742== Releasing lock... [2025-04-04 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:15:27] Production.INFO: 58 MB #Memory Used# [2025-04-04 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:16:05 [end_date_ymd] => 2025-04-04 11:16:05 [RateCDR] => 1 ) [2025-04-04 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:16:05' and `end` < '2025-04-04 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:16:19] Production.INFO: count ==4050 [2025-04-04 11:16:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:16:05 - End Time 2025-04-04 11:16:05 [2025-04-04 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832477', 'tblTempUsageDetail_20' ) start [2025-04-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832477', 'tblTempUsageDetail_20' ) end [2025-04-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832477', 'tblTempVendorCDR_20' ) start [2025-04-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832477', 'tblTempVendorCDR_20' ) end [2025-04-04 11:16:20] Production.INFO: ProcessCDR(1,14832477,1,1,2) [2025-04-04 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832477', 'tblTempUsageDetail_20' ) start [2025-04-04 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832477', 'tblTempUsageDetail_20' ) end [2025-04-04 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:16:26] Production.INFO: ==5818== Releasing lock... [2025-04-04 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:16:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-04 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:17:06 [end_date_ymd] => 2025-04-04 11:17:06 [RateCDR] => 1 ) [2025-04-04 11: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 08:17:06' and `end` < '2025-04-04 11: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-04 11:17:19] Production.INFO: count ==4062 [2025-04-04 11:17:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:17:06 - End Time 2025-04-04 11:17:06 [2025-04-04 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832482', 'tblTempUsageDetail_20' ) start [2025-04-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832482', 'tblTempUsageDetail_20' ) end [2025-04-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832482', 'tblTempVendorCDR_20' ) start [2025-04-04 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832482', 'tblTempVendorCDR_20' ) end [2025-04-04 11:17:21] Production.INFO: ProcessCDR(1,14832482,1,1,2) [2025-04-04 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832482', 'tblTempUsageDetail_20' ) start [2025-04-04 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832482', 'tblTempUsageDetail_20' ) end [2025-04-04 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:17:27] Production.INFO: ==5896== Releasing lock... [2025-04-04 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:17:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-04 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:18:05 [end_date_ymd] => 2025-04-04 11:18:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:18:05' and `end` < '2025-04-04 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-04 11:18:19] Production.INFO: count ==4066 [2025-04-04 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:18:05 - End Time 2025-04-04 11:18:05 [2025-04-04 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832487', 'tblTempUsageDetail_20' ) start [2025-04-04 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832487', 'tblTempUsageDetail_20' ) end [2025-04-04 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832487', 'tblTempVendorCDR_20' ) start [2025-04-04 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832487', 'tblTempVendorCDR_20' ) end [2025-04-04 11:18:21] Production.INFO: ProcessCDR(1,14832487,1,1,2) [2025-04-04 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832487', 'tblTempUsageDetail_20' ) start [2025-04-04 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832487', 'tblTempUsageDetail_20' ) end [2025-04-04 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:18:26] Production.INFO: ==5976== Releasing lock... [2025-04-04 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:18:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-04 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:19:06 [end_date_ymd] => 2025-04-04 11:19:06 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:19:06' and `end` < '2025-04-04 11: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-04 11:19:20] Production.INFO: count ==4078 [2025-04-04 11:19:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:19:06 - End Time 2025-04-04 11:19:06 [2025-04-04 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832492', 'tblTempUsageDetail_20' ) start [2025-04-04 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832492', 'tblTempUsageDetail_20' ) end [2025-04-04 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832492', 'tblTempVendorCDR_20' ) start [2025-04-04 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832492', 'tblTempVendorCDR_20' ) end [2025-04-04 11:19:21] Production.INFO: ProcessCDR(1,14832492,1,1,2) [2025-04-04 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832492', 'tblTempUsageDetail_20' ) start [2025-04-04 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832492', 'tblTempUsageDetail_20' ) end [2025-04-04 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:19:27] Production.INFO: ==6052== Releasing lock... [2025-04-04 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:19:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-04 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:20:06 [end_date_ymd] => 2025-04-04 11:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 08:20:06' and `end` < '2025-04-04 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-04 11:20:20] Production.INFO: count ==4080 [2025-04-04 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:20:06 - End Time 2025-04-04 11:20:06 [2025-04-04 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832498', 'tblTempUsageDetail_20' ) start [2025-04-04 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832498', 'tblTempUsageDetail_20' ) end [2025-04-04 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832498', 'tblTempVendorCDR_20' ) start [2025-04-04 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832498', 'tblTempVendorCDR_20' ) end [2025-04-04 11:20:21] Production.INFO: ProcessCDR(1,14832498,1,1,2) [2025-04-04 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832498', 'tblTempUsageDetail_20' ) start [2025-04-04 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832498', 'tblTempUsageDetail_20' ) end [2025-04-04 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:20:27] Production.INFO: ==6132== Releasing lock... [2025-04-04 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:20:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-04 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:21:06 [end_date_ymd] => 2025-04-04 11:21:06 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:21:06' and `end` < '2025-04-04 11: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-04 11:21:19] Production.INFO: count ==4156 [2025-04-04 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:21:06 - End Time 2025-04-04 11:21:06 [2025-04-04 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832503', 'tblTempUsageDetail_20' ) start [2025-04-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832503', 'tblTempUsageDetail_20' ) end [2025-04-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832503', 'tblTempVendorCDR_20' ) start [2025-04-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832503', 'tblTempVendorCDR_20' ) end [2025-04-04 11:21:21] Production.INFO: ProcessCDR(1,14832503,1,1,2) [2025-04-04 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832503', 'tblTempUsageDetail_20' ) start [2025-04-04 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832503', 'tblTempUsageDetail_20' ) end [2025-04-04 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:21:26] Production.INFO: ==6250== Releasing lock... [2025-04-04 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:21:26] Production.INFO: 59 MB #Memory Used# [2025-04-04 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:22:05 [end_date_ymd] => 2025-04-04 11:22:05 [RateCDR] => 1 ) [2025-04-04 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:22:05' and `end` < '2025-04-04 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:22:19] Production.INFO: count ==4164 [2025-04-04 11:22:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:22:05 - End Time 2025-04-04 11:22:05 [2025-04-04 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832508', 'tblTempUsageDetail_20' ) start [2025-04-04 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832508', 'tblTempUsageDetail_20' ) end [2025-04-04 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832508', 'tblTempVendorCDR_20' ) start [2025-04-04 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832508', 'tblTempVendorCDR_20' ) end [2025-04-04 11:22:21] Production.INFO: ProcessCDR(1,14832508,1,1,2) [2025-04-04 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832508', 'tblTempUsageDetail_20' ) start [2025-04-04 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832508', 'tblTempUsageDetail_20' ) end [2025-04-04 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:22:26] Production.INFO: ==6321== Releasing lock... [2025-04-04 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:22:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-04 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:23:05 [end_date_ymd] => 2025-04-04 11:23:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:23:05' and `end` < '2025-04-04 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-04 11:23:19] Production.INFO: count ==4175 [2025-04-04 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:23:05 - End Time 2025-04-04 11:23:05 [2025-04-04 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832513', 'tblTempUsageDetail_20' ) start [2025-04-04 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832513', 'tblTempUsageDetail_20' ) end [2025-04-04 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832513', 'tblTempVendorCDR_20' ) start [2025-04-04 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832513', 'tblTempVendorCDR_20' ) end [2025-04-04 11:23:21] Production.INFO: ProcessCDR(1,14832513,1,1,2) [2025-04-04 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832513', 'tblTempUsageDetail_20' ) start [2025-04-04 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832513', 'tblTempUsageDetail_20' ) end [2025-04-04 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:23:26] Production.INFO: ==6398== Releasing lock... [2025-04-04 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:23:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-04 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:24:06 [end_date_ymd] => 2025-04-04 11:24:06 [RateCDR] => 1 ) [2025-04-04 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:24:06' and `end` < '2025-04-04 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:24:19] Production.INFO: count ==4212 [2025-04-04 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:24:06 - End Time 2025-04-04 11:24:06 [2025-04-04 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832518', 'tblTempUsageDetail_20' ) start [2025-04-04 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832518', 'tblTempUsageDetail_20' ) end [2025-04-04 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832518', 'tblTempVendorCDR_20' ) start [2025-04-04 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832518', 'tblTempVendorCDR_20' ) end [2025-04-04 11:24:21] Production.INFO: ProcessCDR(1,14832518,1,1,2) [2025-04-04 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832518', 'tblTempUsageDetail_20' ) start [2025-04-04 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832518', 'tblTempUsageDetail_20' ) end [2025-04-04 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:24:27] Production.INFO: ==6477== Releasing lock... [2025-04-04 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:24:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-04 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:25:05 [end_date_ymd] => 2025-04-04 11:25:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:25:05' and `end` < '2025-04-04 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-04 11:25:19] Production.INFO: count ==4233 [2025-04-04 11:25:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:25:05 - End Time 2025-04-04 11:25:05 [2025-04-04 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832523', 'tblTempUsageDetail_20' ) start [2025-04-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832523', 'tblTempUsageDetail_20' ) end [2025-04-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832523', 'tblTempVendorCDR_20' ) start [2025-04-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832523', 'tblTempVendorCDR_20' ) end [2025-04-04 11:25:21] Production.INFO: ProcessCDR(1,14832523,1,1,2) [2025-04-04 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832523', 'tblTempUsageDetail_20' ) start [2025-04-04 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832523', 'tblTempUsageDetail_20' ) end [2025-04-04 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:25:26] Production.INFO: ==6553== Releasing lock... [2025-04-04 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:25:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-04 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:26:05 [end_date_ymd] => 2025-04-04 11:26:05 [RateCDR] => 1 ) [2025-04-04 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:26:05' and `end` < '2025-04-04 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:26:19] Production.INFO: count ==4234 [2025-04-04 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:26:05 - End Time 2025-04-04 11:26:05 [2025-04-04 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832528', 'tblTempUsageDetail_20' ) start [2025-04-04 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832528', 'tblTempUsageDetail_20' ) end [2025-04-04 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832528', 'tblTempVendorCDR_20' ) start [2025-04-04 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832528', 'tblTempVendorCDR_20' ) end [2025-04-04 11:26:21] Production.INFO: ProcessCDR(1,14832528,1,1,2) [2025-04-04 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832528', 'tblTempUsageDetail_20' ) start [2025-04-04 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832528', 'tblTempUsageDetail_20' ) end [2025-04-04 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:26:26] Production.INFO: ==6631== Releasing lock... [2025-04-04 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:26:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-04 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:27:05 [end_date_ymd] => 2025-04-04 11:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:27:05' and `end` < '2025-04-04 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-04 11:27:19] Production.INFO: count ==4250 [2025-04-04 11:27:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:27:05 - End Time 2025-04-04 11:27:05 [2025-04-04 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832533', 'tblTempUsageDetail_20' ) start [2025-04-04 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832533', 'tblTempUsageDetail_20' ) end [2025-04-04 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832533', 'tblTempVendorCDR_20' ) start [2025-04-04 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832533', 'tblTempVendorCDR_20' ) end [2025-04-04 11:27:21] Production.INFO: ProcessCDR(1,14832533,1,1,2) [2025-04-04 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832533', 'tblTempUsageDetail_20' ) start [2025-04-04 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832533', 'tblTempUsageDetail_20' ) end [2025-04-04 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:27:26] Production.INFO: ==6704== Releasing lock... [2025-04-04 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:27:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-04 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:28:05 [end_date_ymd] => 2025-04-04 11:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:28:05' and `end` < '2025-04-04 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-04 11:28:19] Production.INFO: count ==4248 [2025-04-04 11:28:20] Production.ERROR: pbx CDR StartTime 2025-04-04 08:28:05 - End Time 2025-04-04 11:28:05 [2025-04-04 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832538', 'tblTempUsageDetail_20' ) start [2025-04-04 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832538', 'tblTempUsageDetail_20' ) end [2025-04-04 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832538', 'tblTempVendorCDR_20' ) start [2025-04-04 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832538', 'tblTempVendorCDR_20' ) end [2025-04-04 11:28:21] Production.INFO: ProcessCDR(1,14832538,1,1,2) [2025-04-04 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832538', 'tblTempUsageDetail_20' ) start [2025-04-04 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832538', 'tblTempUsageDetail_20' ) end [2025-04-04 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:28:24] Production.INFO: ==6779== Releasing lock... [2025-04-04 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:28:24] Production.INFO: 59.75 MB #Memory Used# [2025-04-04 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:29:06 [end_date_ymd] => 2025-04-04 11:29:06 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:29:06' and `end` < '2025-04-04 11: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-04 11:29:19] Production.INFO: count ==4276 [2025-04-04 11:29:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:29:06 - End Time 2025-04-04 11:29:06 [2025-04-04 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832543', 'tblTempUsageDetail_20' ) start [2025-04-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832543', 'tblTempUsageDetail_20' ) end [2025-04-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832543', 'tblTempVendorCDR_20' ) start [2025-04-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832543', 'tblTempVendorCDR_20' ) end [2025-04-04 11:29:21] Production.INFO: ProcessCDR(1,14832543,1,1,2) [2025-04-04 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832543', 'tblTempUsageDetail_20' ) start [2025-04-04 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832543', 'tblTempUsageDetail_20' ) end [2025-04-04 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:29:27] Production.INFO: ==6852== Releasing lock... [2025-04-04 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:29:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-04 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:30:06 [end_date_ymd] => 2025-04-04 11:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 08:30:06' and `end` < '2025-04-04 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-04 11:30:20] Production.INFO: count ==4279 [2025-04-04 11:30:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:30:06 - End Time 2025-04-04 11:30:06 [2025-04-04 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832549', 'tblTempUsageDetail_20' ) start [2025-04-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832549', 'tblTempUsageDetail_20' ) end [2025-04-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832549', 'tblTempVendorCDR_20' ) start [2025-04-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832549', 'tblTempVendorCDR_20' ) end [2025-04-04 11:30:22] Production.INFO: ProcessCDR(1,14832549,1,1,2) [2025-04-04 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832549', 'tblTempUsageDetail_20' ) start [2025-04-04 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832549', 'tblTempUsageDetail_20' ) end [2025-04-04 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:30:27] Production.INFO: ==6932== Releasing lock... [2025-04-04 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:30:27] Production.INFO: 60 MB #Memory Used# [2025-04-04 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:31:06 [end_date_ymd] => 2025-04-04 11:31:06 [RateCDR] => 1 ) [2025-04-04 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:31:06' and `end` < '2025-04-04 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:31:20] Production.INFO: count ==4404 [2025-04-04 11:31:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:31:06 - End Time 2025-04-04 11:31:06 [2025-04-04 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832554', 'tblTempUsageDetail_20' ) start [2025-04-04 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832554', 'tblTempUsageDetail_20' ) end [2025-04-04 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832554', 'tblTempVendorCDR_20' ) start [2025-04-04 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832554', 'tblTempVendorCDR_20' ) end [2025-04-04 11:31:22] Production.INFO: ProcessCDR(1,14832554,1,1,2) [2025-04-04 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832554', 'tblTempUsageDetail_20' ) start [2025-04-04 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832554', 'tblTempUsageDetail_20' ) end [2025-04-04 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:31:28] Production.INFO: ==7009== Releasing lock... [2025-04-04 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:31:28] Production.INFO: 61 MB #Memory Used# [2025-04-04 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:32:06 [end_date_ymd] => 2025-04-04 11:32:06 [RateCDR] => 1 ) [2025-04-04 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-04 08:32:06' and `end` < '2025-04-04 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-04 11:32:20] Production.INFO: count ==4445 [2025-04-04 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:32:06 - End Time 2025-04-04 11:32:06 [2025-04-04 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832559', 'tblTempUsageDetail_20' ) start [2025-04-04 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832559', 'tblTempUsageDetail_20' ) end [2025-04-04 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832559', 'tblTempVendorCDR_20' ) start [2025-04-04 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832559', 'tblTempVendorCDR_20' ) end [2025-04-04 11:32:22] Production.INFO: ProcessCDR(1,14832559,1,1,2) [2025-04-04 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832559', 'tblTempUsageDetail_20' ) start [2025-04-04 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832559', 'tblTempUsageDetail_20' ) end [2025-04-04 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:32:28] Production.INFO: ==7086== Releasing lock... [2025-04-04 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:32:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-04 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:33:05 [end_date_ymd] => 2025-04-04 11:33:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:33:05' and `end` < '2025-04-04 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-04 11:33:19] Production.INFO: count ==4461 [2025-04-04 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:33:05 - End Time 2025-04-04 11:33:05 [2025-04-04 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832564', 'tblTempUsageDetail_20' ) start [2025-04-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832564', 'tblTempUsageDetail_20' ) end [2025-04-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832564', 'tblTempVendorCDR_20' ) start [2025-04-04 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832564', 'tblTempVendorCDR_20' ) end [2025-04-04 11:33:21] Production.INFO: ProcessCDR(1,14832564,1,1,2) [2025-04-04 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832564', 'tblTempUsageDetail_20' ) start [2025-04-04 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832564', 'tblTempUsageDetail_20' ) end [2025-04-04 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:33:27] Production.INFO: ==7163== Releasing lock... [2025-04-04 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:33:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-04 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:34:06 [end_date_ymd] => 2025-04-04 11:34:06 [RateCDR] => 1 ) [2025-04-04 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-04 08:34:06' and `end` < '2025-04-04 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-04 11:34:19] Production.INFO: count ==4475 [2025-04-04 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:34:06 - End Time 2025-04-04 11:34:06 [2025-04-04 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832569', 'tblTempUsageDetail_20' ) start [2025-04-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832569', 'tblTempUsageDetail_20' ) end [2025-04-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832569', 'tblTempVendorCDR_20' ) start [2025-04-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832569', 'tblTempVendorCDR_20' ) end [2025-04-04 11:34:21] Production.INFO: ProcessCDR(1,14832569,1,1,2) [2025-04-04 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832569', 'tblTempUsageDetail_20' ) start [2025-04-04 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832569', 'tblTempUsageDetail_20' ) end [2025-04-04 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:34:27] Production.INFO: ==7238== Releasing lock... [2025-04-04 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:34:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-04 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:35:05 [end_date_ymd] => 2025-04-04 11:35:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:35:05' and `end` < '2025-04-04 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-04 11:35:19] Production.INFO: count ==4496 [2025-04-04 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:35:05 - End Time 2025-04-04 11:35:05 [2025-04-04 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832574', 'tblTempUsageDetail_20' ) start [2025-04-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832574', 'tblTempUsageDetail_20' ) end [2025-04-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832574', 'tblTempVendorCDR_20' ) start [2025-04-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832574', 'tblTempVendorCDR_20' ) end [2025-04-04 11:35:21] Production.INFO: ProcessCDR(1,14832574,1,1,2) [2025-04-04 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832574', 'tblTempUsageDetail_20' ) start [2025-04-04 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832574', 'tblTempUsageDetail_20' ) end [2025-04-04 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:35:27] Production.INFO: ==7315== Releasing lock... [2025-04-04 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:35:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-04 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:36:06 [end_date_ymd] => 2025-04-04 11:36:06 [RateCDR] => 1 ) [2025-04-04 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:36:06' and `end` < '2025-04-04 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:36:20] Production.INFO: count ==4533 [2025-04-04 11:36:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:36:06 - End Time 2025-04-04 11:36:06 [2025-04-04 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832579', 'tblTempUsageDetail_20' ) start [2025-04-04 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832579', 'tblTempUsageDetail_20' ) end [2025-04-04 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832579', 'tblTempVendorCDR_20' ) start [2025-04-04 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832579', 'tblTempVendorCDR_20' ) end [2025-04-04 11:36:22] Production.INFO: ProcessCDR(1,14832579,1,1,2) [2025-04-04 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832579', 'tblTempUsageDetail_20' ) start [2025-04-04 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832579', 'tblTempUsageDetail_20' ) end [2025-04-04 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:36:26] Production.INFO: ==7430== Releasing lock... [2025-04-04 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:36:26] Production.INFO: 62 MB #Memory Used# [2025-04-04 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:37:05 [end_date_ymd] => 2025-04-04 11:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:37:05' and `end` < '2025-04-04 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-04 11:37:19] Production.INFO: count ==4558 [2025-04-04 11:37:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:37:05 - End Time 2025-04-04 11:37:05 [2025-04-04 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832584', 'tblTempUsageDetail_20' ) start [2025-04-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832584', 'tblTempUsageDetail_20' ) end [2025-04-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832584', 'tblTempVendorCDR_20' ) start [2025-04-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832584', 'tblTempVendorCDR_20' ) end [2025-04-04 11:37:21] Production.INFO: ProcessCDR(1,14832584,1,1,2) [2025-04-04 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832584', 'tblTempUsageDetail_20' ) start [2025-04-04 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832584', 'tblTempUsageDetail_20' ) end [2025-04-04 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:37:26] Production.INFO: ==7509== Releasing lock... [2025-04-04 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:37:26] Production.INFO: 62 MB #Memory Used# [2025-04-04 11:38:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:38:07 [end_date_ymd] => 2025-04-04 11:38:07 [RateCDR] => 1 ) [2025-04-04 11:38: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 08:38:07' and `end` < '2025-04-04 11:38: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-04 11:38:21] Production.INFO: count ==4582 [2025-04-04 11:38:23] Production.ERROR: pbx CDR StartTime 2025-04-04 08:38:07 - End Time 2025-04-04 11:38:07 [2025-04-04 11:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832589', 'tblTempUsageDetail_20' ) start [2025-04-04 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832589', 'tblTempUsageDetail_20' ) end [2025-04-04 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832589', 'tblTempVendorCDR_20' ) start [2025-04-04 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832589', 'tblTempVendorCDR_20' ) end [2025-04-04 11:38:23] Production.INFO: ProcessCDR(1,14832589,1,1,2) [2025-04-04 11:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832589', 'tblTempUsageDetail_20' ) start [2025-04-04 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832589', 'tblTempUsageDetail_20' ) end [2025-04-04 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:38:28] Production.INFO: ==7585== Releasing lock... [2025-04-04 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:38:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-04 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:39:05 [end_date_ymd] => 2025-04-04 11:39:05 [RateCDR] => 1 ) [2025-04-04 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:39:05' and `end` < '2025-04-04 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:39:19] Production.INFO: count ==4619 [2025-04-04 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:39:05 - End Time 2025-04-04 11:39:05 [2025-04-04 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832594', 'tblTempUsageDetail_20' ) start [2025-04-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832594', 'tblTempUsageDetail_20' ) end [2025-04-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832594', 'tblTempVendorCDR_20' ) start [2025-04-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832594', 'tblTempVendorCDR_20' ) end [2025-04-04 11:39:21] Production.INFO: ProcessCDR(1,14832594,1,1,2) [2025-04-04 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832594', 'tblTempUsageDetail_20' ) start [2025-04-04 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832594', 'tblTempUsageDetail_20' ) end [2025-04-04 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:39:27] Production.INFO: ==7657== Releasing lock... [2025-04-04 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:39:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-04 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:40:06 [end_date_ymd] => 2025-04-04 11:40:06 [RateCDR] => 1 ) [2025-04-04 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:40:06' and `end` < '2025-04-04 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:40:20] Production.INFO: count ==4641 [2025-04-04 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:40:06 - End Time 2025-04-04 11:40:06 [2025-04-04 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832600', 'tblTempUsageDetail_20' ) start [2025-04-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832600', 'tblTempUsageDetail_20' ) end [2025-04-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832600', 'tblTempVendorCDR_20' ) start [2025-04-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832600', 'tblTempVendorCDR_20' ) end [2025-04-04 11:40:22] Production.INFO: ProcessCDR(1,14832600,1,1,2) [2025-04-04 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832600', 'tblTempUsageDetail_20' ) start [2025-04-04 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832600', 'tblTempUsageDetail_20' ) end [2025-04-04 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:40:27] Production.INFO: ==7732== Releasing lock... [2025-04-04 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:40:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-04 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:41:05 [end_date_ymd] => 2025-04-04 11:41:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:41:05' and `end` < '2025-04-04 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-04 11:41:19] Production.INFO: count ==4713 [2025-04-04 11:41:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:41:05 - End Time 2025-04-04 11:41:05 [2025-04-04 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832605', 'tblTempUsageDetail_20' ) start [2025-04-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832605', 'tblTempUsageDetail_20' ) end [2025-04-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832605', 'tblTempVendorCDR_20' ) start [2025-04-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832605', 'tblTempVendorCDR_20' ) end [2025-04-04 11:41:21] Production.INFO: ProcessCDR(1,14832605,1,1,2) [2025-04-04 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832605', 'tblTempUsageDetail_20' ) start [2025-04-04 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832605', 'tblTempUsageDetail_20' ) end [2025-04-04 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:41:26] Production.INFO: ==7808== Releasing lock... [2025-04-04 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:41:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-04 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:42:05 [end_date_ymd] => 2025-04-04 11:42:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:42:05' and `end` < '2025-04-04 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-04 11:42:19] Production.INFO: count ==4745 [2025-04-04 11:42:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:42:05 - End Time 2025-04-04 11:42:05 [2025-04-04 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832610', 'tblTempUsageDetail_20' ) start [2025-04-04 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832610', 'tblTempUsageDetail_20' ) end [2025-04-04 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832610', 'tblTempVendorCDR_20' ) start [2025-04-04 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832610', 'tblTempVendorCDR_20' ) end [2025-04-04 11:42:22] Production.INFO: ProcessCDR(1,14832610,1,1,2) [2025-04-04 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832610', 'tblTempUsageDetail_20' ) start [2025-04-04 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832610', 'tblTempUsageDetail_20' ) end [2025-04-04 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:42:27] Production.INFO: ==7882== Releasing lock... [2025-04-04 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:42:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-04 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:43:05 [end_date_ymd] => 2025-04-04 11:43:05 [RateCDR] => 1 ) [2025-04-04 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:43:05' and `end` < '2025-04-04 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:43:19] Production.INFO: count ==4762 [2025-04-04 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:43:05 - End Time 2025-04-04 11:43:05 [2025-04-04 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832615', 'tblTempUsageDetail_20' ) start [2025-04-04 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832615', 'tblTempUsageDetail_20' ) end [2025-04-04 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832615', 'tblTempVendorCDR_20' ) start [2025-04-04 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832615', 'tblTempVendorCDR_20' ) end [2025-04-04 11:43:21] Production.INFO: ProcessCDR(1,14832615,1,1,2) [2025-04-04 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832615', 'tblTempUsageDetail_20' ) start [2025-04-04 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832615', 'tblTempUsageDetail_20' ) end [2025-04-04 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:43:27] Production.INFO: ==7953== Releasing lock... [2025-04-04 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:43:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-04 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:44:05 [end_date_ymd] => 2025-04-04 11:44:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:44:05' and `end` < '2025-04-04 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-04 11:44:19] Production.INFO: count ==4761 [2025-04-04 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:44:05 - End Time 2025-04-04 11:44:05 [2025-04-04 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832620', 'tblTempUsageDetail_20' ) start [2025-04-04 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832620', 'tblTempUsageDetail_20' ) end [2025-04-04 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832620', 'tblTempVendorCDR_20' ) start [2025-04-04 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832620', 'tblTempVendorCDR_20' ) end [2025-04-04 11:44:21] Production.INFO: ProcessCDR(1,14832620,1,1,2) [2025-04-04 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832620', 'tblTempUsageDetail_20' ) start [2025-04-04 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832620', 'tblTempUsageDetail_20' ) end [2025-04-04 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:44:27] Production.INFO: ==8026== Releasing lock... [2025-04-04 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:44:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-04 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:45:05 [end_date_ymd] => 2025-04-04 11:45:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:45:05' and `end` < '2025-04-04 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-04 11:45:19] Production.INFO: count ==4757 [2025-04-04 11:45:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:45:05 - End Time 2025-04-04 11:45:05 [2025-04-04 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832625', 'tblTempUsageDetail_20' ) start [2025-04-04 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832625', 'tblTempUsageDetail_20' ) end [2025-04-04 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832625', 'tblTempVendorCDR_20' ) start [2025-04-04 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832625', 'tblTempVendorCDR_20' ) end [2025-04-04 11:45:21] Production.INFO: ProcessCDR(1,14832625,1,1,2) [2025-04-04 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832625', 'tblTempUsageDetail_20' ) start [2025-04-04 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832625', 'tblTempUsageDetail_20' ) end [2025-04-04 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:45:27] Production.INFO: ==8100== Releasing lock... [2025-04-04 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:45:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-04 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:46:06 [end_date_ymd] => 2025-04-04 11:46:06 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:46:06' and `end` < '2025-04-04 11: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-04 11:46:19] Production.INFO: count ==4760 [2025-04-04 11:46:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:46:06 - End Time 2025-04-04 11:46:06 [2025-04-04 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832630', 'tblTempUsageDetail_20' ) start [2025-04-04 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832630', 'tblTempUsageDetail_20' ) end [2025-04-04 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832630', 'tblTempVendorCDR_20' ) start [2025-04-04 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832630', 'tblTempVendorCDR_20' ) end [2025-04-04 11:46:22] Production.INFO: ProcessCDR(1,14832630,1,1,2) [2025-04-04 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832630', 'tblTempUsageDetail_20' ) start [2025-04-04 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832630', 'tblTempUsageDetail_20' ) end [2025-04-04 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:46:27] Production.INFO: ==8175== Releasing lock... [2025-04-04 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:46:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-04 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:47:05 [end_date_ymd] => 2025-04-04 11:47:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:47:05' and `end` < '2025-04-04 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-04 11:47:19] Production.INFO: count ==4783 [2025-04-04 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:47:05 - End Time 2025-04-04 11:47:05 [2025-04-04 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832635', 'tblTempUsageDetail_20' ) start [2025-04-04 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832635', 'tblTempUsageDetail_20' ) end [2025-04-04 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832635', 'tblTempVendorCDR_20' ) start [2025-04-04 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832635', 'tblTempVendorCDR_20' ) end [2025-04-04 11:47:21] Production.INFO: ProcessCDR(1,14832635,1,1,2) [2025-04-04 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832635', 'tblTempUsageDetail_20' ) start [2025-04-04 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832635', 'tblTempUsageDetail_20' ) end [2025-04-04 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:47:26] Production.INFO: ==8246== Releasing lock... [2025-04-04 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:47:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-04 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:48:06 [end_date_ymd] => 2025-04-04 11:48:06 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:48:06' and `end` < '2025-04-04 11: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-04 11:48:20] Production.INFO: count ==4769 [2025-04-04 11:48:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:48:06 - End Time 2025-04-04 11:48:06 [2025-04-04 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832640', 'tblTempUsageDetail_20' ) start [2025-04-04 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832640', 'tblTempUsageDetail_20' ) end [2025-04-04 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832640', 'tblTempVendorCDR_20' ) start [2025-04-04 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832640', 'tblTempVendorCDR_20' ) end [2025-04-04 11:48:22] Production.INFO: ProcessCDR(1,14832640,1,1,2) [2025-04-04 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832640', 'tblTempUsageDetail_20' ) start [2025-04-04 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832640', 'tblTempUsageDetail_20' ) end [2025-04-04 11:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:48:28] Production.INFO: ==8318== Releasing lock... [2025-04-04 11:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:48:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-04 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:49:06 [end_date_ymd] => 2025-04-04 11:49:06 [RateCDR] => 1 ) [2025-04-04 11: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 08:49:06' and `end` < '2025-04-04 11: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-04 11:49:20] Production.INFO: count ==4763 [2025-04-04 11:49:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:49:06 - End Time 2025-04-04 11:49:06 [2025-04-04 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832645', 'tblTempUsageDetail_20' ) start [2025-04-04 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832645', 'tblTempUsageDetail_20' ) end [2025-04-04 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832645', 'tblTempVendorCDR_20' ) start [2025-04-04 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832645', 'tblTempVendorCDR_20' ) end [2025-04-04 11:49:22] Production.INFO: ProcessCDR(1,14832645,1,1,2) [2025-04-04 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832645', 'tblTempUsageDetail_20' ) start [2025-04-04 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832645', 'tblTempUsageDetail_20' ) end [2025-04-04 11:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:49:28] Production.INFO: ==8394== Releasing lock... [2025-04-04 11:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:49:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-04 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:50:07 [end_date_ymd] => 2025-04-04 11:50:07 [RateCDR] => 1 ) [2025-04-04 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-04 08:50:07' and `end` < '2025-04-04 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-04 11:50:20] Production.INFO: count ==4786 [2025-04-04 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:50:07 - End Time 2025-04-04 11:50:07 [2025-04-04 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832651', 'tblTempUsageDetail_20' ) start [2025-04-04 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832651', 'tblTempUsageDetail_20' ) end [2025-04-04 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832651', 'tblTempVendorCDR_20' ) start [2025-04-04 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832651', 'tblTempVendorCDR_20' ) end [2025-04-04 11:50:22] Production.INFO: ProcessCDR(1,14832651,1,1,2) [2025-04-04 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832651', 'tblTempUsageDetail_20' ) start [2025-04-04 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832651', 'tblTempUsageDetail_20' ) end [2025-04-04 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:50:28] Production.INFO: ==8467== Releasing lock... [2025-04-04 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:50:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-04 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:51:05 [end_date_ymd] => 2025-04-04 11:51:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:51:05' and `end` < '2025-04-04 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-04 11:51:19] Production.INFO: count ==4854 [2025-04-04 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:51:05 - End Time 2025-04-04 11:51:05 [2025-04-04 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832656', 'tblTempUsageDetail_20' ) start [2025-04-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832656', 'tblTempUsageDetail_20' ) end [2025-04-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832656', 'tblTempVendorCDR_20' ) start [2025-04-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832656', 'tblTempVendorCDR_20' ) end [2025-04-04 11:51:21] Production.INFO: ProcessCDR(1,14832656,1,1,2) [2025-04-04 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832656', 'tblTempUsageDetail_20' ) start [2025-04-04 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832656', 'tblTempUsageDetail_20' ) end [2025-04-04 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:51:27] Production.INFO: ==8543== Releasing lock... [2025-04-04 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:51:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-04 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:52:06 [end_date_ymd] => 2025-04-04 11:52:06 [RateCDR] => 1 ) [2025-04-04 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:52:06' and `end` < '2025-04-04 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:52:20] Production.INFO: count ==4860 [2025-04-04 11:52:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:52:06 - End Time 2025-04-04 11:52:06 [2025-04-04 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832661', 'tblTempUsageDetail_20' ) start [2025-04-04 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832661', 'tblTempUsageDetail_20' ) end [2025-04-04 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832661', 'tblTempVendorCDR_20' ) start [2025-04-04 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832661', 'tblTempVendorCDR_20' ) end [2025-04-04 11:52:22] Production.INFO: ProcessCDR(1,14832661,1,1,2) [2025-04-04 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832661', 'tblTempUsageDetail_20' ) start [2025-04-04 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832661', 'tblTempUsageDetail_20' ) end [2025-04-04 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:52:27] Production.INFO: ==8652== Releasing lock... [2025-04-04 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:52:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-04 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:53:05 [end_date_ymd] => 2025-04-04 11:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:53:05' and `end` < '2025-04-04 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-04 11:53:19] Production.INFO: count ==4876 [2025-04-04 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:53:05 - End Time 2025-04-04 11:53:05 [2025-04-04 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832666', 'tblTempUsageDetail_20' ) start [2025-04-04 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832666', 'tblTempUsageDetail_20' ) end [2025-04-04 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832666', 'tblTempVendorCDR_20' ) start [2025-04-04 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832666', 'tblTempVendorCDR_20' ) end [2025-04-04 11:53:21] Production.INFO: ProcessCDR(1,14832666,1,1,2) [2025-04-04 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832666', 'tblTempUsageDetail_20' ) start [2025-04-04 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832666', 'tblTempUsageDetail_20' ) end [2025-04-04 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:53:26] Production.INFO: ==8727== Releasing lock... [2025-04-04 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:53:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-04 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:54:06 [end_date_ymd] => 2025-04-04 11:54:06 [RateCDR] => 1 ) [2025-04-04 11: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 08:54:06' and `end` < '2025-04-04 11: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-04 11:54:21] Production.INFO: count ==4897 [2025-04-04 11:54:23] Production.ERROR: pbx CDR StartTime 2025-04-04 08:54:06 - End Time 2025-04-04 11:54:06 [2025-04-04 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832671', 'tblTempUsageDetail_20' ) start [2025-04-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832671', 'tblTempUsageDetail_20' ) end [2025-04-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832671', 'tblTempVendorCDR_20' ) start [2025-04-04 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832671', 'tblTempVendorCDR_20' ) end [2025-04-04 11:54:23] Production.INFO: ProcessCDR(1,14832671,1,1,2) [2025-04-04 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832671', 'tblTempUsageDetail_20' ) start [2025-04-04 11:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832671', 'tblTempUsageDetail_20' ) end [2025-04-04 11:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:54:29] Production.INFO: ==8801== Releasing lock... [2025-04-04 11:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:54:29] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:55:05 [end_date_ymd] => 2025-04-04 11:55:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:55:05' and `end` < '2025-04-04 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-04 11:55:19] Production.INFO: count ==4911 [2025-04-04 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:55:05 - End Time 2025-04-04 11:55:05 [2025-04-04 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832676', 'tblTempUsageDetail_20' ) start [2025-04-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832676', 'tblTempUsageDetail_20' ) end [2025-04-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832676', 'tblTempVendorCDR_20' ) start [2025-04-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832676', 'tblTempVendorCDR_20' ) end [2025-04-04 11:55:21] Production.INFO: ProcessCDR(1,14832676,1,1,2) [2025-04-04 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832676', 'tblTempUsageDetail_20' ) start [2025-04-04 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832676', 'tblTempUsageDetail_20' ) end [2025-04-04 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:55:27] Production.INFO: ==8870== Releasing lock... [2025-04-04 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:55:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:56:06 [end_date_ymd] => 2025-04-04 11:56:06 [RateCDR] => 1 ) [2025-04-04 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-04 08:56:06' and `end` < '2025-04-04 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-04 11:56:20] Production.INFO: count ==4921 [2025-04-04 11:56:22] Production.ERROR: pbx CDR StartTime 2025-04-04 08:56:06 - End Time 2025-04-04 11:56:06 [2025-04-04 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832681', 'tblTempUsageDetail_20' ) start [2025-04-04 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832681', 'tblTempUsageDetail_20' ) end [2025-04-04 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832681', 'tblTempVendorCDR_20' ) start [2025-04-04 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832681', 'tblTempVendorCDR_20' ) end [2025-04-04 11:56:23] Production.INFO: ProcessCDR(1,14832681,1,1,2) [2025-04-04 11:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832681', 'tblTempUsageDetail_20' ) start [2025-04-04 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832681', 'tblTempUsageDetail_20' ) end [2025-04-04 11:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:56:28] Production.INFO: ==8951== Releasing lock... [2025-04-04 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:56:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:57:06 [end_date_ymd] => 2025-04-04 11:57:06 [RateCDR] => 1 ) [2025-04-04 11: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-04 08:57:06' and `end` < '2025-04-04 11: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-04 11:57:19] Production.INFO: count ==4932 [2025-04-04 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:57:06 - End Time 2025-04-04 11:57:06 [2025-04-04 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832686', 'tblTempUsageDetail_20' ) start [2025-04-04 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832686', 'tblTempUsageDetail_20' ) end [2025-04-04 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832686', 'tblTempVendorCDR_20' ) start [2025-04-04 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832686', 'tblTempVendorCDR_20' ) end [2025-04-04 11:57:22] Production.INFO: ProcessCDR(1,14832686,1,1,2) [2025-04-04 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832686', 'tblTempUsageDetail_20' ) start [2025-04-04 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832686', 'tblTempUsageDetail_20' ) end [2025-04-04 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:57:27] Production.INFO: ==9021== Releasing lock... [2025-04-04 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:57:27] Production.INFO: 65 MB #Memory Used# [2025-04-04 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:58:05 [end_date_ymd] => 2025-04-04 11:58:05 [RateCDR] => 1 ) [2025-04-04 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-04 08:58:05' and `end` < '2025-04-04 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-04 11:58:19] Production.INFO: count ==4964 [2025-04-04 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:58:05 - End Time 2025-04-04 11:58:05 [2025-04-04 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832691', 'tblTempUsageDetail_20' ) start [2025-04-04 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832691', 'tblTempUsageDetail_20' ) end [2025-04-04 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832691', 'tblTempVendorCDR_20' ) start [2025-04-04 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832691', 'tblTempVendorCDR_20' ) end [2025-04-04 11:58:21] Production.INFO: ProcessCDR(1,14832691,1,1,2) [2025-04-04 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832691', 'tblTempUsageDetail_20' ) start [2025-04-04 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832691', 'tblTempUsageDetail_20' ) end [2025-04-04 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:58:27] Production.INFO: ==9099== Releasing lock... [2025-04-04 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:58:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-04 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 08:59:05 [end_date_ymd] => 2025-04-04 11:59:05 [RateCDR] => 1 ) [2025-04-04 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 08:59:05' and `end` < '2025-04-04 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 11:59:19] Production.INFO: count ==4979 [2025-04-04 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-04 08:59:05 - End Time 2025-04-04 11:59:05 [2025-04-04 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832696', 'tblTempUsageDetail_20' ) start [2025-04-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832696', 'tblTempUsageDetail_20' ) end [2025-04-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832696', 'tblTempVendorCDR_20' ) start [2025-04-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832696', 'tblTempVendorCDR_20' ) end [2025-04-04 11:59:21] Production.INFO: ProcessCDR(1,14832696,1,1,2) [2025-04-04 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832696', 'tblTempUsageDetail_20' ) start [2025-04-04 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832696', 'tblTempUsageDetail_20' ) end [2025-04-04 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 11:59:27] Production.INFO: ==9169== Releasing lock... [2025-04-04 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 11:59:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-04 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:00:07 [end_date_ymd] => 2025-04-04 12:00:07 [RateCDR] => 1 ) [2025-04-04 12: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-04 09:00:07' and `end` < '2025-04-04 12: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-04 12:00:20] Production.INFO: count ==4985 [2025-04-04 12:00:23] Production.ERROR: pbx CDR StartTime 2025-04-04 09:00:07 - End Time 2025-04-04 12:00:07 [2025-04-04 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832702', 'tblTempUsageDetail_20' ) start [2025-04-04 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832702', 'tblTempUsageDetail_20' ) end [2025-04-04 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832702', 'tblTempVendorCDR_20' ) start [2025-04-04 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832702', 'tblTempVendorCDR_20' ) end [2025-04-04 12:00:23] Production.INFO: ProcessCDR(1,14832702,1,1,2) [2025-04-04 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832702', 'tblTempUsageDetail_20' ) start [2025-04-04 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832702', 'tblTempUsageDetail_20' ) end [2025-04-04 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:00:28] Production.INFO: ==9247== Releasing lock... [2025-04-04 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:00:28] Production.INFO: 65.25 MB #Memory Used# [2025-04-04 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:01:05 [end_date_ymd] => 2025-04-04 12:01:05 [RateCDR] => 1 ) [2025-04-04 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:01:05' and `end` < '2025-04-04 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:01:19] Production.INFO: count ==5053 [2025-04-04 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:01:05 - End Time 2025-04-04 12:01:05 [2025-04-04 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832707', 'tblTempUsageDetail_20' ) start [2025-04-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832707', 'tblTempUsageDetail_20' ) end [2025-04-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832707', 'tblTempVendorCDR_20' ) start [2025-04-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832707', 'tblTempVendorCDR_20' ) end [2025-04-04 12:01:21] Production.INFO: ProcessCDR(1,14832707,1,1,2) [2025-04-04 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832707', 'tblTempUsageDetail_20' ) start [2025-04-04 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832707', 'tblTempUsageDetail_20' ) end [2025-04-04 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:01:27] Production.INFO: ==9333== Releasing lock... [2025-04-04 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:01:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:02:05 [end_date_ymd] => 2025-04-04 12:02:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:02:05' and `end` < '2025-04-04 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-04 12:02:19] Production.INFO: count ==5057 [2025-04-04 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:02:05 - End Time 2025-04-04 12:02:05 [2025-04-04 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832712', 'tblTempUsageDetail_20' ) start [2025-04-04 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832712', 'tblTempUsageDetail_20' ) end [2025-04-04 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832712', 'tblTempVendorCDR_20' ) start [2025-04-04 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832712', 'tblTempVendorCDR_20' ) end [2025-04-04 12:02:21] Production.INFO: ProcessCDR(1,14832712,1,1,2) [2025-04-04 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832712', 'tblTempUsageDetail_20' ) start [2025-04-04 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832712', 'tblTempUsageDetail_20' ) end [2025-04-04 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:02:27] Production.INFO: ==9409== Releasing lock... [2025-04-04 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:02:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:03:05 [end_date_ymd] => 2025-04-04 12:03:05 [RateCDR] => 1 ) [2025-04-04 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:03:05' and `end` < '2025-04-04 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:03:19] Production.INFO: count ==5053 [2025-04-04 12:03:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:03:05 - End Time 2025-04-04 12:03:05 [2025-04-04 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832717', 'tblTempUsageDetail_20' ) start [2025-04-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832717', 'tblTempUsageDetail_20' ) end [2025-04-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832717', 'tblTempVendorCDR_20' ) start [2025-04-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832717', 'tblTempVendorCDR_20' ) end [2025-04-04 12:03:21] Production.INFO: ProcessCDR(1,14832717,1,1,2) [2025-04-04 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832717', 'tblTempUsageDetail_20' ) start [2025-04-04 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832717', 'tblTempUsageDetail_20' ) end [2025-04-04 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:03:27] Production.INFO: ==9486== Releasing lock... [2025-04-04 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:03:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:04:05 [end_date_ymd] => 2025-04-04 12:04:05 [RateCDR] => 1 ) [2025-04-04 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:04:05' and `end` < '2025-04-04 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:04:19] Production.INFO: count ==5070 [2025-04-04 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:04:05 - End Time 2025-04-04 12:04:05 [2025-04-04 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832722', 'tblTempUsageDetail_20' ) start [2025-04-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832722', 'tblTempUsageDetail_20' ) end [2025-04-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832722', 'tblTempVendorCDR_20' ) start [2025-04-04 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832722', 'tblTempVendorCDR_20' ) end [2025-04-04 12:04:21] Production.INFO: ProcessCDR(1,14832722,1,1,2) [2025-04-04 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832722', 'tblTempUsageDetail_20' ) start [2025-04-04 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832722', 'tblTempUsageDetail_20' ) end [2025-04-04 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:04:27] Production.INFO: ==9560== Releasing lock... [2025-04-04 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:04:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:05:05 [end_date_ymd] => 2025-04-04 12:05:05 [RateCDR] => 1 ) [2025-04-04 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:05:05' and `end` < '2025-04-04 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:05:19] Production.INFO: count ==5062 [2025-04-04 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:05:05 - End Time 2025-04-04 12:05:05 [2025-04-04 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832727', 'tblTempUsageDetail_20' ) start [2025-04-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832727', 'tblTempUsageDetail_20' ) end [2025-04-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832727', 'tblTempVendorCDR_20' ) start [2025-04-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832727', 'tblTempVendorCDR_20' ) end [2025-04-04 12:05:21] Production.INFO: ProcessCDR(1,14832727,1,1,2) [2025-04-04 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832727', 'tblTempUsageDetail_20' ) start [2025-04-04 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832727', 'tblTempUsageDetail_20' ) end [2025-04-04 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:05:26] Production.INFO: ==9645== Releasing lock... [2025-04-04 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:05:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:06:06 [end_date_ymd] => 2025-04-04 12:06:06 [RateCDR] => 1 ) [2025-04-04 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:06:06' and `end` < '2025-04-04 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:06:19] Production.INFO: count ==5055 [2025-04-04 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:06:06 - End Time 2025-04-04 12:06:06 [2025-04-04 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832732', 'tblTempUsageDetail_20' ) start [2025-04-04 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832732', 'tblTempUsageDetail_20' ) end [2025-04-04 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832732', 'tblTempVendorCDR_20' ) start [2025-04-04 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832732', 'tblTempVendorCDR_20' ) end [2025-04-04 12:06:22] Production.INFO: ProcessCDR(1,14832732,1,1,2) [2025-04-04 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832732', 'tblTempUsageDetail_20' ) start [2025-04-04 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832732', 'tblTempUsageDetail_20' ) end [2025-04-04 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:06:27] Production.INFO: ==9718== Releasing lock... [2025-04-04 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:06:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:07:05 [end_date_ymd] => 2025-04-04 12:07:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:07:05' and `end` < '2025-04-04 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-04 12:07:19] Production.INFO: count ==5081 [2025-04-04 12:07:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:07:05 - End Time 2025-04-04 12:07:05 [2025-04-04 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832737', 'tblTempUsageDetail_20' ) start [2025-04-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832737', 'tblTempUsageDetail_20' ) end [2025-04-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832737', 'tblTempVendorCDR_20' ) start [2025-04-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832737', 'tblTempVendorCDR_20' ) end [2025-04-04 12:07:21] Production.INFO: ProcessCDR(1,14832737,1,1,2) [2025-04-04 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832737', 'tblTempUsageDetail_20' ) start [2025-04-04 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832737', 'tblTempUsageDetail_20' ) end [2025-04-04 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:07:27] Production.INFO: ==9829== Releasing lock... [2025-04-04 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:07:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:08:05 [end_date_ymd] => 2025-04-04 12:08:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:08:05' and `end` < '2025-04-04 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-04 12:08:19] Production.INFO: count ==5092 [2025-04-04 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:08:05 - End Time 2025-04-04 12:08:05 [2025-04-04 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832742', 'tblTempUsageDetail_20' ) start [2025-04-04 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832742', 'tblTempUsageDetail_20' ) end [2025-04-04 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832742', 'tblTempVendorCDR_20' ) start [2025-04-04 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832742', 'tblTempVendorCDR_20' ) end [2025-04-04 12:08:22] Production.INFO: ProcessCDR(1,14832742,1,1,2) [2025-04-04 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832742', 'tblTempUsageDetail_20' ) start [2025-04-04 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832742', 'tblTempUsageDetail_20' ) end [2025-04-04 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:08:27] Production.INFO: ==9904== Releasing lock... [2025-04-04 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:08:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:09:05 [end_date_ymd] => 2025-04-04 12:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:09:05' and `end` < '2025-04-04 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-04 12:09:19] Production.INFO: count ==5125 [2025-04-04 12:09:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:09:05 - End Time 2025-04-04 12:09:05 [2025-04-04 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832747', 'tblTempUsageDetail_20' ) start [2025-04-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832747', 'tblTempUsageDetail_20' ) end [2025-04-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832747', 'tblTempVendorCDR_20' ) start [2025-04-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832747', 'tblTempVendorCDR_20' ) end [2025-04-04 12:09:21] Production.INFO: ProcessCDR(1,14832747,1,1,2) [2025-04-04 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832747', 'tblTempUsageDetail_20' ) start [2025-04-04 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832747', 'tblTempUsageDetail_20' ) end [2025-04-04 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:09:26] Production.INFO: ==9979== Releasing lock... [2025-04-04 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:09:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:10:07 [end_date_ymd] => 2025-04-04 12:10:07 [RateCDR] => 1 ) [2025-04-04 12: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 09:10:07' and `end` < '2025-04-04 12: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-04 12:10:21] Production.INFO: count ==5118 [2025-04-04 12:10:23] Production.ERROR: pbx CDR StartTime 2025-04-04 09:10:07 - End Time 2025-04-04 12:10:07 [2025-04-04 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832753', 'tblTempUsageDetail_20' ) start [2025-04-04 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832753', 'tblTempUsageDetail_20' ) end [2025-04-04 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832753', 'tblTempVendorCDR_20' ) start [2025-04-04 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832753', 'tblTempVendorCDR_20' ) end [2025-04-04 12:10:23] Production.INFO: ProcessCDR(1,14832753,1,1,2) [2025-04-04 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832753', 'tblTempUsageDetail_20' ) start [2025-04-04 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832753', 'tblTempUsageDetail_20' ) end [2025-04-04 12:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:10:29] Production.INFO: ==10061== Releasing lock... [2025-04-04 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:10:29] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:11:05 [end_date_ymd] => 2025-04-04 12:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:11:05' and `end` < '2025-04-04 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-04 12:11:19] Production.INFO: count ==5179 [2025-04-04 12:11:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:11:05 - End Time 2025-04-04 12:11:05 [2025-04-04 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832758', 'tblTempUsageDetail_20' ) start [2025-04-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832758', 'tblTempUsageDetail_20' ) end [2025-04-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832758', 'tblTempVendorCDR_20' ) start [2025-04-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832758', 'tblTempVendorCDR_20' ) end [2025-04-04 12:11:21] Production.INFO: ProcessCDR(1,14832758,1,1,2) [2025-04-04 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832758', 'tblTempUsageDetail_20' ) start [2025-04-04 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832758', 'tblTempUsageDetail_20' ) end [2025-04-04 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:11:26] Production.INFO: ==10136== Releasing lock... [2025-04-04 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:11:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:12:05 [end_date_ymd] => 2025-04-04 12:12:05 [RateCDR] => 1 ) [2025-04-04 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:12:05' and `end` < '2025-04-04 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:12:19] Production.INFO: count ==5186 [2025-04-04 12:12:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:12:05 - End Time 2025-04-04 12:12:05 [2025-04-04 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832763', 'tblTempUsageDetail_20' ) start [2025-04-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832763', 'tblTempUsageDetail_20' ) end [2025-04-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832763', 'tblTempVendorCDR_20' ) start [2025-04-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832763', 'tblTempVendorCDR_20' ) end [2025-04-04 12:12:21] Production.INFO: ProcessCDR(1,14832763,1,1,2) [2025-04-04 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832763', 'tblTempUsageDetail_20' ) start [2025-04-04 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832763', 'tblTempUsageDetail_20' ) end [2025-04-04 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:12:26] Production.INFO: ==10213== Releasing lock... [2025-04-04 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:12:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:13:05 [end_date_ymd] => 2025-04-04 12:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:13:05' and `end` < '2025-04-04 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-04 12:13:18] Production.INFO: count ==5205 [2025-04-04 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:13:05 - End Time 2025-04-04 12:13:05 [2025-04-04 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832768', 'tblTempUsageDetail_20' ) start [2025-04-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832768', 'tblTempUsageDetail_20' ) end [2025-04-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832768', 'tblTempVendorCDR_20' ) start [2025-04-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832768', 'tblTempVendorCDR_20' ) end [2025-04-04 12:13:21] Production.INFO: ProcessCDR(1,14832768,1,1,2) [2025-04-04 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832768', 'tblTempUsageDetail_20' ) start [2025-04-04 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832768', 'tblTempUsageDetail_20' ) end [2025-04-04 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:13:27] Production.INFO: ==10286== Releasing lock... [2025-04-04 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:13:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:14:05 [end_date_ymd] => 2025-04-04 12:14:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:14:05' and `end` < '2025-04-04 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-04 12:14:19] Production.INFO: count ==5207 [2025-04-04 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:14:05 - End Time 2025-04-04 12:14:05 [2025-04-04 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832773', 'tblTempUsageDetail_20' ) start [2025-04-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832773', 'tblTempUsageDetail_20' ) end [2025-04-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832773', 'tblTempVendorCDR_20' ) start [2025-04-04 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832773', 'tblTempVendorCDR_20' ) end [2025-04-04 12:14:22] Production.INFO: ProcessCDR(1,14832773,1,1,2) [2025-04-04 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832773', 'tblTempUsageDetail_20' ) start [2025-04-04 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832773', 'tblTempUsageDetail_20' ) end [2025-04-04 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:14:27] Production.INFO: ==10359== Releasing lock... [2025-04-04 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:14:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:15:05 [end_date_ymd] => 2025-04-04 12:15:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:15:05' and `end` < '2025-04-04 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-04 12:15:18] Production.INFO: count ==5238 [2025-04-04 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:15:05 - End Time 2025-04-04 12:15:05 [2025-04-04 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832778', 'tblTempUsageDetail_20' ) start [2025-04-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832778', 'tblTempUsageDetail_20' ) end [2025-04-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832778', 'tblTempVendorCDR_20' ) start [2025-04-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832778', 'tblTempVendorCDR_20' ) end [2025-04-04 12:15:21] Production.INFO: ProcessCDR(1,14832778,1,1,2) [2025-04-04 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832778', 'tblTempUsageDetail_20' ) start [2025-04-04 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832778', 'tblTempUsageDetail_20' ) end [2025-04-04 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:15:26] Production.INFO: ==10439== Releasing lock... [2025-04-04 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:15:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:16:06 [end_date_ymd] => 2025-04-04 12:16:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:16:06' and `end` < '2025-04-04 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-04 12:16:19] Production.INFO: count ==5244 [2025-04-04 12:16:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:16:06 - End Time 2025-04-04 12:16:06 [2025-04-04 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832783', 'tblTempUsageDetail_20' ) start [2025-04-04 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832783', 'tblTempUsageDetail_20' ) end [2025-04-04 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832783', 'tblTempVendorCDR_20' ) start [2025-04-04 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832783', 'tblTempVendorCDR_20' ) end [2025-04-04 12:16:22] Production.INFO: ProcessCDR(1,14832783,1,1,2) [2025-04-04 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832783', 'tblTempUsageDetail_20' ) start [2025-04-04 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832783', 'tblTempUsageDetail_20' ) end [2025-04-04 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:16:27] Production.INFO: ==10519== Releasing lock... [2025-04-04 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:16:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:17:05 [end_date_ymd] => 2025-04-04 12:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:17:05' and `end` < '2025-04-04 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-04 12:17:18] Production.INFO: count ==5257 [2025-04-04 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:17:05 - End Time 2025-04-04 12:17:05 [2025-04-04 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832788', 'tblTempUsageDetail_20' ) start [2025-04-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832788', 'tblTempUsageDetail_20' ) end [2025-04-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832788', 'tblTempVendorCDR_20' ) start [2025-04-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832788', 'tblTempVendorCDR_20' ) end [2025-04-04 12:17:21] Production.INFO: ProcessCDR(1,14832788,1,1,2) [2025-04-04 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832788', 'tblTempUsageDetail_20' ) start [2025-04-04 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832788', 'tblTempUsageDetail_20' ) end [2025-04-04 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:17:26] Production.INFO: ==10595== Releasing lock... [2025-04-04 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:17:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:18:05 [end_date_ymd] => 2025-04-04 12:18:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:18:05' and `end` < '2025-04-04 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-04 12:18:19] Production.INFO: count ==5257 [2025-04-04 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:18:05 - End Time 2025-04-04 12:18:05 [2025-04-04 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832793', 'tblTempUsageDetail_20' ) start [2025-04-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832793', 'tblTempUsageDetail_20' ) end [2025-04-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832793', 'tblTempVendorCDR_20' ) start [2025-04-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832793', 'tblTempVendorCDR_20' ) end [2025-04-04 12:18:21] Production.INFO: ProcessCDR(1,14832793,1,1,2) [2025-04-04 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832793', 'tblTempUsageDetail_20' ) start [2025-04-04 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832793', 'tblTempUsageDetail_20' ) end [2025-04-04 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:18:27] Production.INFO: ==10669== Releasing lock... [2025-04-04 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:18:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:19:06 [end_date_ymd] => 2025-04-04 12:19:06 [RateCDR] => 1 ) [2025-04-04 12: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-04 09:19:06' and `end` < '2025-04-04 12: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-04 12:19:20] Production.INFO: count ==5275 [2025-04-04 12:19:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:19:06 - End Time 2025-04-04 12:19:06 [2025-04-04 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832798', 'tblTempUsageDetail_20' ) start [2025-04-04 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832798', 'tblTempUsageDetail_20' ) end [2025-04-04 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832798', 'tblTempVendorCDR_20' ) start [2025-04-04 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832798', 'tblTempVendorCDR_20' ) end [2025-04-04 12:19:22] Production.INFO: ProcessCDR(1,14832798,1,1,2) [2025-04-04 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832798', 'tblTempUsageDetail_20' ) start [2025-04-04 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832798', 'tblTempUsageDetail_20' ) end [2025-04-04 12:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:19:28] Production.INFO: ==10744== Releasing lock... [2025-04-04 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:19:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:20:06 [end_date_ymd] => 2025-04-04 12:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:20:06' and `end` < '2025-04-04 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-04 12:20:20] Production.INFO: count ==5278 [2025-04-04 12:20:23] Production.ERROR: pbx CDR StartTime 2025-04-04 09:20:06 - End Time 2025-04-04 12:20:06 [2025-04-04 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832804', 'tblTempUsageDetail_20' ) start [2025-04-04 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832804', 'tblTempUsageDetail_20' ) end [2025-04-04 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832804', 'tblTempVendorCDR_20' ) start [2025-04-04 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832804', 'tblTempVendorCDR_20' ) end [2025-04-04 12:20:23] Production.INFO: ProcessCDR(1,14832804,1,1,2) [2025-04-04 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832804', 'tblTempUsageDetail_20' ) start [2025-04-04 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832804', 'tblTempUsageDetail_20' ) end [2025-04-04 12:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:20:29] Production.INFO: ==10818== Releasing lock... [2025-04-04 12:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:20:29] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:21:06 [end_date_ymd] => 2025-04-04 12:21:06 [RateCDR] => 1 ) [2025-04-04 12: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-04 09:21:06' and `end` < '2025-04-04 12: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-04 12:21:19] Production.INFO: count ==5317 [2025-04-04 12:21:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:21:06 - End Time 2025-04-04 12:21:06 [2025-04-04 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832809', 'tblTempUsageDetail_20' ) start [2025-04-04 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832809', 'tblTempUsageDetail_20' ) end [2025-04-04 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832809', 'tblTempVendorCDR_20' ) start [2025-04-04 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832809', 'tblTempVendorCDR_20' ) end [2025-04-04 12:21:22] Production.INFO: ProcessCDR(1,14832809,1,1,2) [2025-04-04 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832809', 'tblTempUsageDetail_20' ) start [2025-04-04 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832809', 'tblTempUsageDetail_20' ) end [2025-04-04 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:21:28] Production.INFO: ==10893== Releasing lock... [2025-04-04 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:21:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:22:05 [end_date_ymd] => 2025-04-04 12:22:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:22:05' and `end` < '2025-04-04 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-04 12:22:19] Production.INFO: count ==5317 [2025-04-04 12:22:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:22:05 - End Time 2025-04-04 12:22:05 [2025-04-04 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832814', 'tblTempUsageDetail_20' ) start [2025-04-04 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832814', 'tblTempUsageDetail_20' ) end [2025-04-04 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832814', 'tblTempVendorCDR_20' ) start [2025-04-04 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832814', 'tblTempVendorCDR_20' ) end [2025-04-04 12:22:21] Production.INFO: ProcessCDR(1,14832814,1,1,2) [2025-04-04 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832814', 'tblTempUsageDetail_20' ) start [2025-04-04 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832814', 'tblTempUsageDetail_20' ) end [2025-04-04 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:22:27] Production.INFO: ==10967== Releasing lock... [2025-04-04 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:22:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:23:05 [end_date_ymd] => 2025-04-04 12:23:05 [RateCDR] => 1 ) [2025-04-04 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:23:05' and `end` < '2025-04-04 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:23:19] Production.INFO: count ==5294 [2025-04-04 12:23:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:23:05 - End Time 2025-04-04 12:23:05 [2025-04-04 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832819', 'tblTempUsageDetail_20' ) start [2025-04-04 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832819', 'tblTempUsageDetail_20' ) end [2025-04-04 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832819', 'tblTempVendorCDR_20' ) start [2025-04-04 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832819', 'tblTempVendorCDR_20' ) end [2025-04-04 12:23:21] Production.INFO: ProcessCDR(1,14832819,1,1,2) [2025-04-04 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832819', 'tblTempUsageDetail_20' ) start [2025-04-04 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832819', 'tblTempUsageDetail_20' ) end [2025-04-04 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:23:27] Production.INFO: ==11080== Releasing lock... [2025-04-04 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:23:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:24:06 [end_date_ymd] => 2025-04-04 12:24:06 [RateCDR] => 1 ) [2025-04-04 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:24:06' and `end` < '2025-04-04 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:24:20] Production.INFO: count ==5305 [2025-04-04 12:24:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:24:06 - End Time 2025-04-04 12:24:06 [2025-04-04 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832824', 'tblTempUsageDetail_20' ) start [2025-04-04 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832824', 'tblTempUsageDetail_20' ) end [2025-04-04 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832824', 'tblTempVendorCDR_20' ) start [2025-04-04 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832824', 'tblTempVendorCDR_20' ) end [2025-04-04 12:24:22] Production.INFO: ProcessCDR(1,14832824,1,1,2) [2025-04-04 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832824', 'tblTempUsageDetail_20' ) start [2025-04-04 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832824', 'tblTempUsageDetail_20' ) end [2025-04-04 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:24:28] Production.INFO: ==11157== Releasing lock... [2025-04-04 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:24:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:25:05 [end_date_ymd] => 2025-04-04 12:25:05 [RateCDR] => 1 ) [2025-04-04 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:25:05' and `end` < '2025-04-04 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:25:19] Production.INFO: count ==5312 [2025-04-04 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:25:05 - End Time 2025-04-04 12:25:05 [2025-04-04 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832829', 'tblTempUsageDetail_20' ) start [2025-04-04 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832829', 'tblTempUsageDetail_20' ) end [2025-04-04 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832829', 'tblTempVendorCDR_20' ) start [2025-04-04 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832829', 'tblTempVendorCDR_20' ) end [2025-04-04 12:25:22] Production.INFO: ProcessCDR(1,14832829,1,1,2) [2025-04-04 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832829', 'tblTempUsageDetail_20' ) start [2025-04-04 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832829', 'tblTempUsageDetail_20' ) end [2025-04-04 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:25:27] Production.INFO: ==11229== Releasing lock... [2025-04-04 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:25:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:26:05 [end_date_ymd] => 2025-04-04 12:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:26:05' and `end` < '2025-04-04 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-04 12:26:19] Production.INFO: count ==5335 [2025-04-04 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:26:05 - End Time 2025-04-04 12:26:05 [2025-04-04 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832834', 'tblTempUsageDetail_20' ) start [2025-04-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832834', 'tblTempUsageDetail_20' ) end [2025-04-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832834', 'tblTempVendorCDR_20' ) start [2025-04-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832834', 'tblTempVendorCDR_20' ) end [2025-04-04 12:26:21] Production.INFO: ProcessCDR(1,14832834,1,1,2) [2025-04-04 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832834', 'tblTempUsageDetail_20' ) start [2025-04-04 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832834', 'tblTempUsageDetail_20' ) end [2025-04-04 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:26:27] Production.INFO: ==11306== Releasing lock... [2025-04-04 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:26:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:27:05 [end_date_ymd] => 2025-04-04 12:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:27:05' and `end` < '2025-04-04 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-04 12:27:19] Production.INFO: count ==5343 [2025-04-04 12:27:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:27:05 - End Time 2025-04-04 12:27:05 [2025-04-04 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832839', 'tblTempUsageDetail_20' ) start [2025-04-04 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832839', 'tblTempUsageDetail_20' ) end [2025-04-04 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832839', 'tblTempVendorCDR_20' ) start [2025-04-04 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832839', 'tblTempVendorCDR_20' ) end [2025-04-04 12:27:22] Production.INFO: ProcessCDR(1,14832839,1,1,2) [2025-04-04 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832839', 'tblTempUsageDetail_20' ) start [2025-04-04 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832839', 'tblTempUsageDetail_20' ) end [2025-04-04 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:27:27] Production.INFO: ==11378== Releasing lock... [2025-04-04 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:27:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:28:05 [end_date_ymd] => 2025-04-04 12:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:28:05' and `end` < '2025-04-04 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-04 12:28:19] Production.INFO: count ==5343 [2025-04-04 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:28:05 - End Time 2025-04-04 12:28:05 [2025-04-04 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832844', 'tblTempUsageDetail_20' ) start [2025-04-04 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832844', 'tblTempUsageDetail_20' ) end [2025-04-04 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832844', 'tblTempVendorCDR_20' ) start [2025-04-04 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832844', 'tblTempVendorCDR_20' ) end [2025-04-04 12:28:22] Production.INFO: ProcessCDR(1,14832844,1,1,2) [2025-04-04 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832844', 'tblTempUsageDetail_20' ) start [2025-04-04 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832844', 'tblTempUsageDetail_20' ) end [2025-04-04 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:28:27] Production.INFO: ==11452== Releasing lock... [2025-04-04 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:28:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:29:06 [end_date_ymd] => 2025-04-04 12:29:06 [RateCDR] => 1 ) [2025-04-04 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:29:06' and `end` < '2025-04-04 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:29:20] Production.INFO: count ==5353 [2025-04-04 12:29:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:29:06 - End Time 2025-04-04 12:29:06 [2025-04-04 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832849', 'tblTempUsageDetail_20' ) start [2025-04-04 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832849', 'tblTempUsageDetail_20' ) end [2025-04-04 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832849', 'tblTempVendorCDR_20' ) start [2025-04-04 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832849', 'tblTempVendorCDR_20' ) end [2025-04-04 12:29:22] Production.INFO: ProcessCDR(1,14832849,1,1,2) [2025-04-04 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832849', 'tblTempUsageDetail_20' ) start [2025-04-04 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832849', 'tblTempUsageDetail_20' ) end [2025-04-04 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:29:27] Production.INFO: ==11525== Releasing lock... [2025-04-04 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:29:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:30:06 [end_date_ymd] => 2025-04-04 12:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:30:06' and `end` < '2025-04-04 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-04 12:30:20] Production.INFO: count ==5367 [2025-04-04 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:30:06 - End Time 2025-04-04 12:30:06 [2025-04-04 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832855', 'tblTempUsageDetail_20' ) start [2025-04-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832855', 'tblTempUsageDetail_20' ) end [2025-04-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832855', 'tblTempVendorCDR_20' ) start [2025-04-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832855', 'tblTempVendorCDR_20' ) end [2025-04-04 12:30:22] Production.INFO: ProcessCDR(1,14832855,1,1,2) [2025-04-04 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832855', 'tblTempUsageDetail_20' ) start [2025-04-04 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832855', 'tblTempUsageDetail_20' ) end [2025-04-04 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:30:28] Production.INFO: ==11608== Releasing lock... [2025-04-04 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:30:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:31:06 [end_date_ymd] => 2025-04-04 12:31:06 [RateCDR] => 1 ) [2025-04-04 12: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 09:31:06' and `end` < '2025-04-04 12: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-04 12:31:20] Production.INFO: count ==5370 [2025-04-04 12:31:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:31:06 - End Time 2025-04-04 12:31:06 [2025-04-04 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832860', 'tblTempUsageDetail_20' ) start [2025-04-04 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832860', 'tblTempUsageDetail_20' ) end [2025-04-04 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832860', 'tblTempVendorCDR_20' ) start [2025-04-04 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832860', 'tblTempVendorCDR_20' ) end [2025-04-04 12:31:22] Production.INFO: ProcessCDR(1,14832860,1,1,2) [2025-04-04 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832860', 'tblTempUsageDetail_20' ) start [2025-04-04 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832860', 'tblTempUsageDetail_20' ) end [2025-04-04 12:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:31:28] Production.INFO: ==11687== Releasing lock... [2025-04-04 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:31:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:32:05 [end_date_ymd] => 2025-04-04 12:32:05 [RateCDR] => 1 ) [2025-04-04 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:32:05' and `end` < '2025-04-04 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:32:19] Production.INFO: count ==5372 [2025-04-04 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:32:05 - End Time 2025-04-04 12:32:05 [2025-04-04 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832865', 'tblTempUsageDetail_20' ) start [2025-04-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832865', 'tblTempUsageDetail_20' ) end [2025-04-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832865', 'tblTempVendorCDR_20' ) start [2025-04-04 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832865', 'tblTempVendorCDR_20' ) end [2025-04-04 12:32:22] Production.INFO: ProcessCDR(1,14832865,1,1,2) [2025-04-04 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832865', 'tblTempUsageDetail_20' ) start [2025-04-04 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832865', 'tblTempUsageDetail_20' ) end [2025-04-04 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:32:28] Production.INFO: ==11762== Releasing lock... [2025-04-04 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:32:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:33:06 [end_date_ymd] => 2025-04-04 12:33:06 [RateCDR] => 1 ) [2025-04-04 12: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 09:33:06' and `end` < '2025-04-04 12: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-04 12:33:20] Production.INFO: count ==5380 [2025-04-04 12:33:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:33:06 - End Time 2025-04-04 12:33:06 [2025-04-04 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832870', 'tblTempUsageDetail_20' ) start [2025-04-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832870', 'tblTempUsageDetail_20' ) end [2025-04-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832870', 'tblTempVendorCDR_20' ) start [2025-04-04 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832870', 'tblTempVendorCDR_20' ) end [2025-04-04 12:33:22] Production.INFO: ProcessCDR(1,14832870,1,1,2) [2025-04-04 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832870', 'tblTempUsageDetail_20' ) start [2025-04-04 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832870', 'tblTempUsageDetail_20' ) end [2025-04-04 12:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:33:28] Production.INFO: ==11836== Releasing lock... [2025-04-04 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:33:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:34:05 [end_date_ymd] => 2025-04-04 12:34:05 [RateCDR] => 1 ) [2025-04-04 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:34:05' and `end` < '2025-04-04 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:34:19] Production.INFO: count ==5357 [2025-04-04 12:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:34:05 - End Time 2025-04-04 12:34:05 [2025-04-04 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832875', 'tblTempUsageDetail_20' ) start [2025-04-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832875', 'tblTempUsageDetail_20' ) end [2025-04-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832875', 'tblTempVendorCDR_20' ) start [2025-04-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832875', 'tblTempVendorCDR_20' ) end [2025-04-04 12:34:21] Production.INFO: ProcessCDR(1,14832875,1,1,2) [2025-04-04 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832875', 'tblTempUsageDetail_20' ) start [2025-04-04 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832875', 'tblTempUsageDetail_20' ) end [2025-04-04 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:34:27] Production.INFO: ==11910== Releasing lock... [2025-04-04 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:34:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:35:05 [end_date_ymd] => 2025-04-04 12:35:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:35:05' and `end` < '2025-04-04 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-04 12:35:19] Production.INFO: count ==5356 [2025-04-04 12:35:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:35:05 - End Time 2025-04-04 12:35:05 [2025-04-04 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832880', 'tblTempUsageDetail_20' ) start [2025-04-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832880', 'tblTempUsageDetail_20' ) end [2025-04-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832880', 'tblTempVendorCDR_20' ) start [2025-04-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832880', 'tblTempVendorCDR_20' ) end [2025-04-04 12:35:21] Production.INFO: ProcessCDR(1,14832880,1,1,2) [2025-04-04 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832880', 'tblTempUsageDetail_20' ) start [2025-04-04 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832880', 'tblTempUsageDetail_20' ) end [2025-04-04 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:35:27] Production.INFO: ==11985== Releasing lock... [2025-04-04 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:35:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:36:05 [end_date_ymd] => 2025-04-04 12:36:05 [RateCDR] => 1 ) [2025-04-04 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:36:05' and `end` < '2025-04-04 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:36:19] Production.INFO: count ==5350 [2025-04-04 12:36:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:36:05 - End Time 2025-04-04 12:36:05 [2025-04-04 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832885', 'tblTempUsageDetail_20' ) start [2025-04-04 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832885', 'tblTempUsageDetail_20' ) end [2025-04-04 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832885', 'tblTempVendorCDR_20' ) start [2025-04-04 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832885', 'tblTempVendorCDR_20' ) end [2025-04-04 12:36:22] Production.INFO: ProcessCDR(1,14832885,1,1,2) [2025-04-04 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832885', 'tblTempUsageDetail_20' ) start [2025-04-04 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832885', 'tblTempUsageDetail_20' ) end [2025-04-04 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:36:27] Production.INFO: ==12060== Releasing lock... [2025-04-04 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:36:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:37:05 [end_date_ymd] => 2025-04-04 12:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:37:05' and `end` < '2025-04-04 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-04 12:37:19] Production.INFO: count ==5348 [2025-04-04 12:37:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:37:05 - End Time 2025-04-04 12:37:05 [2025-04-04 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832890', 'tblTempUsageDetail_20' ) start [2025-04-04 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832890', 'tblTempUsageDetail_20' ) end [2025-04-04 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832890', 'tblTempVendorCDR_20' ) start [2025-04-04 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832890', 'tblTempVendorCDR_20' ) end [2025-04-04 12:37:22] Production.INFO: ProcessCDR(1,14832890,1,1,2) [2025-04-04 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832890', 'tblTempUsageDetail_20' ) start [2025-04-04 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832890', 'tblTempUsageDetail_20' ) end [2025-04-04 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:37:27] Production.INFO: ==12136== Releasing lock... [2025-04-04 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:37:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:38:05 [end_date_ymd] => 2025-04-04 12:38:05 [RateCDR] => 1 ) [2025-04-04 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:38:05' and `end` < '2025-04-04 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:38:19] Production.INFO: count ==5346 [2025-04-04 12:38:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:38:05 - End Time 2025-04-04 12:38:05 [2025-04-04 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832895', 'tblTempUsageDetail_20' ) start [2025-04-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832895', 'tblTempUsageDetail_20' ) end [2025-04-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832895', 'tblTempVendorCDR_20' ) start [2025-04-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832895', 'tblTempVendorCDR_20' ) end [2025-04-04 12:38:21] Production.INFO: ProcessCDR(1,14832895,1,1,2) [2025-04-04 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832895', 'tblTempUsageDetail_20' ) start [2025-04-04 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832895', 'tblTempUsageDetail_20' ) end [2025-04-04 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:38:26] Production.INFO: ==12250== Releasing lock... [2025-04-04 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:38:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:39:05 [end_date_ymd] => 2025-04-04 12:39:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:39:05' and `end` < '2025-04-04 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-04 12:39:19] Production.INFO: count ==5334 [2025-04-04 12:39:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:39:05 - End Time 2025-04-04 12:39:05 [2025-04-04 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832900', 'tblTempUsageDetail_20' ) start [2025-04-04 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832900', 'tblTempUsageDetail_20' ) end [2025-04-04 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832900', 'tblTempVendorCDR_20' ) start [2025-04-04 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832900', 'tblTempVendorCDR_20' ) end [2025-04-04 12:39:22] Production.INFO: ProcessCDR(1,14832900,1,1,2) [2025-04-04 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832900', 'tblTempUsageDetail_20' ) start [2025-04-04 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832900', 'tblTempUsageDetail_20' ) end [2025-04-04 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:39:27] Production.INFO: ==12321== Releasing lock... [2025-04-04 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:39:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:40:06 [end_date_ymd] => 2025-04-04 12:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:40:06' and `end` < '2025-04-04 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-04 12:40:20] Production.INFO: count ==5327 [2025-04-04 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:40:06 - End Time 2025-04-04 12:40:06 [2025-04-04 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832906', 'tblTempUsageDetail_20' ) start [2025-04-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832906', 'tblTempUsageDetail_20' ) end [2025-04-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832906', 'tblTempVendorCDR_20' ) start [2025-04-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832906', 'tblTempVendorCDR_20' ) end [2025-04-04 12:40:22] Production.INFO: ProcessCDR(1,14832906,1,1,2) [2025-04-04 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832906', 'tblTempUsageDetail_20' ) start [2025-04-04 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832906', 'tblTempUsageDetail_20' ) end [2025-04-04 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:40:27] Production.INFO: ==12396== Releasing lock... [2025-04-04 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:40:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:41:05 [end_date_ymd] => 2025-04-04 12:41:05 [RateCDR] => 1 ) [2025-04-04 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:41:05' and `end` < '2025-04-04 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:41:20] Production.INFO: count ==5298 [2025-04-04 12:41:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:41:05 - End Time 2025-04-04 12:41:05 [2025-04-04 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832911', 'tblTempUsageDetail_20' ) start [2025-04-04 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832911', 'tblTempUsageDetail_20' ) end [2025-04-04 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832911', 'tblTempVendorCDR_20' ) start [2025-04-04 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832911', 'tblTempVendorCDR_20' ) end [2025-04-04 12:41:22] Production.INFO: ProcessCDR(1,14832911,1,1,2) [2025-04-04 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832911', 'tblTempUsageDetail_20' ) start [2025-04-04 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832911', 'tblTempUsageDetail_20' ) end [2025-04-04 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:41:28] Production.INFO: ==12477== Releasing lock... [2025-04-04 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:41:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:42:06 [end_date_ymd] => 2025-04-04 12:42:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:42:06' and `end` < '2025-04-04 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-04 12:42:19] Production.INFO: count ==5284 [2025-04-04 12:42:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:42:06 - End Time 2025-04-04 12:42:06 [2025-04-04 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832916', 'tblTempUsageDetail_20' ) start [2025-04-04 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832916', 'tblTempUsageDetail_20' ) end [2025-04-04 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832916', 'tblTempVendorCDR_20' ) start [2025-04-04 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832916', 'tblTempVendorCDR_20' ) end [2025-04-04 12:42:22] Production.INFO: ProcessCDR(1,14832916,1,1,2) [2025-04-04 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832916', 'tblTempUsageDetail_20' ) start [2025-04-04 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832916', 'tblTempUsageDetail_20' ) end [2025-04-04 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:42:27] Production.INFO: ==12552== Releasing lock... [2025-04-04 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:42:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:43:06 [end_date_ymd] => 2025-04-04 12:43:06 [RateCDR] => 1 ) [2025-04-04 12: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 09:43:06' and `end` < '2025-04-04 12: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-04 12:43:19] Production.INFO: count ==5298 [2025-04-04 12:43:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:43:06 - End Time 2025-04-04 12:43:06 [2025-04-04 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832921', 'tblTempUsageDetail_20' ) start [2025-04-04 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832921', 'tblTempUsageDetail_20' ) end [2025-04-04 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832921', 'tblTempVendorCDR_20' ) start [2025-04-04 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832921', 'tblTempVendorCDR_20' ) end [2025-04-04 12:43:22] Production.INFO: ProcessCDR(1,14832921,1,1,2) [2025-04-04 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832921', 'tblTempUsageDetail_20' ) start [2025-04-04 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832921', 'tblTempUsageDetail_20' ) end [2025-04-04 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:43:27] Production.INFO: ==12627== Releasing lock... [2025-04-04 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:43:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:44:05 [end_date_ymd] => 2025-04-04 12:44:05 [RateCDR] => 1 ) [2025-04-04 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:44:05' and `end` < '2025-04-04 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:44:19] Production.INFO: count ==5291 [2025-04-04 12:44:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:44:05 - End Time 2025-04-04 12:44:05 [2025-04-04 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832926', 'tblTempUsageDetail_20' ) start [2025-04-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832926', 'tblTempUsageDetail_20' ) end [2025-04-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832926', 'tblTempVendorCDR_20' ) start [2025-04-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832926', 'tblTempVendorCDR_20' ) end [2025-04-04 12:44:21] Production.INFO: ProcessCDR(1,14832926,1,1,2) [2025-04-04 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832926', 'tblTempUsageDetail_20' ) start [2025-04-04 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832926', 'tblTempUsageDetail_20' ) end [2025-04-04 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:44:27] Production.INFO: ==12700== Releasing lock... [2025-04-04 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:44:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:45:05 [end_date_ymd] => 2025-04-04 12:45:05 [RateCDR] => 1 ) [2025-04-04 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:45:05' and `end` < '2025-04-04 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:45:19] Production.INFO: count ==5286 [2025-04-04 12:45:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:45:05 - End Time 2025-04-04 12:45:05 [2025-04-04 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832931', 'tblTempUsageDetail_20' ) start [2025-04-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832931', 'tblTempUsageDetail_20' ) end [2025-04-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832931', 'tblTempVendorCDR_20' ) start [2025-04-04 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832931', 'tblTempVendorCDR_20' ) end [2025-04-04 12:45:22] Production.INFO: ProcessCDR(1,14832931,1,1,2) [2025-04-04 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832931', 'tblTempUsageDetail_20' ) start [2025-04-04 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832931', 'tblTempUsageDetail_20' ) end [2025-04-04 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:45:28] Production.INFO: ==12775== Releasing lock... [2025-04-04 12:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:45:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:46:05 [end_date_ymd] => 2025-04-04 12:46:05 [RateCDR] => 1 ) [2025-04-04 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:46:05' and `end` < '2025-04-04 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:46:19] Production.INFO: count ==5296 [2025-04-04 12:46:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:46:05 - End Time 2025-04-04 12:46:05 [2025-04-04 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832936', 'tblTempUsageDetail_20' ) start [2025-04-04 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832936', 'tblTempUsageDetail_20' ) end [2025-04-04 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832936', 'tblTempVendorCDR_20' ) start [2025-04-04 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832936', 'tblTempVendorCDR_20' ) end [2025-04-04 12:46:21] Production.INFO: ProcessCDR(1,14832936,1,1,2) [2025-04-04 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832936', 'tblTempUsageDetail_20' ) start [2025-04-04 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832936', 'tblTempUsageDetail_20' ) end [2025-04-04 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:46:26] Production.INFO: ==12846== Releasing lock... [2025-04-04 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:46:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:47:06 [end_date_ymd] => 2025-04-04 12:47:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:47:06' and `end` < '2025-04-04 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-04 12:47:21] Production.INFO: count ==5294 [2025-04-04 12:47:23] Production.ERROR: pbx CDR StartTime 2025-04-04 09:47:06 - End Time 2025-04-04 12:47:06 [2025-04-04 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832941', 'tblTempUsageDetail_20' ) start [2025-04-04 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832941', 'tblTempUsageDetail_20' ) end [2025-04-04 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832941', 'tblTempVendorCDR_20' ) start [2025-04-04 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832941', 'tblTempVendorCDR_20' ) end [2025-04-04 12:47:23] Production.INFO: ProcessCDR(1,14832941,1,1,2) [2025-04-04 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832941', 'tblTempUsageDetail_20' ) start [2025-04-04 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832941', 'tblTempUsageDetail_20' ) end [2025-04-04 12:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:47:28] Production.INFO: ==12921== Releasing lock... [2025-04-04 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:47:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:48:05 [end_date_ymd] => 2025-04-04 12:48:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:48:05' and `end` < '2025-04-04 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-04 12:48:19] Production.INFO: count ==5294 [2025-04-04 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:48:05 - End Time 2025-04-04 12:48:05 [2025-04-04 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832946', 'tblTempUsageDetail_20' ) start [2025-04-04 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832946', 'tblTempUsageDetail_20' ) end [2025-04-04 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832946', 'tblTempVendorCDR_20' ) start [2025-04-04 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832946', 'tblTempVendorCDR_20' ) end [2025-04-04 12:48:22] Production.INFO: ProcessCDR(1,14832946,1,1,2) [2025-04-04 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832946', 'tblTempUsageDetail_20' ) start [2025-04-04 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832946', 'tblTempUsageDetail_20' ) end [2025-04-04 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:48:27] Production.INFO: ==12993== Releasing lock... [2025-04-04 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:48:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:49:06 [end_date_ymd] => 2025-04-04 12:49:06 [RateCDR] => 1 ) [2025-04-04 12: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 09:49:06' and `end` < '2025-04-04 12: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-04 12:49:19] Production.INFO: count ==5289 [2025-04-04 12:49:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:49:06 - End Time 2025-04-04 12:49:06 [2025-04-04 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832951', 'tblTempUsageDetail_20' ) start [2025-04-04 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832951', 'tblTempUsageDetail_20' ) end [2025-04-04 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832951', 'tblTempVendorCDR_20' ) start [2025-04-04 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832951', 'tblTempVendorCDR_20' ) end [2025-04-04 12:49:22] Production.INFO: ProcessCDR(1,14832951,1,1,2) [2025-04-04 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832951', 'tblTempUsageDetail_20' ) start [2025-04-04 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832951', 'tblTempUsageDetail_20' ) end [2025-04-04 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:49:28] Production.INFO: ==13067== Releasing lock... [2025-04-04 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:49:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:50:06 [end_date_ymd] => 2025-04-04 12:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:50:06' and `end` < '2025-04-04 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-04 12:50:19] Production.INFO: count ==5296 [2025-04-04 12:50:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:50:06 - End Time 2025-04-04 12:50:06 [2025-04-04 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832957', 'tblTempUsageDetail_20' ) start [2025-04-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832957', 'tblTempUsageDetail_20' ) end [2025-04-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832957', 'tblTempVendorCDR_20' ) start [2025-04-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832957', 'tblTempVendorCDR_20' ) end [2025-04-04 12:50:22] Production.INFO: ProcessCDR(1,14832957,1,1,2) [2025-04-04 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832957', 'tblTempUsageDetail_20' ) start [2025-04-04 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832957', 'tblTempUsageDetail_20' ) end [2025-04-04 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:50:27] Production.INFO: ==13143== Releasing lock... [2025-04-04 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:50:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:51:05 [end_date_ymd] => 2025-04-04 12:51:05 [RateCDR] => 1 ) [2025-04-04 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:51:05' and `end` < '2025-04-04 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:51:19] Production.INFO: count ==5326 [2025-04-04 12:51:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:51:05 - End Time 2025-04-04 12:51:05 [2025-04-04 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832962', 'tblTempUsageDetail_20' ) start [2025-04-04 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832962', 'tblTempUsageDetail_20' ) end [2025-04-04 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832962', 'tblTempVendorCDR_20' ) start [2025-04-04 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832962', 'tblTempVendorCDR_20' ) end [2025-04-04 12:51:21] Production.INFO: ProcessCDR(1,14832962,1,1,2) [2025-04-04 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832962', 'tblTempUsageDetail_20' ) start [2025-04-04 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832962', 'tblTempUsageDetail_20' ) end [2025-04-04 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:51:26] Production.INFO: ==13220== Releasing lock... [2025-04-04 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:51:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:52:06 [end_date_ymd] => 2025-04-04 12:52:06 [RateCDR] => 1 ) [2025-04-04 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 09:52:06' and `end` < '2025-04-04 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:52:19] Production.INFO: count ==5336 [2025-04-04 12:52:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:52:06 - End Time 2025-04-04 12:52:06 [2025-04-04 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832967', 'tblTempUsageDetail_20' ) start [2025-04-04 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832967', 'tblTempUsageDetail_20' ) end [2025-04-04 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832967', 'tblTempVendorCDR_20' ) start [2025-04-04 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832967', 'tblTempVendorCDR_20' ) end [2025-04-04 12:52:22] Production.INFO: ProcessCDR(1,14832967,1,1,2) [2025-04-04 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832967', 'tblTempUsageDetail_20' ) start [2025-04-04 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832967', 'tblTempUsageDetail_20' ) end [2025-04-04 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:52:27] Production.INFO: ==13294== Releasing lock... [2025-04-04 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:52:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:53:05 [end_date_ymd] => 2025-04-04 12:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:53:05' and `end` < '2025-04-04 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-04 12:53:19] Production.INFO: count ==5343 [2025-04-04 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:53:05 - End Time 2025-04-04 12:53:05 [2025-04-04 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832972', 'tblTempUsageDetail_20' ) start [2025-04-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832972', 'tblTempUsageDetail_20' ) end [2025-04-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832972', 'tblTempVendorCDR_20' ) start [2025-04-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832972', 'tblTempVendorCDR_20' ) end [2025-04-04 12:53:21] Production.INFO: ProcessCDR(1,14832972,1,1,2) [2025-04-04 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832972', 'tblTempUsageDetail_20' ) start [2025-04-04 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832972', 'tblTempUsageDetail_20' ) end [2025-04-04 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:53:25] Production.INFO: ==13367== Releasing lock... [2025-04-04 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:53:25] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:54:06 [end_date_ymd] => 2025-04-04 12:54:06 [RateCDR] => 1 ) [2025-04-04 12: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 09:54:06' and `end` < '2025-04-04 12: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-04 12:54:19] Production.INFO: count ==5346 [2025-04-04 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:54:06 - End Time 2025-04-04 12:54:06 [2025-04-04 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832977', 'tblTempUsageDetail_20' ) start [2025-04-04 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832977', 'tblTempUsageDetail_20' ) end [2025-04-04 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832977', 'tblTempVendorCDR_20' ) start [2025-04-04 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832977', 'tblTempVendorCDR_20' ) end [2025-04-04 12:54:22] Production.INFO: ProcessCDR(1,14832977,1,1,2) [2025-04-04 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832977', 'tblTempUsageDetail_20' ) start [2025-04-04 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832977', 'tblTempUsageDetail_20' ) end [2025-04-04 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:54:27] Production.INFO: ==13492== Releasing lock... [2025-04-04 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:54:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:55:06 [end_date_ymd] => 2025-04-04 12:55:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:55:06' and `end` < '2025-04-04 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-04 12:55:20] Production.INFO: count ==5312 [2025-04-04 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:55:06 - End Time 2025-04-04 12:55:06 [2025-04-04 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832982', 'tblTempUsageDetail_20' ) start [2025-04-04 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832982', 'tblTempUsageDetail_20' ) end [2025-04-04 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832982', 'tblTempVendorCDR_20' ) start [2025-04-04 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832982', 'tblTempVendorCDR_20' ) end [2025-04-04 12:55:22] Production.INFO: ProcessCDR(1,14832982,1,1,2) [2025-04-04 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832982', 'tblTempUsageDetail_20' ) start [2025-04-04 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832982', 'tblTempUsageDetail_20' ) end [2025-04-04 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:55:27] Production.INFO: ==13572== Releasing lock... [2025-04-04 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:55:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:56:06 [end_date_ymd] => 2025-04-04 12:56:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:56:06' and `end` < '2025-04-04 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-04 12:56:20] Production.INFO: count ==5304 [2025-04-04 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:56:06 - End Time 2025-04-04 12:56:06 [2025-04-04 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832987', 'tblTempUsageDetail_20' ) start [2025-04-04 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832987', 'tblTempUsageDetail_20' ) end [2025-04-04 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832987', 'tblTempVendorCDR_20' ) start [2025-04-04 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832987', 'tblTempVendorCDR_20' ) end [2025-04-04 12:56:23] Production.INFO: ProcessCDR(1,14832987,1,1,2) [2025-04-04 12:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832987', 'tblTempUsageDetail_20' ) start [2025-04-04 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832987', 'tblTempUsageDetail_20' ) end [2025-04-04 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:56:28] Production.INFO: ==13650== Releasing lock... [2025-04-04 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:56:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:57:05 [end_date_ymd] => 2025-04-04 12:57:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:57:05' and `end` < '2025-04-04 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-04 12:57:19] Production.INFO: count ==5290 [2025-04-04 12:57:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:57:05 - End Time 2025-04-04 12:57:05 [2025-04-04 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832992', 'tblTempUsageDetail_20' ) start [2025-04-04 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832992', 'tblTempUsageDetail_20' ) end [2025-04-04 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832992', 'tblTempVendorCDR_20' ) start [2025-04-04 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832992', 'tblTempVendorCDR_20' ) end [2025-04-04 12:57:21] Production.INFO: ProcessCDR(1,14832992,1,1,2) [2025-04-04 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832992', 'tblTempUsageDetail_20' ) start [2025-04-04 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832992', 'tblTempUsageDetail_20' ) end [2025-04-04 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:57:26] Production.INFO: ==13719== Releasing lock... [2025-04-04 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:57:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:58:06 [end_date_ymd] => 2025-04-04 12:58:06 [RateCDR] => 1 ) [2025-04-04 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-04 09:58:06' and `end` < '2025-04-04 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 12:58:19] Production.INFO: count ==5285 [2025-04-04 12:58:22] Production.ERROR: pbx CDR StartTime 2025-04-04 09:58:06 - End Time 2025-04-04 12:58:06 [2025-04-04 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832997', 'tblTempUsageDetail_20' ) start [2025-04-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14832997', 'tblTempUsageDetail_20' ) end [2025-04-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832997', 'tblTempVendorCDR_20' ) start [2025-04-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14832997', 'tblTempVendorCDR_20' ) end [2025-04-04 12:58:22] Production.INFO: ProcessCDR(1,14832997,1,1,2) [2025-04-04 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14832997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14832997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14832997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14832997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832997', 'tblTempUsageDetail_20' ) start [2025-04-04 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14832997', 'tblTempUsageDetail_20' ) end [2025-04-04 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:58:27] Production.INFO: ==13794== Releasing lock... [2025-04-04 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:58:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 09:59:05 [end_date_ymd] => 2025-04-04 12:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 09:59:05' and `end` < '2025-04-04 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-04 12:59:19] Production.INFO: count ==5267 [2025-04-04 12:59:21] Production.ERROR: pbx CDR StartTime 2025-04-04 09:59:05 - End Time 2025-04-04 12:59:05 [2025-04-04 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833002', 'tblTempUsageDetail_20' ) start [2025-04-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833002', 'tblTempUsageDetail_20' ) end [2025-04-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833002', 'tblTempVendorCDR_20' ) start [2025-04-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833002', 'tblTempVendorCDR_20' ) end [2025-04-04 12:59:21] Production.INFO: ProcessCDR(1,14833002,1,1,2) [2025-04-04 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833002', 'tblTempUsageDetail_20' ) start [2025-04-04 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833002', 'tblTempUsageDetail_20' ) end [2025-04-04 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 12:59:27] Production.INFO: ==13876== Releasing lock... [2025-04-04 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 12:59:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:00:07 [end_date_ymd] => 2025-04-04 13:00:07 [RateCDR] => 1 ) [2025-04-04 13: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-04 10:00:07' and `end` < '2025-04-04 13: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-04 13:00:21] Production.INFO: count ==5241 [2025-04-04 13:00:24] Production.ERROR: pbx CDR StartTime 2025-04-04 10:00:07 - End Time 2025-04-04 13:00:07 [2025-04-04 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833008', 'tblTempUsageDetail_20' ) start [2025-04-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833008', 'tblTempUsageDetail_20' ) end [2025-04-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833008', 'tblTempVendorCDR_20' ) start [2025-04-04 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833008', 'tblTempVendorCDR_20' ) end [2025-04-04 13:00:24] Production.INFO: ProcessCDR(1,14833008,1,1,2) [2025-04-04 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833008', 'tblTempUsageDetail_20' ) start [2025-04-04 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833008', 'tblTempUsageDetail_20' ) end [2025-04-04 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:00:29] Production.INFO: ==13953== Releasing lock... [2025-04-04 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:00:29] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:01:05 [end_date_ymd] => 2025-04-04 13:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:01:05' and `end` < '2025-04-04 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-04 13:01:18] Production.INFO: count ==5215 [2025-04-04 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:01:05 - End Time 2025-04-04 13:01:05 [2025-04-04 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833013', 'tblTempUsageDetail_20' ) start [2025-04-04 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833013', 'tblTempUsageDetail_20' ) end [2025-04-04 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833013', 'tblTempVendorCDR_20' ) start [2025-04-04 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833013', 'tblTempVendorCDR_20' ) end [2025-04-04 13:01:21] Production.INFO: ProcessCDR(1,14833013,1,1,2) [2025-04-04 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833013', 'tblTempUsageDetail_20' ) start [2025-04-04 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833013', 'tblTempUsageDetail_20' ) end [2025-04-04 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:01:26] Production.INFO: ==14043== Releasing lock... [2025-04-04 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:01:26] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:02:05 [end_date_ymd] => 2025-04-04 13:02:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:02:05' and `end` < '2025-04-04 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-04 13:02:19] Production.INFO: count ==5184 [2025-04-04 13:02:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:02:05 - End Time 2025-04-04 13:02:05 [2025-04-04 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833018', 'tblTempUsageDetail_20' ) start [2025-04-04 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833018', 'tblTempUsageDetail_20' ) end [2025-04-04 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833018', 'tblTempVendorCDR_20' ) start [2025-04-04 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833018', 'tblTempVendorCDR_20' ) end [2025-04-04 13:02:22] Production.INFO: ProcessCDR(1,14833018,1,1,2) [2025-04-04 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833018', 'tblTempUsageDetail_20' ) start [2025-04-04 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833018', 'tblTempUsageDetail_20' ) end [2025-04-04 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:02:28] Production.INFO: ==14118== Releasing lock... [2025-04-04 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:02:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:03:06 [end_date_ymd] => 2025-04-04 13:03:06 [RateCDR] => 1 ) [2025-04-04 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:03:06' and `end` < '2025-04-04 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:03:19] Production.INFO: count ==5182 [2025-04-04 13:03:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:03:06 - End Time 2025-04-04 13:03:06 [2025-04-04 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833023', 'tblTempUsageDetail_20' ) start [2025-04-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833023', 'tblTempUsageDetail_20' ) end [2025-04-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833023', 'tblTempVendorCDR_20' ) start [2025-04-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833023', 'tblTempVendorCDR_20' ) end [2025-04-04 13:03:22] Production.INFO: ProcessCDR(1,14833023,1,1,2) [2025-04-04 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833023', 'tblTempUsageDetail_20' ) start [2025-04-04 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833023', 'tblTempUsageDetail_20' ) end [2025-04-04 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:03:28] Production.INFO: ==14188== Releasing lock... [2025-04-04 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:03:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:04:06 [end_date_ymd] => 2025-04-04 13:04:06 [RateCDR] => 1 ) [2025-04-04 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:04:06' and `end` < '2025-04-04 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:04:20] Production.INFO: count ==5181 [2025-04-04 13:04:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:04:06 - End Time 2025-04-04 13:04:06 [2025-04-04 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833028', 'tblTempUsageDetail_20' ) start [2025-04-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833028', 'tblTempUsageDetail_20' ) end [2025-04-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833028', 'tblTempVendorCDR_20' ) start [2025-04-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833028', 'tblTempVendorCDR_20' ) end [2025-04-04 13:04:22] Production.INFO: ProcessCDR(1,14833028,1,1,2) [2025-04-04 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833028', 'tblTempUsageDetail_20' ) start [2025-04-04 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833028', 'tblTempUsageDetail_20' ) end [2025-04-04 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:04:28] Production.INFO: ==14262== Releasing lock... [2025-04-04 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:04:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:05:06 [end_date_ymd] => 2025-04-04 13:05:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:05:06' and `end` < '2025-04-04 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-04 13:05:19] Production.INFO: count ==5151 [2025-04-04 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:05:06 - End Time 2025-04-04 13:05:06 [2025-04-04 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833033', 'tblTempUsageDetail_20' ) start [2025-04-04 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833033', 'tblTempUsageDetail_20' ) end [2025-04-04 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833033', 'tblTempVendorCDR_20' ) start [2025-04-04 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833033', 'tblTempVendorCDR_20' ) end [2025-04-04 13:05:22] Production.INFO: ProcessCDR(1,14833033,1,1,2) [2025-04-04 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833033', 'tblTempUsageDetail_20' ) start [2025-04-04 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833033', 'tblTempUsageDetail_20' ) end [2025-04-04 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:05:28] Production.INFO: ==14335== Releasing lock... [2025-04-04 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:05:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:06:06 [end_date_ymd] => 2025-04-04 13:06:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:06:06' and `end` < '2025-04-04 13: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-04 13:06:20] Production.INFO: count ==5158 [2025-04-04 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:06:06 - End Time 2025-04-04 13:06:06 [2025-04-04 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833038', 'tblTempUsageDetail_20' ) start [2025-04-04 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833038', 'tblTempUsageDetail_20' ) end [2025-04-04 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833038', 'tblTempVendorCDR_20' ) start [2025-04-04 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833038', 'tblTempVendorCDR_20' ) end [2025-04-04 13:06:23] Production.INFO: ProcessCDR(1,14833038,1,1,2) [2025-04-04 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833038', 'tblTempUsageDetail_20' ) start [2025-04-04 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833038', 'tblTempUsageDetail_20' ) end [2025-04-04 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:06:28] Production.INFO: ==14410== Releasing lock... [2025-04-04 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:06:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:07:06 [end_date_ymd] => 2025-04-04 13:07:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:07:06' and `end` < '2025-04-04 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-04 13:07:20] Production.INFO: count ==5159 [2025-04-04 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:07:06 - End Time 2025-04-04 13:07:06 [2025-04-04 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833043', 'tblTempUsageDetail_20' ) start [2025-04-04 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833043', 'tblTempUsageDetail_20' ) end [2025-04-04 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833043', 'tblTempVendorCDR_20' ) start [2025-04-04 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833043', 'tblTempVendorCDR_20' ) end [2025-04-04 13:07:22] Production.INFO: ProcessCDR(1,14833043,1,1,2) [2025-04-04 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833043', 'tblTempUsageDetail_20' ) start [2025-04-04 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833043', 'tblTempUsageDetail_20' ) end [2025-04-04 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:07:28] Production.INFO: ==14480== Releasing lock... [2025-04-04 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:07:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:08:06 [end_date_ymd] => 2025-04-04 13:08:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:08:06' and `end` < '2025-04-04 13: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-04 13:08:20] Production.INFO: count ==5154 [2025-04-04 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:08:06 - End Time 2025-04-04 13:08:06 [2025-04-04 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833048', 'tblTempUsageDetail_20' ) start [2025-04-04 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833048', 'tblTempUsageDetail_20' ) end [2025-04-04 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833048', 'tblTempVendorCDR_20' ) start [2025-04-04 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833048', 'tblTempVendorCDR_20' ) end [2025-04-04 13:08:22] Production.INFO: ProcessCDR(1,14833048,1,1,2) [2025-04-04 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833048', 'tblTempUsageDetail_20' ) start [2025-04-04 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833048', 'tblTempUsageDetail_20' ) end [2025-04-04 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:08:28] Production.INFO: ==14555== Releasing lock... [2025-04-04 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:08:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:09:05 [end_date_ymd] => 2025-04-04 13:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:09:05' and `end` < '2025-04-04 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-04 13:09:19] Production.INFO: count ==5154 [2025-04-04 13:09:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:09:05 - End Time 2025-04-04 13:09:05 [2025-04-04 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833053', 'tblTempUsageDetail_20' ) start [2025-04-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833053', 'tblTempUsageDetail_20' ) end [2025-04-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833053', 'tblTempVendorCDR_20' ) start [2025-04-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833053', 'tblTempVendorCDR_20' ) end [2025-04-04 13:09:21] Production.INFO: ProcessCDR(1,14833053,1,1,2) [2025-04-04 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833053', 'tblTempUsageDetail_20' ) start [2025-04-04 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833053', 'tblTempUsageDetail_20' ) end [2025-04-04 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:09:27] Production.INFO: ==14672== Releasing lock... [2025-04-04 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:09:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:10:07 [end_date_ymd] => 2025-04-04 13:10:07 [RateCDR] => 1 ) [2025-04-04 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:10:07' and `end` < '2025-04-04 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:10:21] Production.INFO: count ==5160 [2025-04-04 13:10:23] Production.ERROR: pbx CDR StartTime 2025-04-04 10:10:07 - End Time 2025-04-04 13:10:07 [2025-04-04 13:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833059', 'tblTempUsageDetail_20' ) start [2025-04-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833059', 'tblTempUsageDetail_20' ) end [2025-04-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833059', 'tblTempVendorCDR_20' ) start [2025-04-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833059', 'tblTempVendorCDR_20' ) end [2025-04-04 13:10:23] Production.INFO: ProcessCDR(1,14833059,1,1,2) [2025-04-04 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833059', 'tblTempUsageDetail_20' ) start [2025-04-04 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833059', 'tblTempUsageDetail_20' ) end [2025-04-04 13:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:10:30] Production.INFO: ==14744== Releasing lock... [2025-04-04 13:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:10:30] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:11:05 [end_date_ymd] => 2025-04-04 13:11:05 [RateCDR] => 1 ) [2025-04-04 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:11:05' and `end` < '2025-04-04 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-04 13:11:19] Production.INFO: count ==5175 [2025-04-04 13:11:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:11:05 - End Time 2025-04-04 13:11:05 [2025-04-04 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833064', 'tblTempUsageDetail_20' ) start [2025-04-04 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833064', 'tblTempUsageDetail_20' ) end [2025-04-04 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833064', 'tblTempVendorCDR_20' ) start [2025-04-04 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833064', 'tblTempVendorCDR_20' ) end [2025-04-04 13:11:22] Production.INFO: ProcessCDR(1,14833064,1,1,2) [2025-04-04 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833064', 'tblTempUsageDetail_20' ) start [2025-04-04 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833064', 'tblTempUsageDetail_20' ) end [2025-04-04 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:11:28] Production.INFO: ==14820== Releasing lock... [2025-04-04 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:11:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:12:06 [end_date_ymd] => 2025-04-04 13:12:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:12:06' and `end` < '2025-04-04 13: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-04 13:12:20] Production.INFO: count ==5191 [2025-04-04 13:12:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:12:06 - End Time 2025-04-04 13:12:06 [2025-04-04 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833069', 'tblTempUsageDetail_20' ) start [2025-04-04 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833069', 'tblTempUsageDetail_20' ) end [2025-04-04 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833069', 'tblTempVendorCDR_20' ) start [2025-04-04 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833069', 'tblTempVendorCDR_20' ) end [2025-04-04 13:12:22] Production.INFO: ProcessCDR(1,14833069,1,1,2) [2025-04-04 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833069', 'tblTempUsageDetail_20' ) start [2025-04-04 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833069', 'tblTempUsageDetail_20' ) end [2025-04-04 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:12:28] Production.INFO: ==14903== Releasing lock... [2025-04-04 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:12:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:13:06 [end_date_ymd] => 2025-04-04 13:13:06 [RateCDR] => 1 ) [2025-04-04 13: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-04 10:13:06' and `end` < '2025-04-04 13: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-04 13:13:20] Production.INFO: count ==5190 [2025-04-04 13:13:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:13:06 - End Time 2025-04-04 13:13:06 [2025-04-04 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833074', 'tblTempUsageDetail_20' ) start [2025-04-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833074', 'tblTempUsageDetail_20' ) end [2025-04-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833074', 'tblTempVendorCDR_20' ) start [2025-04-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833074', 'tblTempVendorCDR_20' ) end [2025-04-04 13:13:22] Production.INFO: ProcessCDR(1,14833074,1,1,2) [2025-04-04 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833074', 'tblTempUsageDetail_20' ) start [2025-04-04 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833074', 'tblTempUsageDetail_20' ) end [2025-04-04 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:13:28] Production.INFO: ==14983== Releasing lock... [2025-04-04 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:13:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:14:06 [end_date_ymd] => 2025-04-04 13:14:06 [RateCDR] => 1 ) [2025-04-04 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:14:06' and `end` < '2025-04-04 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:14:20] Production.INFO: count ==5185 [2025-04-04 13:14:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:14:06 - End Time 2025-04-04 13:14:06 [2025-04-04 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833079', 'tblTempUsageDetail_20' ) start [2025-04-04 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833079', 'tblTempUsageDetail_20' ) end [2025-04-04 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833079', 'tblTempVendorCDR_20' ) start [2025-04-04 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833079', 'tblTempVendorCDR_20' ) end [2025-04-04 13:14:22] Production.INFO: ProcessCDR(1,14833079,1,1,2) [2025-04-04 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833079', 'tblTempUsageDetail_20' ) start [2025-04-04 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833079', 'tblTempUsageDetail_20' ) end [2025-04-04 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:14:27] Production.INFO: ==15077== Releasing lock... [2025-04-04 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:14:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:15:06 [end_date_ymd] => 2025-04-04 13:15:06 [RateCDR] => 1 ) [2025-04-04 13: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-04 10:15:06' and `end` < '2025-04-04 13: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-04 13:15:20] Production.INFO: count ==5217 [2025-04-04 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:15:06 - End Time 2025-04-04 13:15:06 [2025-04-04 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833084', 'tblTempUsageDetail_20' ) start [2025-04-04 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833084', 'tblTempUsageDetail_20' ) end [2025-04-04 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833084', 'tblTempVendorCDR_20' ) start [2025-04-04 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833084', 'tblTempVendorCDR_20' ) end [2025-04-04 13:15:22] Production.INFO: ProcessCDR(1,14833084,1,1,2) [2025-04-04 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833084', 'tblTempUsageDetail_20' ) start [2025-04-04 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833084', 'tblTempUsageDetail_20' ) end [2025-04-04 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:15:28] Production.INFO: ==15166== Releasing lock... [2025-04-04 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:15:28] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:16:06 [end_date_ymd] => 2025-04-04 13:16:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:16:06' and `end` < '2025-04-04 13: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-04 13:16:20] Production.INFO: count ==5198 [2025-04-04 13:16:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:16:06 - End Time 2025-04-04 13:16:06 [2025-04-04 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833089', 'tblTempUsageDetail_20' ) start [2025-04-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833089', 'tblTempUsageDetail_20' ) end [2025-04-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833089', 'tblTempVendorCDR_20' ) start [2025-04-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833089', 'tblTempVendorCDR_20' ) end [2025-04-04 13:16:22] Production.INFO: ProcessCDR(1,14833089,1,1,2) [2025-04-04 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833089', 'tblTempUsageDetail_20' ) start [2025-04-04 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833089', 'tblTempUsageDetail_20' ) end [2025-04-04 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:16:27] Production.INFO: ==15248== Releasing lock... [2025-04-04 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:16:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:17:06 [end_date_ymd] => 2025-04-04 13:17:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:17:06' and `end` < '2025-04-04 13: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-04 13:17:19] Production.INFO: count ==5223 [2025-04-04 13:17:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:17:06 - End Time 2025-04-04 13:17:06 [2025-04-04 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833094', 'tblTempUsageDetail_20' ) start [2025-04-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833094', 'tblTempUsageDetail_20' ) end [2025-04-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833094', 'tblTempVendorCDR_20' ) start [2025-04-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833094', 'tblTempVendorCDR_20' ) end [2025-04-04 13:17:22] Production.INFO: ProcessCDR(1,14833094,1,1,2) [2025-04-04 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833094', 'tblTempUsageDetail_20' ) start [2025-04-04 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833094', 'tblTempUsageDetail_20' ) end [2025-04-04 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:17:28] Production.INFO: ==15330== Releasing lock... [2025-04-04 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:17:28] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:18:05 [end_date_ymd] => 2025-04-04 13:18:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:18:05' and `end` < '2025-04-04 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-04 13:18:19] Production.INFO: count ==5215 [2025-04-04 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:18:05 - End Time 2025-04-04 13:18:05 [2025-04-04 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833099', 'tblTempUsageDetail_20' ) start [2025-04-04 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833099', 'tblTempUsageDetail_20' ) end [2025-04-04 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833099', 'tblTempVendorCDR_20' ) start [2025-04-04 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833099', 'tblTempVendorCDR_20' ) end [2025-04-04 13:18:22] Production.INFO: ProcessCDR(1,14833099,1,1,2) [2025-04-04 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833099', 'tblTempUsageDetail_20' ) start [2025-04-04 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833099', 'tblTempUsageDetail_20' ) end [2025-04-04 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:18:27] Production.INFO: ==15424== Releasing lock... [2025-04-04 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:18:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:19:06 [end_date_ymd] => 2025-04-04 13:19:06 [RateCDR] => 1 ) [2025-04-04 13: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-04 10:19:06' and `end` < '2025-04-04 13: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-04 13:19:19] Production.INFO: count ==5220 [2025-04-04 13:19:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:19:06 - End Time 2025-04-04 13:19:06 [2025-04-04 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833104', 'tblTempUsageDetail_20' ) start [2025-04-04 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833104', 'tblTempUsageDetail_20' ) end [2025-04-04 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833104', 'tblTempVendorCDR_20' ) start [2025-04-04 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833104', 'tblTempVendorCDR_20' ) end [2025-04-04 13:19:22] Production.INFO: ProcessCDR(1,14833104,1,1,2) [2025-04-04 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833104', 'tblTempUsageDetail_20' ) start [2025-04-04 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833104', 'tblTempUsageDetail_20' ) end [2025-04-04 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:19:28] Production.INFO: ==15510== Releasing lock... [2025-04-04 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:19:28] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:20:05 [end_date_ymd] => 2025-04-04 13:20:05 [RateCDR] => 1 ) [2025-04-04 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:20:05' and `end` < '2025-04-04 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:20:19] Production.INFO: count ==5230 [2025-04-04 13:20:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:20:05 - End Time 2025-04-04 13:20:05 [2025-04-04 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833110', 'tblTempUsageDetail_20' ) start [2025-04-04 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833110', 'tblTempUsageDetail_20' ) end [2025-04-04 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833110', 'tblTempVendorCDR_20' ) start [2025-04-04 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833110', 'tblTempVendorCDR_20' ) end [2025-04-04 13:20:21] Production.INFO: ProcessCDR(1,14833110,1,1,2) [2025-04-04 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833110', 'tblTempUsageDetail_20' ) start [2025-04-04 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833110', 'tblTempUsageDetail_20' ) end [2025-04-04 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:20:27] Production.INFO: ==15595== Releasing lock... [2025-04-04 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:20:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:21:05 [end_date_ymd] => 2025-04-04 13:21:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:21:05' and `end` < '2025-04-04 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-04 13:21:19] Production.INFO: count ==5236 [2025-04-04 13:21:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:21:05 - End Time 2025-04-04 13:21:05 [2025-04-04 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833115', 'tblTempUsageDetail_20' ) start [2025-04-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833115', 'tblTempUsageDetail_20' ) end [2025-04-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833115', 'tblTempVendorCDR_20' ) start [2025-04-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833115', 'tblTempVendorCDR_20' ) end [2025-04-04 13:21:21] Production.INFO: ProcessCDR(1,14833115,1,1,2) [2025-04-04 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833115', 'tblTempUsageDetail_20' ) start [2025-04-04 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833115', 'tblTempUsageDetail_20' ) end [2025-04-04 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:21:27] Production.INFO: ==15686== Releasing lock... [2025-04-04 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:21:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:22:06 [end_date_ymd] => 2025-04-04 13:22:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:22:06' and `end` < '2025-04-04 13: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-04 13:22:20] Production.INFO: count ==5253 [2025-04-04 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:22:06 - End Time 2025-04-04 13:22:06 [2025-04-04 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833120', 'tblTempUsageDetail_20' ) start [2025-04-04 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833120', 'tblTempUsageDetail_20' ) end [2025-04-04 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833120', 'tblTempVendorCDR_20' ) start [2025-04-04 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833120', 'tblTempVendorCDR_20' ) end [2025-04-04 13:22:22] Production.INFO: ProcessCDR(1,14833120,1,1,2) [2025-04-04 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833120', 'tblTempUsageDetail_20' ) start [2025-04-04 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833120', 'tblTempUsageDetail_20' ) end [2025-04-04 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:22:28] Production.INFO: ==15774== Releasing lock... [2025-04-04 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:22:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:23:06 [end_date_ymd] => 2025-04-04 13:23:06 [RateCDR] => 1 ) [2025-04-04 13: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-04 10:23:06' and `end` < '2025-04-04 13: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-04 13:23:20] Production.INFO: count ==5266 [2025-04-04 13:23:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:23:06 - End Time 2025-04-04 13:23:06 [2025-04-04 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833125', 'tblTempUsageDetail_20' ) start [2025-04-04 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833125', 'tblTempUsageDetail_20' ) end [2025-04-04 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833125', 'tblTempVendorCDR_20' ) start [2025-04-04 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833125', 'tblTempVendorCDR_20' ) end [2025-04-04 13:23:22] Production.INFO: ProcessCDR(1,14833125,1,1,2) [2025-04-04 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833125', 'tblTempUsageDetail_20' ) start [2025-04-04 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833125', 'tblTempUsageDetail_20' ) end [2025-04-04 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:23:27] Production.INFO: ==15860== Releasing lock... [2025-04-04 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:23:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:24:06 [end_date_ymd] => 2025-04-04 13:24:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:24:06' and `end` < '2025-04-04 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-04 13:24:20] Production.INFO: count ==5242 [2025-04-04 13:24:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:24:06 - End Time 2025-04-04 13:24:06 [2025-04-04 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833130', 'tblTempUsageDetail_20' ) start [2025-04-04 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833130', 'tblTempUsageDetail_20' ) end [2025-04-04 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833130', 'tblTempVendorCDR_20' ) start [2025-04-04 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833130', 'tblTempVendorCDR_20' ) end [2025-04-04 13:24:22] Production.INFO: ProcessCDR(1,14833130,1,1,2) [2025-04-04 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833130', 'tblTempUsageDetail_20' ) start [2025-04-04 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833130', 'tblTempUsageDetail_20' ) end [2025-04-04 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:24:27] Production.INFO: ==15942== Releasing lock... [2025-04-04 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:24:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:25:05 [end_date_ymd] => 2025-04-04 13:25:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:25:05' and `end` < '2025-04-04 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-04 13:25:19] Production.INFO: count ==5229 [2025-04-04 13:25:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:25:05 - End Time 2025-04-04 13:25:05 [2025-04-04 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833135', 'tblTempUsageDetail_20' ) start [2025-04-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833135', 'tblTempUsageDetail_20' ) end [2025-04-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833135', 'tblTempVendorCDR_20' ) start [2025-04-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833135', 'tblTempVendorCDR_20' ) end [2025-04-04 13:25:21] Production.INFO: ProcessCDR(1,14833135,1,1,2) [2025-04-04 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833135', 'tblTempUsageDetail_20' ) start [2025-04-04 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833135', 'tblTempUsageDetail_20' ) end [2025-04-04 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:25:26] Production.INFO: ==16065== Releasing lock... [2025-04-04 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:25:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:26:05 [end_date_ymd] => 2025-04-04 13:26:05 [RateCDR] => 1 ) [2025-04-04 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:26:05' and `end` < '2025-04-04 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:26:19] Production.INFO: count ==5212 [2025-04-04 13:26:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:26:05 - End Time 2025-04-04 13:26:05 [2025-04-04 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833140', 'tblTempUsageDetail_20' ) start [2025-04-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833140', 'tblTempUsageDetail_20' ) end [2025-04-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833140', 'tblTempVendorCDR_20' ) start [2025-04-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833140', 'tblTempVendorCDR_20' ) end [2025-04-04 13:26:21] Production.INFO: ProcessCDR(1,14833140,1,1,2) [2025-04-04 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833140', 'tblTempUsageDetail_20' ) start [2025-04-04 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833140', 'tblTempUsageDetail_20' ) end [2025-04-04 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:26:27] Production.INFO: ==16153== Releasing lock... [2025-04-04 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:26:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:27:05 [end_date_ymd] => 2025-04-04 13:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:27:05' and `end` < '2025-04-04 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-04 13:27:19] Production.INFO: count ==5195 [2025-04-04 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:27:05 - End Time 2025-04-04 13:27:05 [2025-04-04 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833145', 'tblTempUsageDetail_20' ) start [2025-04-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833145', 'tblTempUsageDetail_20' ) end [2025-04-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833145', 'tblTempVendorCDR_20' ) start [2025-04-04 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833145', 'tblTempVendorCDR_20' ) end [2025-04-04 13:27:21] Production.INFO: ProcessCDR(1,14833145,1,1,2) [2025-04-04 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833145', 'tblTempUsageDetail_20' ) start [2025-04-04 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833145', 'tblTempUsageDetail_20' ) end [2025-04-04 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:27:26] Production.INFO: ==16239== Releasing lock... [2025-04-04 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:27:26] Production.INFO: 67 MB #Memory Used# [2025-04-04 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:28:05 [end_date_ymd] => 2025-04-04 13:28:05 [RateCDR] => 1 ) [2025-04-04 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:28:05' and `end` < '2025-04-04 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:28:19] Production.INFO: count ==5177 [2025-04-04 13:28:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:28:05 - End Time 2025-04-04 13:28:05 [2025-04-04 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833150', 'tblTempUsageDetail_20' ) start [2025-04-04 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833150', 'tblTempUsageDetail_20' ) end [2025-04-04 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833150', 'tblTempVendorCDR_20' ) start [2025-04-04 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833150', 'tblTempVendorCDR_20' ) end [2025-04-04 13:28:21] Production.INFO: ProcessCDR(1,14833150,1,1,2) [2025-04-04 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833150', 'tblTempUsageDetail_20' ) start [2025-04-04 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833150', 'tblTempUsageDetail_20' ) end [2025-04-04 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:28:27] Production.INFO: ==16324== Releasing lock... [2025-04-04 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:28:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:29:06 [end_date_ymd] => 2025-04-04 13:29:06 [RateCDR] => 1 ) [2025-04-04 13: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-04 10:29:06' and `end` < '2025-04-04 13: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-04 13:29:19] Production.INFO: count ==5172 [2025-04-04 13:29:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:29:06 - End Time 2025-04-04 13:29:06 [2025-04-04 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833155', 'tblTempUsageDetail_20' ) start [2025-04-04 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833155', 'tblTempUsageDetail_20' ) end [2025-04-04 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833155', 'tblTempVendorCDR_20' ) start [2025-04-04 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833155', 'tblTempVendorCDR_20' ) end [2025-04-04 13:29:21] Production.INFO: ProcessCDR(1,14833155,1,1,2) [2025-04-04 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833155', 'tblTempUsageDetail_20' ) start [2025-04-04 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833155', 'tblTempUsageDetail_20' ) end [2025-04-04 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:29:26] Production.INFO: ==16407== Releasing lock... [2025-04-04 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:29:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:30:06 [end_date_ymd] => 2025-04-04 13:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:30:06' and `end` < '2025-04-04 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-04 13:30:20] Production.INFO: count ==5171 [2025-04-04 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:30:06 - End Time 2025-04-04 13:30:06 [2025-04-04 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833161', 'tblTempUsageDetail_20' ) start [2025-04-04 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833161', 'tblTempUsageDetail_20' ) end [2025-04-04 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833161', 'tblTempVendorCDR_20' ) start [2025-04-04 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833161', 'tblTempVendorCDR_20' ) end [2025-04-04 13:30:22] Production.INFO: ProcessCDR(1,14833161,1,1,2) [2025-04-04 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833161', 'tblTempUsageDetail_20' ) start [2025-04-04 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833161', 'tblTempUsageDetail_20' ) end [2025-04-04 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:30:28] Production.INFO: ==16494== Releasing lock... [2025-04-04 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:30:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:31:05 [end_date_ymd] => 2025-04-04 13:31:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:31:05' and `end` < '2025-04-04 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-04 13:31:19] Production.INFO: count ==5245 [2025-04-04 13:31:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:31:05 - End Time 2025-04-04 13:31:05 [2025-04-04 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833166', 'tblTempUsageDetail_20' ) start [2025-04-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833166', 'tblTempUsageDetail_20' ) end [2025-04-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833166', 'tblTempVendorCDR_20' ) start [2025-04-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833166', 'tblTempVendorCDR_20' ) end [2025-04-04 13:31:21] Production.INFO: ProcessCDR(1,14833166,1,1,2) [2025-04-04 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833166', 'tblTempUsageDetail_20' ) start [2025-04-04 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833166', 'tblTempUsageDetail_20' ) end [2025-04-04 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:31:27] Production.INFO: ==16578== Releasing lock... [2025-04-04 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:31:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:32:06 [end_date_ymd] => 2025-04-04 13:32:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:32:06' and `end` < '2025-04-04 13: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-04 13:32:20] Production.INFO: count ==5263 [2025-04-04 13:32:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:32:06 - End Time 2025-04-04 13:32:06 [2025-04-04 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833171', 'tblTempUsageDetail_20' ) start [2025-04-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833171', 'tblTempUsageDetail_20' ) end [2025-04-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833171', 'tblTempVendorCDR_20' ) start [2025-04-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833171', 'tblTempVendorCDR_20' ) end [2025-04-04 13:32:22] Production.INFO: ProcessCDR(1,14833171,1,1,2) [2025-04-04 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833171', 'tblTempUsageDetail_20' ) start [2025-04-04 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833171', 'tblTempUsageDetail_20' ) end [2025-04-04 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:32:27] Production.INFO: ==16662== Releasing lock... [2025-04-04 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:32:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:33:05 [end_date_ymd] => 2025-04-04 13:33:05 [RateCDR] => 1 ) [2025-04-04 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:33:05' and `end` < '2025-04-04 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:33:18] Production.INFO: count ==5255 [2025-04-04 13:33:20] Production.ERROR: pbx CDR StartTime 2025-04-04 10:33:05 - End Time 2025-04-04 13:33:05 [2025-04-04 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833176', 'tblTempUsageDetail_20' ) start [2025-04-04 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833176', 'tblTempUsageDetail_20' ) end [2025-04-04 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833176', 'tblTempVendorCDR_20' ) start [2025-04-04 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833176', 'tblTempVendorCDR_20' ) end [2025-04-04 13:33:21] Production.INFO: ProcessCDR(1,14833176,1,1,2) [2025-04-04 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833176', 'tblTempUsageDetail_20' ) start [2025-04-04 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833176', 'tblTempUsageDetail_20' ) end [2025-04-04 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:33:27] Production.INFO: ==16752== Releasing lock... [2025-04-04 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:33:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:34:05 [end_date_ymd] => 2025-04-04 13:34:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:34:05' and `end` < '2025-04-04 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-04 13:34:19] Production.INFO: count ==5250 [2025-04-04 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:34:05 - End Time 2025-04-04 13:34:05 [2025-04-04 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833181', 'tblTempUsageDetail_20' ) start [2025-04-04 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833181', 'tblTempUsageDetail_20' ) end [2025-04-04 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833181', 'tblTempVendorCDR_20' ) start [2025-04-04 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833181', 'tblTempVendorCDR_20' ) end [2025-04-04 13:34:21] Production.INFO: ProcessCDR(1,14833181,1,1,2) [2025-04-04 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833181', 'tblTempUsageDetail_20' ) start [2025-04-04 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833181', 'tblTempUsageDetail_20' ) end [2025-04-04 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:34:27] Production.INFO: ==16840== Releasing lock... [2025-04-04 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:34:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:35:05 [end_date_ymd] => 2025-04-04 13:35:05 [RateCDR] => 1 ) [2025-04-04 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:35:05' and `end` < '2025-04-04 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:35:19] Production.INFO: count ==5260 [2025-04-04 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:35:05 - End Time 2025-04-04 13:35:05 [2025-04-04 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833186', 'tblTempUsageDetail_20' ) start [2025-04-04 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833186', 'tblTempUsageDetail_20' ) end [2025-04-04 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833186', 'tblTempVendorCDR_20' ) start [2025-04-04 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833186', 'tblTempVendorCDR_20' ) end [2025-04-04 13:35:21] Production.INFO: ProcessCDR(1,14833186,1,1,2) [2025-04-04 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833186', 'tblTempUsageDetail_20' ) start [2025-04-04 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833186', 'tblTempUsageDetail_20' ) end [2025-04-04 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:35:27] Production.INFO: ==16921== Releasing lock... [2025-04-04 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:35:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:36:06 [end_date_ymd] => 2025-04-04 13:36:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:36:06' and `end` < '2025-04-04 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-04 13:36:20] Production.INFO: count ==5275 [2025-04-04 13:36:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:36:06 - End Time 2025-04-04 13:36:06 [2025-04-04 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833191', 'tblTempUsageDetail_20' ) start [2025-04-04 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833191', 'tblTempUsageDetail_20' ) end [2025-04-04 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833191', 'tblTempVendorCDR_20' ) start [2025-04-04 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833191', 'tblTempVendorCDR_20' ) end [2025-04-04 13:36:22] Production.INFO: ProcessCDR(1,14833191,1,1,2) [2025-04-04 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833191', 'tblTempUsageDetail_20' ) start [2025-04-04 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833191', 'tblTempUsageDetail_20' ) end [2025-04-04 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:36:27] Production.INFO: ==17008== Releasing lock... [2025-04-04 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:36:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:37:06 [end_date_ymd] => 2025-04-04 13:37:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:37:06' and `end` < '2025-04-04 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-04 13:37:20] Production.INFO: count ==5276 [2025-04-04 13:37:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:37:06 - End Time 2025-04-04 13:37:06 [2025-04-04 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833196', 'tblTempUsageDetail_20' ) start [2025-04-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833196', 'tblTempUsageDetail_20' ) end [2025-04-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833196', 'tblTempVendorCDR_20' ) start [2025-04-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833196', 'tblTempVendorCDR_20' ) end [2025-04-04 13:37:22] Production.INFO: ProcessCDR(1,14833196,1,1,2) [2025-04-04 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833196', 'tblTempUsageDetail_20' ) start [2025-04-04 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833196', 'tblTempUsageDetail_20' ) end [2025-04-04 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:37:28] Production.INFO: ==17091== Releasing lock... [2025-04-04 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:37:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:38:05 [end_date_ymd] => 2025-04-04 13:38:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:38:05' and `end` < '2025-04-04 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-04 13:38:19] Production.INFO: count ==5280 [2025-04-04 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:38:05 - End Time 2025-04-04 13:38:05 [2025-04-04 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833201', 'tblTempUsageDetail_20' ) start [2025-04-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833201', 'tblTempUsageDetail_20' ) end [2025-04-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833201', 'tblTempVendorCDR_20' ) start [2025-04-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833201', 'tblTempVendorCDR_20' ) end [2025-04-04 13:38:21] Production.INFO: ProcessCDR(1,14833201,1,1,2) [2025-04-04 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833201', 'tblTempUsageDetail_20' ) start [2025-04-04 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833201', 'tblTempUsageDetail_20' ) end [2025-04-04 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:38:26] Production.INFO: ==17177== Releasing lock... [2025-04-04 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:38:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:39:06 [end_date_ymd] => 2025-04-04 13:39:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:39:06' and `end` < '2025-04-04 13: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-04 13:39:20] Production.INFO: count ==5303 [2025-04-04 13:39:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:39:06 - End Time 2025-04-04 13:39:06 [2025-04-04 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833206', 'tblTempUsageDetail_20' ) start [2025-04-04 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833206', 'tblTempUsageDetail_20' ) end [2025-04-04 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833206', 'tblTempVendorCDR_20' ) start [2025-04-04 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833206', 'tblTempVendorCDR_20' ) end [2025-04-04 13:39:22] Production.INFO: ProcessCDR(1,14833206,1,1,2) [2025-04-04 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833206', 'tblTempUsageDetail_20' ) start [2025-04-04 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833206', 'tblTempUsageDetail_20' ) end [2025-04-04 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:39:27] Production.INFO: ==17261== Releasing lock... [2025-04-04 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:39:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:40:06 [end_date_ymd] => 2025-04-04 13:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:40:06' and `end` < '2025-04-04 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-04 13:40:20] Production.INFO: count ==5318 [2025-04-04 13:40:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:40:06 - End Time 2025-04-04 13:40:06 [2025-04-04 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833211', 'tblTempUsageDetail_20' ) start [2025-04-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833211', 'tblTempUsageDetail_20' ) end [2025-04-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833211', 'tblTempVendorCDR_20' ) start [2025-04-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833211', 'tblTempVendorCDR_20' ) end [2025-04-04 13:40:22] Production.INFO: ProcessCDR(1,14833211,1,1,2) [2025-04-04 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833211', 'tblTempUsageDetail_20' ) start [2025-04-04 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833211', 'tblTempUsageDetail_20' ) end [2025-04-04 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:40:28] Production.INFO: ==17392== Releasing lock... [2025-04-04 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:40:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:41:05 [end_date_ymd] => 2025-04-04 13:41:05 [RateCDR] => 1 ) [2025-04-04 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:41:05' and `end` < '2025-04-04 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:41:19] Production.INFO: count ==5393 [2025-04-04 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:41:05 - End Time 2025-04-04 13:41:05 [2025-04-04 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833217', 'tblTempUsageDetail_20' ) start [2025-04-04 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833217', 'tblTempUsageDetail_20' ) end [2025-04-04 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833217', 'tblTempVendorCDR_20' ) start [2025-04-04 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833217', 'tblTempVendorCDR_20' ) end [2025-04-04 13:41:21] Production.INFO: ProcessCDR(1,14833217,1,1,2) [2025-04-04 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833217', 'tblTempUsageDetail_20' ) start [2025-04-04 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833217', 'tblTempUsageDetail_20' ) end [2025-04-04 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:41:27] Production.INFO: ==17483== Releasing lock... [2025-04-04 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:41:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:42:06 [end_date_ymd] => 2025-04-04 13:42:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:42:06' and `end` < '2025-04-04 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-04 13:42:20] Production.INFO: count ==5413 [2025-04-04 13:42:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:42:06 - End Time 2025-04-04 13:42:06 [2025-04-04 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833222', 'tblTempUsageDetail_20' ) start [2025-04-04 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833222', 'tblTempUsageDetail_20' ) end [2025-04-04 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833222', 'tblTempVendorCDR_20' ) start [2025-04-04 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833222', 'tblTempVendorCDR_20' ) end [2025-04-04 13:42:22] Production.INFO: ProcessCDR(1,14833222,1,1,2) [2025-04-04 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833222', 'tblTempUsageDetail_20' ) start [2025-04-04 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833222', 'tblTempUsageDetail_20' ) end [2025-04-04 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:42:28] Production.INFO: ==17561== Releasing lock... [2025-04-04 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:42:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:43:06 [end_date_ymd] => 2025-04-04 13:43:06 [RateCDR] => 1 ) [2025-04-04 13: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 10:43:06' and `end` < '2025-04-04 13: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-04 13:43:20] Production.INFO: count ==5426 [2025-04-04 13:43:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:43:06 - End Time 2025-04-04 13:43:06 [2025-04-04 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833227', 'tblTempUsageDetail_20' ) start [2025-04-04 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833227', 'tblTempUsageDetail_20' ) end [2025-04-04 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833227', 'tblTempVendorCDR_20' ) start [2025-04-04 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833227', 'tblTempVendorCDR_20' ) end [2025-04-04 13:43:22] Production.INFO: ProcessCDR(1,14833227,1,1,2) [2025-04-04 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833227', 'tblTempUsageDetail_20' ) start [2025-04-04 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833227', 'tblTempUsageDetail_20' ) end [2025-04-04 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:43:27] Production.INFO: ==17648== Releasing lock... [2025-04-04 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:43:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:44:05 [end_date_ymd] => 2025-04-04 13:44:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:44:05' and `end` < '2025-04-04 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-04 13:44:19] Production.INFO: count ==5443 [2025-04-04 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:44:05 - End Time 2025-04-04 13:44:05 [2025-04-04 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833232', 'tblTempUsageDetail_20' ) start [2025-04-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833232', 'tblTempUsageDetail_20' ) end [2025-04-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833232', 'tblTempVendorCDR_20' ) start [2025-04-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833232', 'tblTempVendorCDR_20' ) end [2025-04-04 13:44:21] Production.INFO: ProcessCDR(1,14833232,1,1,2) [2025-04-04 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833232', 'tblTempUsageDetail_20' ) start [2025-04-04 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833232', 'tblTempUsageDetail_20' ) end [2025-04-04 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:44:27] Production.INFO: ==17730== Releasing lock... [2025-04-04 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:44:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:45:06 [end_date_ymd] => 2025-04-04 13:45:06 [RateCDR] => 1 ) [2025-04-04 13: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-04 10:45:06' and `end` < '2025-04-04 13: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-04 13:45:20] Production.INFO: count ==5473 [2025-04-04 13:45:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:45:06 - End Time 2025-04-04 13:45:06 [2025-04-04 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833237', 'tblTempUsageDetail_20' ) start [2025-04-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833237', 'tblTempUsageDetail_20' ) end [2025-04-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833237', 'tblTempVendorCDR_20' ) start [2025-04-04 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833237', 'tblTempVendorCDR_20' ) end [2025-04-04 13:45:22] Production.INFO: ProcessCDR(1,14833237,1,1,2) [2025-04-04 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833237', 'tblTempUsageDetail_20' ) start [2025-04-04 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833237', 'tblTempUsageDetail_20' ) end [2025-04-04 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:45:28] Production.INFO: ==17814== Releasing lock... [2025-04-04 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:45:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:46:05 [end_date_ymd] => 2025-04-04 13:46:05 [RateCDR] => 1 ) [2025-04-04 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:46:05' and `end` < '2025-04-04 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:46:19] Production.INFO: count ==5517 [2025-04-04 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:46:05 - End Time 2025-04-04 13:46:05 [2025-04-04 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833242', 'tblTempUsageDetail_20' ) start [2025-04-04 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833242', 'tblTempUsageDetail_20' ) end [2025-04-04 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833242', 'tblTempVendorCDR_20' ) start [2025-04-04 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833242', 'tblTempVendorCDR_20' ) end [2025-04-04 13:46:22] Production.INFO: ProcessCDR(1,14833242,1,1,2) [2025-04-04 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833242', 'tblTempUsageDetail_20' ) start [2025-04-04 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833242', 'tblTempUsageDetail_20' ) end [2025-04-04 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:46:27] Production.INFO: ==17898== Releasing lock... [2025-04-04 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:46:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:47:06 [end_date_ymd] => 2025-04-04 13:47:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:47:06' and `end` < '2025-04-04 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-04 13:47:19] Production.INFO: count ==5525 [2025-04-04 13:47:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:47:06 - End Time 2025-04-04 13:47:06 [2025-04-04 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833247', 'tblTempUsageDetail_20' ) start [2025-04-04 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833247', 'tblTempUsageDetail_20' ) end [2025-04-04 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833247', 'tblTempVendorCDR_20' ) start [2025-04-04 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833247', 'tblTempVendorCDR_20' ) end [2025-04-04 13:47:22] Production.INFO: ProcessCDR(1,14833247,1,1,2) [2025-04-04 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833247', 'tblTempUsageDetail_20' ) start [2025-04-04 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833247', 'tblTempUsageDetail_20' ) end [2025-04-04 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:47:27] Production.INFO: ==17990== Releasing lock... [2025-04-04 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:47:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:48:05 [end_date_ymd] => 2025-04-04 13:48:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:48:05' and `end` < '2025-04-04 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-04 13:48:19] Production.INFO: count ==5477 [2025-04-04 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:48:05 - End Time 2025-04-04 13:48:05 [2025-04-04 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833252', 'tblTempUsageDetail_20' ) start [2025-04-04 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833252', 'tblTempUsageDetail_20' ) end [2025-04-04 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833252', 'tblTempVendorCDR_20' ) start [2025-04-04 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833252', 'tblTempVendorCDR_20' ) end [2025-04-04 13:48:21] Production.INFO: ProcessCDR(1,14833252,1,1,2) [2025-04-04 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833252', 'tblTempUsageDetail_20' ) start [2025-04-04 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833252', 'tblTempUsageDetail_20' ) end [2025-04-04 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:48:27] Production.INFO: ==18074== Releasing lock... [2025-04-04 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:48:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:49:05 [end_date_ymd] => 2025-04-04 13:49:05 [RateCDR] => 1 ) [2025-04-04 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:49:05' and `end` < '2025-04-04 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:49:19] Production.INFO: count ==5490 [2025-04-04 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:49:05 - End Time 2025-04-04 13:49:05 [2025-04-04 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833257', 'tblTempUsageDetail_20' ) start [2025-04-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833257', 'tblTempUsageDetail_20' ) end [2025-04-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833257', 'tblTempVendorCDR_20' ) start [2025-04-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833257', 'tblTempVendorCDR_20' ) end [2025-04-04 13:49:21] Production.INFO: ProcessCDR(1,14833257,1,1,2) [2025-04-04 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833257', 'tblTempUsageDetail_20' ) start [2025-04-04 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833257', 'tblTempUsageDetail_20' ) end [2025-04-04 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:49:27] Production.INFO: ==18156== Releasing lock... [2025-04-04 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:49:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:50:06 [end_date_ymd] => 2025-04-04 13:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:50:06' and `end` < '2025-04-04 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-04 13:50:19] Production.INFO: count ==5499 [2025-04-04 13:50:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:50:06 - End Time 2025-04-04 13:50:06 [2025-04-04 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833263', 'tblTempUsageDetail_20' ) start [2025-04-04 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833263', 'tblTempUsageDetail_20' ) end [2025-04-04 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833263', 'tblTempVendorCDR_20' ) start [2025-04-04 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833263', 'tblTempVendorCDR_20' ) end [2025-04-04 13:50:22] Production.INFO: ProcessCDR(1,14833263,1,1,2) [2025-04-04 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833263', 'tblTempUsageDetail_20' ) start [2025-04-04 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833263', 'tblTempUsageDetail_20' ) end [2025-04-04 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:50:27] Production.INFO: ==18247== Releasing lock... [2025-04-04 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:50:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:51:05 [end_date_ymd] => 2025-04-04 13:51:05 [RateCDR] => 1 ) [2025-04-04 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:51:05' and `end` < '2025-04-04 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:51:19] Production.INFO: count ==5440 [2025-04-04 13:51:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:51:05 - End Time 2025-04-04 13:51:05 [2025-04-04 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833268', 'tblTempUsageDetail_20' ) start [2025-04-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833268', 'tblTempUsageDetail_20' ) end [2025-04-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833268', 'tblTempVendorCDR_20' ) start [2025-04-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833268', 'tblTempVendorCDR_20' ) end [2025-04-04 13:51:21] Production.INFO: ProcessCDR(1,14833268,1,1,2) [2025-04-04 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833268', 'tblTempUsageDetail_20' ) start [2025-04-04 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833268', 'tblTempUsageDetail_20' ) end [2025-04-04 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:51:27] Production.INFO: ==18332== Releasing lock... [2025-04-04 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:51:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:52:05 [end_date_ymd] => 2025-04-04 13:52:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:52:05' and `end` < '2025-04-04 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-04 13:52:19] Production.INFO: count ==5409 [2025-04-04 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:52:05 - End Time 2025-04-04 13:52:05 [2025-04-04 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833273', 'tblTempUsageDetail_20' ) start [2025-04-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833273', 'tblTempUsageDetail_20' ) end [2025-04-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833273', 'tblTempVendorCDR_20' ) start [2025-04-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833273', 'tblTempVendorCDR_20' ) end [2025-04-04 13:52:21] Production.INFO: ProcessCDR(1,14833273,1,1,2) [2025-04-04 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833273', 'tblTempUsageDetail_20' ) start [2025-04-04 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833273', 'tblTempUsageDetail_20' ) end [2025-04-04 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:52:26] Production.INFO: ==18413== Releasing lock... [2025-04-04 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:52:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:53:05 [end_date_ymd] => 2025-04-04 13:53:05 [RateCDR] => 1 ) [2025-04-04 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:53:05' and `end` < '2025-04-04 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:53:18] Production.INFO: count ==5393 [2025-04-04 13:53:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:53:05 - End Time 2025-04-04 13:53:05 [2025-04-04 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833278', 'tblTempUsageDetail_20' ) start [2025-04-04 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833278', 'tblTempUsageDetail_20' ) end [2025-04-04 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833278', 'tblTempVendorCDR_20' ) start [2025-04-04 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833278', 'tblTempVendorCDR_20' ) end [2025-04-04 13:53:21] Production.INFO: ProcessCDR(1,14833278,1,1,2) [2025-04-04 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833278', 'tblTempUsageDetail_20' ) start [2025-04-04 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833278', 'tblTempUsageDetail_20' ) end [2025-04-04 13:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:53:24] Production.INFO: ==18507== Releasing lock... [2025-04-04 13:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:53:24] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:54:05 [end_date_ymd] => 2025-04-04 13:54:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:54:05' and `end` < '2025-04-04 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-04 13:54:19] Production.INFO: count ==5385 [2025-04-04 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:54:05 - End Time 2025-04-04 13:54:05 [2025-04-04 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833283', 'tblTempUsageDetail_20' ) start [2025-04-04 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833283', 'tblTempUsageDetail_20' ) end [2025-04-04 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833283', 'tblTempVendorCDR_20' ) start [2025-04-04 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833283', 'tblTempVendorCDR_20' ) end [2025-04-04 13:54:22] Production.INFO: ProcessCDR(1,14833283,1,1,2) [2025-04-04 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833283', 'tblTempUsageDetail_20' ) start [2025-04-04 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833283', 'tblTempUsageDetail_20' ) end [2025-04-04 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:54:27] Production.INFO: ==18590== Releasing lock... [2025-04-04 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:54:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:55:05 [end_date_ymd] => 2025-04-04 13:55:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:55:05' and `end` < '2025-04-04 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-04 13:55:19] Production.INFO: count ==5379 [2025-04-04 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:55:05 - End Time 2025-04-04 13:55:05 [2025-04-04 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833288', 'tblTempUsageDetail_20' ) start [2025-04-04 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833288', 'tblTempUsageDetail_20' ) end [2025-04-04 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833288', 'tblTempVendorCDR_20' ) start [2025-04-04 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833288', 'tblTempVendorCDR_20' ) end [2025-04-04 13:55:21] Production.INFO: ProcessCDR(1,14833288,1,1,2) [2025-04-04 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833288', 'tblTempUsageDetail_20' ) start [2025-04-04 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833288', 'tblTempUsageDetail_20' ) end [2025-04-04 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:55:27] Production.INFO: ==18669== Releasing lock... [2025-04-04 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:55:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:56:05 [end_date_ymd] => 2025-04-04 13:56:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:56:05' and `end` < '2025-04-04 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-04 13:56:19] Production.INFO: count ==5382 [2025-04-04 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:56:05 - End Time 2025-04-04 13:56:05 [2025-04-04 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833293', 'tblTempUsageDetail_20' ) start [2025-04-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833293', 'tblTempUsageDetail_20' ) end [2025-04-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833293', 'tblTempVendorCDR_20' ) start [2025-04-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833293', 'tblTempVendorCDR_20' ) end [2025-04-04 13:56:21] Production.INFO: ProcessCDR(1,14833293,1,1,2) [2025-04-04 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833293', 'tblTempUsageDetail_20' ) start [2025-04-04 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833293', 'tblTempUsageDetail_20' ) end [2025-04-04 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:56:27] Production.INFO: ==18790== Releasing lock... [2025-04-04 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:56:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:57:05 [end_date_ymd] => 2025-04-04 13:57:05 [RateCDR] => 1 ) [2025-04-04 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 10:57:05' and `end` < '2025-04-04 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 13:57:19] Production.INFO: count ==5371 [2025-04-04 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:57:05 - End Time 2025-04-04 13:57:05 [2025-04-04 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833298', 'tblTempUsageDetail_20' ) start [2025-04-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833298', 'tblTempUsageDetail_20' ) end [2025-04-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833298', 'tblTempVendorCDR_20' ) start [2025-04-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833298', 'tblTempVendorCDR_20' ) end [2025-04-04 13:57:21] Production.INFO: ProcessCDR(1,14833298,1,1,2) [2025-04-04 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833298', 'tblTempUsageDetail_20' ) start [2025-04-04 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833298', 'tblTempUsageDetail_20' ) end [2025-04-04 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:57:26] Production.INFO: ==18872== Releasing lock... [2025-04-04 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:57:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:58:06 [end_date_ymd] => 2025-04-04 13:58:06 [RateCDR] => 1 ) [2025-04-04 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-04 10:58:06' and `end` < '2025-04-04 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-04 13:58:20] Production.INFO: count ==5386 [2025-04-04 13:58:22] Production.ERROR: pbx CDR StartTime 2025-04-04 10:58:06 - End Time 2025-04-04 13:58:06 [2025-04-04 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833303', 'tblTempUsageDetail_20' ) start [2025-04-04 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833303', 'tblTempUsageDetail_20' ) end [2025-04-04 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833303', 'tblTempVendorCDR_20' ) start [2025-04-04 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833303', 'tblTempVendorCDR_20' ) end [2025-04-04 13:58:22] Production.INFO: ProcessCDR(1,14833303,1,1,2) [2025-04-04 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833303', 'tblTempUsageDetail_20' ) start [2025-04-04 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833303', 'tblTempUsageDetail_20' ) end [2025-04-04 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:58:27] Production.INFO: ==18952== Releasing lock... [2025-04-04 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:58:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 10:59:05 [end_date_ymd] => 2025-04-04 13:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 10:59:05' and `end` < '2025-04-04 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-04 13:59:19] Production.INFO: count ==5363 [2025-04-04 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-04 10:59:05 - End Time 2025-04-04 13:59:05 [2025-04-04 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833308', 'tblTempUsageDetail_20' ) start [2025-04-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833308', 'tblTempUsageDetail_20' ) end [2025-04-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833308', 'tblTempVendorCDR_20' ) start [2025-04-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833308', 'tblTempVendorCDR_20' ) end [2025-04-04 13:59:21] Production.INFO: ProcessCDR(1,14833308,1,1,2) [2025-04-04 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833308', 'tblTempUsageDetail_20' ) start [2025-04-04 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833308', 'tblTempUsageDetail_20' ) end [2025-04-04 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 13:59:26] Production.INFO: ==19039== Releasing lock... [2025-04-04 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 13:59:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:00:06 [end_date_ymd] => 2025-04-04 14:00:06 [RateCDR] => 1 ) [2025-04-04 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-04 11:00:06' and `end` < '2025-04-04 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-04 14:00:20] Production.INFO: count ==5372 [2025-04-04 14:00:23] Production.ERROR: pbx CDR StartTime 2025-04-04 11:00:06 - End Time 2025-04-04 14:00:06 [2025-04-04 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833314', 'tblTempUsageDetail_20' ) start [2025-04-04 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833314', 'tblTempUsageDetail_20' ) end [2025-04-04 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833314', 'tblTempVendorCDR_20' ) start [2025-04-04 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833314', 'tblTempVendorCDR_20' ) end [2025-04-04 14:00:23] Production.INFO: ProcessCDR(1,14833314,1,1,2) [2025-04-04 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833314', 'tblTempUsageDetail_20' ) start [2025-04-04 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833314', 'tblTempUsageDetail_20' ) end [2025-04-04 14:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:00:26] Production.INFO: ==19128== Releasing lock... [2025-04-04 14:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:00:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:01:05 [end_date_ymd] => 2025-04-04 14:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:01:05' and `end` < '2025-04-04 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-04 14:01:19] Production.INFO: count ==5359 [2025-04-04 14:01:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:01:05 - End Time 2025-04-04 14:01:05 [2025-04-04 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833319', 'tblTempUsageDetail_20' ) start [2025-04-04 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833319', 'tblTempUsageDetail_20' ) end [2025-04-04 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833319', 'tblTempVendorCDR_20' ) start [2025-04-04 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833319', 'tblTempVendorCDR_20' ) end [2025-04-04 14:01:22] Production.INFO: ProcessCDR(1,14833319,1,1,2) [2025-04-04 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833319', 'tblTempUsageDetail_20' ) start [2025-04-04 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833319', 'tblTempUsageDetail_20' ) end [2025-04-04 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:01:27] Production.INFO: ==19226== Releasing lock... [2025-04-04 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:01:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:02:06 [end_date_ymd] => 2025-04-04 14:02:06 [RateCDR] => 1 ) [2025-04-04 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-04 11:02:06' and `end` < '2025-04-04 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-04 14:02:20] Production.INFO: count ==5340 [2025-04-04 14:02:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:02:06 - End Time 2025-04-04 14:02:06 [2025-04-04 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833324', 'tblTempUsageDetail_20' ) start [2025-04-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833324', 'tblTempUsageDetail_20' ) end [2025-04-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833324', 'tblTempVendorCDR_20' ) start [2025-04-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833324', 'tblTempVendorCDR_20' ) end [2025-04-04 14:02:22] Production.INFO: ProcessCDR(1,14833324,1,1,2) [2025-04-04 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833324', 'tblTempUsageDetail_20' ) start [2025-04-04 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833324', 'tblTempUsageDetail_20' ) end [2025-04-04 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:02:28] Production.INFO: ==19306== Releasing lock... [2025-04-04 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:02:28] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:03:05 [end_date_ymd] => 2025-04-04 14:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:03:05' and `end` < '2025-04-04 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-04 14:03:19] Production.INFO: count ==5354 [2025-04-04 14:03:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:03:05 - End Time 2025-04-04 14:03:05 [2025-04-04 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833329', 'tblTempUsageDetail_20' ) start [2025-04-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833329', 'tblTempUsageDetail_20' ) end [2025-04-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833329', 'tblTempVendorCDR_20' ) start [2025-04-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833329', 'tblTempVendorCDR_20' ) end [2025-04-04 14:03:21] Production.INFO: ProcessCDR(1,14833329,1,1,2) [2025-04-04 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833329', 'tblTempUsageDetail_20' ) start [2025-04-04 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833329', 'tblTempUsageDetail_20' ) end [2025-04-04 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:03:27] Production.INFO: ==19386== Releasing lock... [2025-04-04 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:03:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:04:05 [end_date_ymd] => 2025-04-04 14:04:05 [RateCDR] => 1 ) [2025-04-04 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:04:05' and `end` < '2025-04-04 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:04:19] Production.INFO: count ==5373 [2025-04-04 14:04:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:04:05 - End Time 2025-04-04 14:04:05 [2025-04-04 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833334', 'tblTempUsageDetail_20' ) start [2025-04-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833334', 'tblTempUsageDetail_20' ) end [2025-04-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833334', 'tblTempVendorCDR_20' ) start [2025-04-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833334', 'tblTempVendorCDR_20' ) end [2025-04-04 14:04:22] Production.INFO: ProcessCDR(1,14833334,1,1,2) [2025-04-04 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833334', 'tblTempUsageDetail_20' ) start [2025-04-04 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833334', 'tblTempUsageDetail_20' ) end [2025-04-04 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:04:27] Production.INFO: ==19472== Releasing lock... [2025-04-04 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:04:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:05:05 [end_date_ymd] => 2025-04-04 14:05:05 [RateCDR] => 1 ) [2025-04-04 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:05:05' and `end` < '2025-04-04 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:05:19] Production.INFO: count ==5357 [2025-04-04 14:05:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:05:05 - End Time 2025-04-04 14:05:05 [2025-04-04 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833339', 'tblTempUsageDetail_20' ) start [2025-04-04 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833339', 'tblTempUsageDetail_20' ) end [2025-04-04 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833339', 'tblTempVendorCDR_20' ) start [2025-04-04 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833339', 'tblTempVendorCDR_20' ) end [2025-04-04 14:05:21] Production.INFO: ProcessCDR(1,14833339,1,1,2) [2025-04-04 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833339', 'tblTempUsageDetail_20' ) start [2025-04-04 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833339', 'tblTempUsageDetail_20' ) end [2025-04-04 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:05:26] Production.INFO: ==19548== Releasing lock... [2025-04-04 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:05:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:06:06 [end_date_ymd] => 2025-04-04 14:06:06 [RateCDR] => 1 ) [2025-04-04 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:06:06' and `end` < '2025-04-04 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:06:20] Production.INFO: count ==5351 [2025-04-04 14:06:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:06:06 - End Time 2025-04-04 14:06:06 [2025-04-04 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833344', 'tblTempUsageDetail_20' ) start [2025-04-04 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833344', 'tblTempUsageDetail_20' ) end [2025-04-04 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833344', 'tblTempVendorCDR_20' ) start [2025-04-04 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833344', 'tblTempVendorCDR_20' ) end [2025-04-04 14:06:23] Production.INFO: ProcessCDR(1,14833344,1,1,2) [2025-04-04 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833344', 'tblTempUsageDetail_20' ) start [2025-04-04 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833344', 'tblTempUsageDetail_20' ) end [2025-04-04 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:06:27] Production.INFO: ==19628== Releasing lock... [2025-04-04 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:06:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:07:05 [end_date_ymd] => 2025-04-04 14:07:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:07:05' and `end` < '2025-04-04 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-04 14:07:19] Production.INFO: count ==5353 [2025-04-04 14:07:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:07:05 - End Time 2025-04-04 14:07:05 [2025-04-04 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833349', 'tblTempUsageDetail_20' ) start [2025-04-04 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833349', 'tblTempUsageDetail_20' ) end [2025-04-04 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833349', 'tblTempVendorCDR_20' ) start [2025-04-04 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833349', 'tblTempVendorCDR_20' ) end [2025-04-04 14:07:22] Production.INFO: ProcessCDR(1,14833349,1,1,2) [2025-04-04 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833349', 'tblTempUsageDetail_20' ) start [2025-04-04 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833349', 'tblTempUsageDetail_20' ) end [2025-04-04 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:07:27] Production.INFO: ==19703== Releasing lock... [2025-04-04 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:07:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:08:05 [end_date_ymd] => 2025-04-04 14:08:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:08:05' and `end` < '2025-04-04 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-04 14:08:20] Production.INFO: count ==5418 [2025-04-04 14:08:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:08:05 - End Time 2025-04-04 14:08:05 [2025-04-04 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833354', 'tblTempUsageDetail_20' ) start [2025-04-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833354', 'tblTempUsageDetail_20' ) end [2025-04-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833354', 'tblTempVendorCDR_20' ) start [2025-04-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833354', 'tblTempVendorCDR_20' ) end [2025-04-04 14:08:22] Production.INFO: ProcessCDR(1,14833354,1,1,2) [2025-04-04 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833354', 'tblTempUsageDetail_20' ) start [2025-04-04 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833354', 'tblTempUsageDetail_20' ) end [2025-04-04 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:08:27] Production.INFO: ==19784== Releasing lock... [2025-04-04 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:08:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:09:05 [end_date_ymd] => 2025-04-04 14:09:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:09:05' and `end` < '2025-04-04 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-04 14:09:19] Production.INFO: count ==5438 [2025-04-04 14:09:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:09:05 - End Time 2025-04-04 14:09:05 [2025-04-04 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833359', 'tblTempUsageDetail_20' ) start [2025-04-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833359', 'tblTempUsageDetail_20' ) end [2025-04-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833359', 'tblTempVendorCDR_20' ) start [2025-04-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833359', 'tblTempVendorCDR_20' ) end [2025-04-04 14:09:21] Production.INFO: ProcessCDR(1,14833359,1,1,2) [2025-04-04 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833359', 'tblTempUsageDetail_20' ) start [2025-04-04 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833359', 'tblTempUsageDetail_20' ) end [2025-04-04 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:09:27] Production.INFO: ==19857== Releasing lock... [2025-04-04 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:09:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:10:06 [end_date_ymd] => 2025-04-04 14:10:06 [RateCDR] => 1 ) [2025-04-04 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:10:06' and `end` < '2025-04-04 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:10:20] Production.INFO: count ==5433 [2025-04-04 14:10:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:10:06 - End Time 2025-04-04 14:10:06 [2025-04-04 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833364', 'tblTempUsageDetail_20' ) start [2025-04-04 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833364', 'tblTempUsageDetail_20' ) end [2025-04-04 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833364', 'tblTempVendorCDR_20' ) start [2025-04-04 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833364', 'tblTempVendorCDR_20' ) end [2025-04-04 14:10:22] Production.INFO: ProcessCDR(1,14833364,1,1,2) [2025-04-04 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833364', 'tblTempUsageDetail_20' ) start [2025-04-04 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833364', 'tblTempUsageDetail_20' ) end [2025-04-04 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:10:28] Production.INFO: ==19935== Releasing lock... [2025-04-04 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:10:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:11:05 [end_date_ymd] => 2025-04-04 14:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:11:05' and `end` < '2025-04-04 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-04 14:11:19] Production.INFO: count ==5461 [2025-04-04 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:11:05 - End Time 2025-04-04 14:11:05 [2025-04-04 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833370', 'tblTempUsageDetail_20' ) start [2025-04-04 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833370', 'tblTempUsageDetail_20' ) end [2025-04-04 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833370', 'tblTempVendorCDR_20' ) start [2025-04-04 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833370', 'tblTempVendorCDR_20' ) end [2025-04-04 14:11:21] Production.INFO: ProcessCDR(1,14833370,1,1,2) [2025-04-04 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833370', 'tblTempUsageDetail_20' ) start [2025-04-04 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833370', 'tblTempUsageDetail_20' ) end [2025-04-04 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:11:26] Production.INFO: ==20048== Releasing lock... [2025-04-04 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:11:26] Production.INFO: 69 MB #Memory Used# [2025-04-04 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:12:05 [end_date_ymd] => 2025-04-04 14:12:05 [RateCDR] => 1 ) [2025-04-04 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:12:05' and `end` < '2025-04-04 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:12:19] Production.INFO: count ==5451 [2025-04-04 14:12:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:12:05 - End Time 2025-04-04 14:12:05 [2025-04-04 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833375', 'tblTempUsageDetail_20' ) start [2025-04-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833375', 'tblTempUsageDetail_20' ) end [2025-04-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833375', 'tblTempVendorCDR_20' ) start [2025-04-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833375', 'tblTempVendorCDR_20' ) end [2025-04-04 14:12:22] Production.INFO: ProcessCDR(1,14833375,1,1,2) [2025-04-04 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833375', 'tblTempUsageDetail_20' ) start [2025-04-04 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833375', 'tblTempUsageDetail_20' ) end [2025-04-04 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:12:27] Production.INFO: ==20129== Releasing lock... [2025-04-04 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:12:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:13:05 [end_date_ymd] => 2025-04-04 14:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:13:05' and `end` < '2025-04-04 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-04 14:13:19] Production.INFO: count ==5469 [2025-04-04 14:13:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:13:05 - End Time 2025-04-04 14:13:05 [2025-04-04 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833380', 'tblTempUsageDetail_20' ) start [2025-04-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833380', 'tblTempUsageDetail_20' ) end [2025-04-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833380', 'tblTempVendorCDR_20' ) start [2025-04-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833380', 'tblTempVendorCDR_20' ) end [2025-04-04 14:13:21] Production.INFO: ProcessCDR(1,14833380,1,1,2) [2025-04-04 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833380', 'tblTempUsageDetail_20' ) start [2025-04-04 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833380', 'tblTempUsageDetail_20' ) end [2025-04-04 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:13:26] Production.INFO: ==20199== Releasing lock... [2025-04-04 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:13:26] Production.INFO: 69 MB #Memory Used# [2025-04-04 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:14:05 [end_date_ymd] => 2025-04-04 14:14:05 [RateCDR] => 1 ) [2025-04-04 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:14:05' and `end` < '2025-04-04 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:14:20] Production.INFO: count ==5450 [2025-04-04 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:14:05 - End Time 2025-04-04 14:14:05 [2025-04-04 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833385', 'tblTempUsageDetail_20' ) start [2025-04-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833385', 'tblTempUsageDetail_20' ) end [2025-04-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833385', 'tblTempVendorCDR_20' ) start [2025-04-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833385', 'tblTempVendorCDR_20' ) end [2025-04-04 14:14:22] Production.INFO: ProcessCDR(1,14833385,1,1,2) [2025-04-04 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833385', 'tblTempUsageDetail_20' ) start [2025-04-04 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833385', 'tblTempUsageDetail_20' ) end [2025-04-04 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:14:27] Production.INFO: ==20272== Releasing lock... [2025-04-04 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:14:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:15:06 [end_date_ymd] => 2025-04-04 14:15:06 [RateCDR] => 1 ) [2025-04-04 14: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-04 11:15:06' and `end` < '2025-04-04 14: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-04 14:15:20] Production.INFO: count ==5464 [2025-04-04 14:15:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:15:06 - End Time 2025-04-04 14:15:06 [2025-04-04 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833390', 'tblTempUsageDetail_20' ) start [2025-04-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833390', 'tblTempUsageDetail_20' ) end [2025-04-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833390', 'tblTempVendorCDR_20' ) start [2025-04-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833390', 'tblTempVendorCDR_20' ) end [2025-04-04 14:15:22] Production.INFO: ProcessCDR(1,14833390,1,1,2) [2025-04-04 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833390', 'tblTempUsageDetail_20' ) start [2025-04-04 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833390', 'tblTempUsageDetail_20' ) end [2025-04-04 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:15:27] Production.INFO: ==20347== Releasing lock... [2025-04-04 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:15:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:16:05 [end_date_ymd] => 2025-04-04 14:16:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:16:05' and `end` < '2025-04-04 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-04 14:16:19] Production.INFO: count ==5445 [2025-04-04 14:16:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:16:05 - End Time 2025-04-04 14:16:05 [2025-04-04 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833395', 'tblTempUsageDetail_20' ) start [2025-04-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833395', 'tblTempUsageDetail_20' ) end [2025-04-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833395', 'tblTempVendorCDR_20' ) start [2025-04-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833395', 'tblTempVendorCDR_20' ) end [2025-04-04 14:16:22] Production.INFO: ProcessCDR(1,14833395,1,1,2) [2025-04-04 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833395', 'tblTempUsageDetail_20' ) start [2025-04-04 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833395', 'tblTempUsageDetail_20' ) end [2025-04-04 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:16:27] Production.INFO: ==20418== Releasing lock... [2025-04-04 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:16:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:17:06 [end_date_ymd] => 2025-04-04 14:17:06 [RateCDR] => 1 ) [2025-04-04 14: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 11:17:06' and `end` < '2025-04-04 14: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-04 14:17:20] Production.INFO: count ==5446 [2025-04-04 14:17:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:17:06 - End Time 2025-04-04 14:17:06 [2025-04-04 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833400', 'tblTempUsageDetail_20' ) start [2025-04-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833400', 'tblTempUsageDetail_20' ) end [2025-04-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833400', 'tblTempVendorCDR_20' ) start [2025-04-04 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833400', 'tblTempVendorCDR_20' ) end [2025-04-04 14:17:22] Production.INFO: ProcessCDR(1,14833400,1,1,2) [2025-04-04 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833400', 'tblTempUsageDetail_20' ) start [2025-04-04 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833400', 'tblTempUsageDetail_20' ) end [2025-04-04 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:17:27] Production.INFO: ==20492== Releasing lock... [2025-04-04 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:17:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:18:05 [end_date_ymd] => 2025-04-04 14:18:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:18:05' and `end` < '2025-04-04 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-04 14:18:19] Production.INFO: count ==5448 [2025-04-04 14:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:18:05 - End Time 2025-04-04 14:18:05 [2025-04-04 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833405', 'tblTempUsageDetail_20' ) start [2025-04-04 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833405', 'tblTempUsageDetail_20' ) end [2025-04-04 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833405', 'tblTempVendorCDR_20' ) start [2025-04-04 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833405', 'tblTempVendorCDR_20' ) end [2025-04-04 14:18:21] Production.INFO: ProcessCDR(1,14833405,1,1,2) [2025-04-04 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833405', 'tblTempUsageDetail_20' ) start [2025-04-04 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833405', 'tblTempUsageDetail_20' ) end [2025-04-04 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:18:27] Production.INFO: ==20567== Releasing lock... [2025-04-04 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:18:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:19:05 [end_date_ymd] => 2025-04-04 14:19:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:19:05' and `end` < '2025-04-04 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-04 14:19:19] Production.INFO: count ==5447 [2025-04-04 14:19:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:19:05 - End Time 2025-04-04 14:19:05 [2025-04-04 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833410', 'tblTempUsageDetail_20' ) start [2025-04-04 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833410', 'tblTempUsageDetail_20' ) end [2025-04-04 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833410', 'tblTempVendorCDR_20' ) start [2025-04-04 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833410', 'tblTempVendorCDR_20' ) end [2025-04-04 14:19:22] Production.INFO: ProcessCDR(1,14833410,1,1,2) [2025-04-04 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833410', 'tblTempUsageDetail_20' ) start [2025-04-04 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833410', 'tblTempUsageDetail_20' ) end [2025-04-04 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:19:28] Production.INFO: ==20642== Releasing lock... [2025-04-04 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:19:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:20:06 [end_date_ymd] => 2025-04-04 14:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 11:20:06' and `end` < '2025-04-04 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-04 14:20:20] Production.INFO: count ==5447 [2025-04-04 14:20:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:20:06 - End Time 2025-04-04 14:20:06 [2025-04-04 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833415', 'tblTempUsageDetail_20' ) start [2025-04-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833415', 'tblTempUsageDetail_20' ) end [2025-04-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833415', 'tblTempVendorCDR_20' ) start [2025-04-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833415', 'tblTempVendorCDR_20' ) end [2025-04-04 14:20:22] Production.INFO: ProcessCDR(1,14833415,1,1,2) [2025-04-04 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833415', 'tblTempUsageDetail_20' ) start [2025-04-04 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833415', 'tblTempUsageDetail_20' ) end [2025-04-04 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:20:28] Production.INFO: ==20715== Releasing lock... [2025-04-04 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:20:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:21:06 [end_date_ymd] => 2025-04-04 14:21:06 [RateCDR] => 1 ) [2025-04-04 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-04 11:21:06' and `end` < '2025-04-04 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-04 14:21:19] Production.INFO: count ==5446 [2025-04-04 14:21:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:21:06 - End Time 2025-04-04 14:21:06 [2025-04-04 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833421', 'tblTempUsageDetail_20' ) start [2025-04-04 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833421', 'tblTempUsageDetail_20' ) end [2025-04-04 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833421', 'tblTempVendorCDR_20' ) start [2025-04-04 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833421', 'tblTempVendorCDR_20' ) end [2025-04-04 14:21:22] Production.INFO: ProcessCDR(1,14833421,1,1,2) [2025-04-04 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833421', 'tblTempUsageDetail_20' ) start [2025-04-04 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833421', 'tblTempUsageDetail_20' ) end [2025-04-04 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:21:27] Production.INFO: ==20792== Releasing lock... [2025-04-04 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:21:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:22:05 [end_date_ymd] => 2025-04-04 14:22:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:22:05' and `end` < '2025-04-04 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-04 14:22:19] Production.INFO: count ==5433 [2025-04-04 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:22:05 - End Time 2025-04-04 14:22:05 [2025-04-04 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833426', 'tblTempUsageDetail_20' ) start [2025-04-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833426', 'tblTempUsageDetail_20' ) end [2025-04-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833426', 'tblTempVendorCDR_20' ) start [2025-04-04 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833426', 'tblTempVendorCDR_20' ) end [2025-04-04 14:22:21] Production.INFO: ProcessCDR(1,14833426,1,1,2) [2025-04-04 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833426', 'tblTempUsageDetail_20' ) start [2025-04-04 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833426', 'tblTempUsageDetail_20' ) end [2025-04-04 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:22:26] Production.INFO: ==20863== Releasing lock... [2025-04-04 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:22:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:23:05 [end_date_ymd] => 2025-04-04 14:23:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:23:05' and `end` < '2025-04-04 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-04 14:23:19] Production.INFO: count ==5450 [2025-04-04 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:23:05 - End Time 2025-04-04 14:23:05 [2025-04-04 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833431', 'tblTempUsageDetail_20' ) start [2025-04-04 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833431', 'tblTempUsageDetail_20' ) end [2025-04-04 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833431', 'tblTempVendorCDR_20' ) start [2025-04-04 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833431', 'tblTempVendorCDR_20' ) end [2025-04-04 14:23:22] Production.INFO: ProcessCDR(1,14833431,1,1,2) [2025-04-04 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833431', 'tblTempUsageDetail_20' ) start [2025-04-04 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833431', 'tblTempUsageDetail_20' ) end [2025-04-04 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:23:27] Production.INFO: ==20936== Releasing lock... [2025-04-04 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:23:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:24:05 [end_date_ymd] => 2025-04-04 14:24:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:24:05' and `end` < '2025-04-04 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-04 14:24:19] Production.INFO: count ==5453 [2025-04-04 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:24:05 - End Time 2025-04-04 14:24:05 [2025-04-04 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833436', 'tblTempUsageDetail_20' ) start [2025-04-04 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833436', 'tblTempUsageDetail_20' ) end [2025-04-04 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833436', 'tblTempVendorCDR_20' ) start [2025-04-04 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833436', 'tblTempVendorCDR_20' ) end [2025-04-04 14:24:21] Production.INFO: ProcessCDR(1,14833436,1,1,2) [2025-04-04 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833436', 'tblTempUsageDetail_20' ) start [2025-04-04 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833436', 'tblTempUsageDetail_20' ) end [2025-04-04 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:24:26] Production.INFO: ==21009== Releasing lock... [2025-04-04 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:24:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:25:06 [end_date_ymd] => 2025-04-04 14:25:06 [RateCDR] => 1 ) [2025-04-04 14: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 11:25:06' and `end` < '2025-04-04 14: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-04 14:25:19] Production.INFO: count ==5448 [2025-04-04 14:25:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:25:06 - End Time 2025-04-04 14:25:06 [2025-04-04 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833441', 'tblTempUsageDetail_20' ) start [2025-04-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833441', 'tblTempUsageDetail_20' ) end [2025-04-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833441', 'tblTempVendorCDR_20' ) start [2025-04-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833441', 'tblTempVendorCDR_20' ) end [2025-04-04 14:25:22] Production.INFO: ProcessCDR(1,14833441,1,1,2) [2025-04-04 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833441', 'tblTempUsageDetail_20' ) start [2025-04-04 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833441', 'tblTempUsageDetail_20' ) end [2025-04-04 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:25:28] Production.INFO: ==21085== Releasing lock... [2025-04-04 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:25:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:26:05 [end_date_ymd] => 2025-04-04 14:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:26:05' and `end` < '2025-04-04 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-04 14:26:18] Production.INFO: count ==5446 [2025-04-04 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:26:05 - End Time 2025-04-04 14:26:05 [2025-04-04 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833446', 'tblTempUsageDetail_20' ) start [2025-04-04 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833446', 'tblTempUsageDetail_20' ) end [2025-04-04 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833446', 'tblTempVendorCDR_20' ) start [2025-04-04 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833446', 'tblTempVendorCDR_20' ) end [2025-04-04 14:26:21] Production.INFO: ProcessCDR(1,14833446,1,1,2) [2025-04-04 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833446', 'tblTempUsageDetail_20' ) start [2025-04-04 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833446', 'tblTempUsageDetail_20' ) end [2025-04-04 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:26:26] Production.INFO: ==21199== Releasing lock... [2025-04-04 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:26:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:27:05 [end_date_ymd] => 2025-04-04 14:27:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:27:05' and `end` < '2025-04-04 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-04 14:27:19] Production.INFO: count ==5422 [2025-04-04 14:27:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:27:05 - End Time 2025-04-04 14:27:05 [2025-04-04 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833451', 'tblTempUsageDetail_20' ) start [2025-04-04 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833451', 'tblTempUsageDetail_20' ) end [2025-04-04 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833451', 'tblTempVendorCDR_20' ) start [2025-04-04 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833451', 'tblTempVendorCDR_20' ) end [2025-04-04 14:27:22] Production.INFO: ProcessCDR(1,14833451,1,1,2) [2025-04-04 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833451', 'tblTempUsageDetail_20' ) start [2025-04-04 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833451', 'tblTempUsageDetail_20' ) end [2025-04-04 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:27:27] Production.INFO: ==21269== Releasing lock... [2025-04-04 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:27:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:28:05 [end_date_ymd] => 2025-04-04 14:28:05 [RateCDR] => 1 ) [2025-04-04 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:28:05' and `end` < '2025-04-04 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:28:19] Production.INFO: count ==5440 [2025-04-04 14:28:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:28:05 - End Time 2025-04-04 14:28:05 [2025-04-04 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833456', 'tblTempUsageDetail_20' ) start [2025-04-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833456', 'tblTempUsageDetail_20' ) end [2025-04-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833456', 'tblTempVendorCDR_20' ) start [2025-04-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833456', 'tblTempVendorCDR_20' ) end [2025-04-04 14:28:22] Production.INFO: ProcessCDR(1,14833456,1,1,2) [2025-04-04 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833456', 'tblTempUsageDetail_20' ) start [2025-04-04 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833456', 'tblTempUsageDetail_20' ) end [2025-04-04 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:28:27] Production.INFO: ==21345== Releasing lock... [2025-04-04 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:28:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:29:05 [end_date_ymd] => 2025-04-04 14:29:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:29:05' and `end` < '2025-04-04 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-04 14:29:19] Production.INFO: count ==5426 [2025-04-04 14:29:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:29:05 - End Time 2025-04-04 14:29:05 [2025-04-04 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833461', 'tblTempUsageDetail_20' ) start [2025-04-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833461', 'tblTempUsageDetail_20' ) end [2025-04-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833461', 'tblTempVendorCDR_20' ) start [2025-04-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833461', 'tblTempVendorCDR_20' ) end [2025-04-04 14:29:21] Production.INFO: ProcessCDR(1,14833461,1,1,2) [2025-04-04 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833461', 'tblTempUsageDetail_20' ) start [2025-04-04 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833461', 'tblTempUsageDetail_20' ) end [2025-04-04 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:29:26] Production.INFO: ==21418== Releasing lock... [2025-04-04 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:29:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:30:07 [end_date_ymd] => 2025-04-04 14:30:07 [RateCDR] => 1 ) [2025-04-04 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:30:07' and `end` < '2025-04-04 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:30:21] Production.INFO: count ==5419 [2025-04-04 14:30:23] Production.ERROR: pbx CDR StartTime 2025-04-04 11:30:07 - End Time 2025-04-04 14:30:07 [2025-04-04 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833467', 'tblTempUsageDetail_20' ) start [2025-04-04 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833467', 'tblTempUsageDetail_20' ) end [2025-04-04 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833467', 'tblTempVendorCDR_20' ) start [2025-04-04 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833467', 'tblTempVendorCDR_20' ) end [2025-04-04 14:30:23] Production.INFO: ProcessCDR(1,14833467,1,1,2) [2025-04-04 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833467', 'tblTempUsageDetail_20' ) start [2025-04-04 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833467', 'tblTempUsageDetail_20' ) end [2025-04-04 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:30:29] Production.INFO: ==21495== Releasing lock... [2025-04-04 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:30:29] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:31:05 [end_date_ymd] => 2025-04-04 14:31:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:31:05' and `end` < '2025-04-04 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-04 14:31:19] Production.INFO: count ==5354 [2025-04-04 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:31:05 - End Time 2025-04-04 14:31:05 [2025-04-04 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833472', 'tblTempUsageDetail_20' ) start [2025-04-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833472', 'tblTempUsageDetail_20' ) end [2025-04-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833472', 'tblTempVendorCDR_20' ) start [2025-04-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833472', 'tblTempVendorCDR_20' ) end [2025-04-04 14:31:21] Production.INFO: ProcessCDR(1,14833472,1,1,2) [2025-04-04 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833472', 'tblTempUsageDetail_20' ) start [2025-04-04 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833472', 'tblTempUsageDetail_20' ) end [2025-04-04 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:31:26] Production.INFO: ==21578== Releasing lock... [2025-04-04 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:31:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:32:05 [end_date_ymd] => 2025-04-04 14:32:05 [RateCDR] => 1 ) [2025-04-04 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:32:05' and `end` < '2025-04-04 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:32:19] Production.INFO: count ==5324 [2025-04-04 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:32:05 - End Time 2025-04-04 14:32:05 [2025-04-04 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833473', 'tblTempUsageDetail_20' ) start [2025-04-04 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833473', 'tblTempUsageDetail_20' ) end [2025-04-04 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833473', 'tblTempVendorCDR_20' ) start [2025-04-04 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833473', 'tblTempVendorCDR_20' ) end [2025-04-04 14:32:21] Production.INFO: ProcessCDR(1,14833473,1,1,2) [2025-04-04 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833473', 'tblTempUsageDetail_20' ) start [2025-04-04 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833473', 'tblTempUsageDetail_20' ) end [2025-04-04 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:32:26] Production.INFO: ==21654== Releasing lock... [2025-04-04 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:32:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:33:05 [end_date_ymd] => 2025-04-04 14:33:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:33:05' and `end` < '2025-04-04 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-04 14:33:18] Production.INFO: count ==5328 [2025-04-04 14:33:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:33:05 - End Time 2025-04-04 14:33:05 [2025-04-04 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833482', 'tblTempUsageDetail_20' ) start [2025-04-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833482', 'tblTempUsageDetail_20' ) end [2025-04-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833482', 'tblTempVendorCDR_20' ) start [2025-04-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833482', 'tblTempVendorCDR_20' ) end [2025-04-04 14:33:21] Production.INFO: ProcessCDR(1,14833482,1,1,2) [2025-04-04 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833482', 'tblTempUsageDetail_20' ) start [2025-04-04 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833482', 'tblTempUsageDetail_20' ) end [2025-04-04 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:33:26] Production.INFO: ==21728== Releasing lock... [2025-04-04 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:33:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:34:05 [end_date_ymd] => 2025-04-04 14:34:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:34:05' and `end` < '2025-04-04 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-04 14:34:19] Production.INFO: count ==5326 [2025-04-04 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:34:05 - End Time 2025-04-04 14:34:05 [2025-04-04 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833487', 'tblTempUsageDetail_20' ) start [2025-04-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833487', 'tblTempUsageDetail_20' ) end [2025-04-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833487', 'tblTempVendorCDR_20' ) start [2025-04-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833487', 'tblTempVendorCDR_20' ) end [2025-04-04 14:34:21] Production.INFO: ProcessCDR(1,14833487,1,1,2) [2025-04-04 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833487', 'tblTempUsageDetail_20' ) start [2025-04-04 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833487', 'tblTempUsageDetail_20' ) end [2025-04-04 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:34:27] Production.INFO: ==21805== Releasing lock... [2025-04-04 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:34:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:35:05 [end_date_ymd] => 2025-04-04 14:35:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:35:05' and `end` < '2025-04-04 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-04 14:35:19] Production.INFO: count ==5308 [2025-04-04 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:35:05 - End Time 2025-04-04 14:35:05 [2025-04-04 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833492', 'tblTempUsageDetail_20' ) start [2025-04-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833492', 'tblTempUsageDetail_20' ) end [2025-04-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833492', 'tblTempVendorCDR_20' ) start [2025-04-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833492', 'tblTempVendorCDR_20' ) end [2025-04-04 14:35:21] Production.INFO: ProcessCDR(1,14833492,1,1,2) [2025-04-04 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833492', 'tblTempUsageDetail_20' ) start [2025-04-04 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833492', 'tblTempUsageDetail_20' ) end [2025-04-04 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:35:26] Production.INFO: ==21881== Releasing lock... [2025-04-04 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:35:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:36:06 [end_date_ymd] => 2025-04-04 14:36:06 [RateCDR] => 1 ) [2025-04-04 14: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-04 11:36:06' and `end` < '2025-04-04 14: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-04 14:36:20] Production.INFO: count ==5296 [2025-04-04 14:36:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:36:06 - End Time 2025-04-04 14:36:06 [2025-04-04 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833497', 'tblTempUsageDetail_20' ) start [2025-04-04 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833497', 'tblTempUsageDetail_20' ) end [2025-04-04 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833497', 'tblTempVendorCDR_20' ) start [2025-04-04 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833497', 'tblTempVendorCDR_20' ) end [2025-04-04 14:36:22] Production.INFO: ProcessCDR(1,14833497,1,1,2) [2025-04-04 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833497', 'tblTempUsageDetail_20' ) start [2025-04-04 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833497', 'tblTempUsageDetail_20' ) end [2025-04-04 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:36:26] Production.INFO: ==21959== Releasing lock... [2025-04-04 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:36:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:37:05 [end_date_ymd] => 2025-04-04 14:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:37:05' and `end` < '2025-04-04 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-04 14:37:19] Production.INFO: count ==5285 [2025-04-04 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:37:05 - End Time 2025-04-04 14:37:05 [2025-04-04 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833502', 'tblTempUsageDetail_20' ) start [2025-04-04 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833502', 'tblTempUsageDetail_20' ) end [2025-04-04 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833502', 'tblTempVendorCDR_20' ) start [2025-04-04 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833502', 'tblTempVendorCDR_20' ) end [2025-04-04 14:37:22] Production.INFO: ProcessCDR(1,14833502,1,1,2) [2025-04-04 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833502', 'tblTempUsageDetail_20' ) start [2025-04-04 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833502', 'tblTempUsageDetail_20' ) end [2025-04-04 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:37:27] Production.INFO: ==22035== Releasing lock... [2025-04-04 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:37:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:38:05 [end_date_ymd] => 2025-04-04 14:38:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:38:05' and `end` < '2025-04-04 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-04 14:38:19] Production.INFO: count ==5285 [2025-04-04 14:38:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:38:05 - End Time 2025-04-04 14:38:05 [2025-04-04 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833507', 'tblTempUsageDetail_20' ) start [2025-04-04 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833507', 'tblTempUsageDetail_20' ) end [2025-04-04 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833507', 'tblTempVendorCDR_20' ) start [2025-04-04 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833507', 'tblTempVendorCDR_20' ) end [2025-04-04 14:38:22] Production.INFO: ProcessCDR(1,14833507,1,1,2) [2025-04-04 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833507', 'tblTempUsageDetail_20' ) start [2025-04-04 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833507', 'tblTempUsageDetail_20' ) end [2025-04-04 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:38:26] Production.INFO: ==22116== Releasing lock... [2025-04-04 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:38:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:39:05 [end_date_ymd] => 2025-04-04 14:39:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:39:05' and `end` < '2025-04-04 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-04 14:39:18] Production.INFO: count ==5240 [2025-04-04 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:39:05 - End Time 2025-04-04 14:39:05 [2025-04-04 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833512', 'tblTempUsageDetail_20' ) start [2025-04-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833512', 'tblTempUsageDetail_20' ) end [2025-04-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833512', 'tblTempVendorCDR_20' ) start [2025-04-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833512', 'tblTempVendorCDR_20' ) end [2025-04-04 14:39:21] Production.INFO: ProcessCDR(1,14833512,1,1,2) [2025-04-04 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833512', 'tblTempUsageDetail_20' ) start [2025-04-04 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833512', 'tblTempUsageDetail_20' ) end [2025-04-04 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:39:26] Production.INFO: ==22191== Releasing lock... [2025-04-04 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:39:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:40:07 [end_date_ymd] => 2025-04-04 14:40:07 [RateCDR] => 1 ) [2025-04-04 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-04 11:40:07' and `end` < '2025-04-04 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-04 14:40:21] Production.INFO: count ==5234 [2025-04-04 14:40:23] Production.ERROR: pbx CDR StartTime 2025-04-04 11:40:07 - End Time 2025-04-04 14:40:07 [2025-04-04 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833518', 'tblTempUsageDetail_20' ) start [2025-04-04 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833518', 'tblTempUsageDetail_20' ) end [2025-04-04 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833518', 'tblTempVendorCDR_20' ) start [2025-04-04 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833518', 'tblTempVendorCDR_20' ) end [2025-04-04 14:40:23] Production.INFO: ProcessCDR(1,14833518,1,1,2) [2025-04-04 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833518', 'tblTempUsageDetail_20' ) start [2025-04-04 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833518', 'tblTempUsageDetail_20' ) end [2025-04-04 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:40:28] Production.INFO: ==22271== Releasing lock... [2025-04-04 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:40:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:41:05 [end_date_ymd] => 2025-04-04 14:41:05 [RateCDR] => 1 ) [2025-04-04 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:41:05' and `end` < '2025-04-04 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:41:19] Production.INFO: count ==5196 [2025-04-04 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:41:05 - End Time 2025-04-04 14:41:05 [2025-04-04 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833523', 'tblTempUsageDetail_20' ) start [2025-04-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833523', 'tblTempUsageDetail_20' ) end [2025-04-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833523', 'tblTempVendorCDR_20' ) start [2025-04-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833523', 'tblTempVendorCDR_20' ) end [2025-04-04 14:41:21] Production.INFO: ProcessCDR(1,14833523,1,1,2) [2025-04-04 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833523', 'tblTempUsageDetail_20' ) start [2025-04-04 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833523', 'tblTempUsageDetail_20' ) end [2025-04-04 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:41:26] Production.INFO: ==22348== Releasing lock... [2025-04-04 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:41:26] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:42:06 [end_date_ymd] => 2025-04-04 14:42:06 [RateCDR] => 1 ) [2025-04-04 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-04 11:42:06' and `end` < '2025-04-04 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-04 14:42:20] Production.INFO: count ==5180 [2025-04-04 14:42:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:42:06 - End Time 2025-04-04 14:42:06 [2025-04-04 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833528', 'tblTempUsageDetail_20' ) start [2025-04-04 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833528', 'tblTempUsageDetail_20' ) end [2025-04-04 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833528', 'tblTempVendorCDR_20' ) start [2025-04-04 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833528', 'tblTempVendorCDR_20' ) end [2025-04-04 14:42:22] Production.INFO: ProcessCDR(1,14833528,1,1,2) [2025-04-04 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833528', 'tblTempUsageDetail_20' ) start [2025-04-04 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833528', 'tblTempUsageDetail_20' ) end [2025-04-04 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:42:28] Production.INFO: ==22463== Releasing lock... [2025-04-04 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:42:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:43:05 [end_date_ymd] => 2025-04-04 14:43:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:43:05' and `end` < '2025-04-04 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-04 14:43:19] Production.INFO: count ==5194 [2025-04-04 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:43:05 - End Time 2025-04-04 14:43:05 [2025-04-04 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833533', 'tblTempUsageDetail_20' ) start [2025-04-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833533', 'tblTempUsageDetail_20' ) end [2025-04-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833533', 'tblTempVendorCDR_20' ) start [2025-04-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833533', 'tblTempVendorCDR_20' ) end [2025-04-04 14:43:21] Production.INFO: ProcessCDR(1,14833533,1,1,2) [2025-04-04 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833533', 'tblTempUsageDetail_20' ) start [2025-04-04 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833533', 'tblTempUsageDetail_20' ) end [2025-04-04 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:43:27] Production.INFO: ==22540== Releasing lock... [2025-04-04 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:43:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:44:05 [end_date_ymd] => 2025-04-04 14:44:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:44:05' and `end` < '2025-04-04 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-04 14:44:19] Production.INFO: count ==5214 [2025-04-04 14:44:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:44:05 - End Time 2025-04-04 14:44:05 [2025-04-04 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833538', 'tblTempUsageDetail_20' ) start [2025-04-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833538', 'tblTempUsageDetail_20' ) end [2025-04-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833538', 'tblTempVendorCDR_20' ) start [2025-04-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833538', 'tblTempVendorCDR_20' ) end [2025-04-04 14:44:22] Production.INFO: ProcessCDR(1,14833538,1,1,2) [2025-04-04 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833538', 'tblTempUsageDetail_20' ) start [2025-04-04 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833538', 'tblTempUsageDetail_20' ) end [2025-04-04 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:44:27] Production.INFO: ==22616== Releasing lock... [2025-04-04 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:44:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:45:05 [end_date_ymd] => 2025-04-04 14:45:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:45:05' and `end` < '2025-04-04 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-04 14:45:19] Production.INFO: count ==5203 [2025-04-04 14:45:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:45:05 - End Time 2025-04-04 14:45:05 [2025-04-04 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833543', 'tblTempUsageDetail_20' ) start [2025-04-04 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833543', 'tblTempUsageDetail_20' ) end [2025-04-04 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833543', 'tblTempVendorCDR_20' ) start [2025-04-04 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833543', 'tblTempVendorCDR_20' ) end [2025-04-04 14:45:22] Production.INFO: ProcessCDR(1,14833543,1,1,2) [2025-04-04 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833543', 'tblTempUsageDetail_20' ) start [2025-04-04 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833543', 'tblTempUsageDetail_20' ) end [2025-04-04 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:45:28] Production.INFO: ==22695== Releasing lock... [2025-04-04 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:45:28] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:46:05 [end_date_ymd] => 2025-04-04 14:46:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:46:05' and `end` < '2025-04-04 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-04 14:46:19] Production.INFO: count ==5210 [2025-04-04 14:46:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:46:05 - End Time 2025-04-04 14:46:05 [2025-04-04 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833548', 'tblTempUsageDetail_20' ) start [2025-04-04 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833548', 'tblTempUsageDetail_20' ) end [2025-04-04 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833548', 'tblTempVendorCDR_20' ) start [2025-04-04 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833548', 'tblTempVendorCDR_20' ) end [2025-04-04 14:46:21] Production.INFO: ProcessCDR(1,14833548,1,1,2) [2025-04-04 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833548', 'tblTempUsageDetail_20' ) start [2025-04-04 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833548', 'tblTempUsageDetail_20' ) end [2025-04-04 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:46:26] Production.INFO: ==22771== Releasing lock... [2025-04-04 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:46:26] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:47:05 [end_date_ymd] => 2025-04-04 14:47:05 [RateCDR] => 1 ) [2025-04-04 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:47:05' and `end` < '2025-04-04 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:47:19] Production.INFO: count ==5202 [2025-04-04 14:47:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:47:05 - End Time 2025-04-04 14:47:05 [2025-04-04 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833553', 'tblTempUsageDetail_20' ) start [2025-04-04 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833553', 'tblTempUsageDetail_20' ) end [2025-04-04 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833553', 'tblTempVendorCDR_20' ) start [2025-04-04 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833553', 'tblTempVendorCDR_20' ) end [2025-04-04 14:47:21] Production.INFO: ProcessCDR(1,14833553,1,1,2) [2025-04-04 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833553', 'tblTempUsageDetail_20' ) start [2025-04-04 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833553', 'tblTempUsageDetail_20' ) end [2025-04-04 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:47:27] Production.INFO: ==22849== Releasing lock... [2025-04-04 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:47:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:48:06 [end_date_ymd] => 2025-04-04 14:48:06 [RateCDR] => 1 ) [2025-04-04 14: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-04 11:48:06' and `end` < '2025-04-04 14: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-04 14:48:19] Production.INFO: count ==5212 [2025-04-04 14:48:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:48:06 - End Time 2025-04-04 14:48:06 [2025-04-04 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833558', 'tblTempUsageDetail_20' ) start [2025-04-04 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833558', 'tblTempUsageDetail_20' ) end [2025-04-04 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833558', 'tblTempVendorCDR_20' ) start [2025-04-04 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833558', 'tblTempVendorCDR_20' ) end [2025-04-04 14:48:22] Production.INFO: ProcessCDR(1,14833558,1,1,2) [2025-04-04 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833558', 'tblTempUsageDetail_20' ) start [2025-04-04 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833558', 'tblTempUsageDetail_20' ) end [2025-04-04 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:48:27] Production.INFO: ==22926== Releasing lock... [2025-04-04 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:48:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:49:05 [end_date_ymd] => 2025-04-04 14:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:49:05' and `end` < '2025-04-04 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-04 14:49:19] Production.INFO: count ==5212 [2025-04-04 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:49:05 - End Time 2025-04-04 14:49:05 [2025-04-04 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833563', 'tblTempUsageDetail_20' ) start [2025-04-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833563', 'tblTempUsageDetail_20' ) end [2025-04-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833563', 'tblTempVendorCDR_20' ) start [2025-04-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833563', 'tblTempVendorCDR_20' ) end [2025-04-04 14:49:21] Production.INFO: ProcessCDR(1,14833563,1,1,2) [2025-04-04 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833563', 'tblTempUsageDetail_20' ) start [2025-04-04 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833563', 'tblTempUsageDetail_20' ) end [2025-04-04 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:49:26] Production.INFO: ==23001== Releasing lock... [2025-04-04 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:49:26] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:50:06 [end_date_ymd] => 2025-04-04 14:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 11:50:06' and `end` < '2025-04-04 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-04 14:50:20] Production.INFO: count ==5196 [2025-04-04 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:50:06 - End Time 2025-04-04 14:50:06 [2025-04-04 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833568', 'tblTempUsageDetail_20' ) start [2025-04-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833568', 'tblTempUsageDetail_20' ) end [2025-04-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833568', 'tblTempVendorCDR_20' ) start [2025-04-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833568', 'tblTempVendorCDR_20' ) end [2025-04-04 14:50:22] Production.INFO: ProcessCDR(1,14833568,1,1,2) [2025-04-04 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833568', 'tblTempUsageDetail_20' ) start [2025-04-04 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833568', 'tblTempUsageDetail_20' ) end [2025-04-04 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:50:28] Production.INFO: ==23083== Releasing lock... [2025-04-04 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:50:28] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:51:05 [end_date_ymd] => 2025-04-04 14:51:05 [RateCDR] => 1 ) [2025-04-04 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:51:05' and `end` < '2025-04-04 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:51:19] Production.INFO: count ==5184 [2025-04-04 14:51:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:51:05 - End Time 2025-04-04 14:51:05 [2025-04-04 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833574', 'tblTempUsageDetail_20' ) start [2025-04-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833574', 'tblTempUsageDetail_20' ) end [2025-04-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833574', 'tblTempVendorCDR_20' ) start [2025-04-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833574', 'tblTempVendorCDR_20' ) end [2025-04-04 14:51:21] Production.INFO: ProcessCDR(1,14833574,1,1,2) [2025-04-04 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833574', 'tblTempUsageDetail_20' ) start [2025-04-04 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833574', 'tblTempUsageDetail_20' ) end [2025-04-04 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:51:27] Production.INFO: ==23167== Releasing lock... [2025-04-04 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:51:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:52:05 [end_date_ymd] => 2025-04-04 14:52:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:52:05' and `end` < '2025-04-04 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-04 14:52:19] Production.INFO: count ==5208 [2025-04-04 14:52:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:52:05 - End Time 2025-04-04 14:52:05 [2025-04-04 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833579', 'tblTempUsageDetail_20' ) start [2025-04-04 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833579', 'tblTempUsageDetail_20' ) end [2025-04-04 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833579', 'tblTempVendorCDR_20' ) start [2025-04-04 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833579', 'tblTempVendorCDR_20' ) end [2025-04-04 14:52:22] Production.INFO: ProcessCDR(1,14833579,1,1,2) [2025-04-04 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833579', 'tblTempUsageDetail_20' ) start [2025-04-04 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833579', 'tblTempUsageDetail_20' ) end [2025-04-04 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:52:27] Production.INFO: ==23248== Releasing lock... [2025-04-04 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:52:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:53:05 [end_date_ymd] => 2025-04-04 14:53:05 [RateCDR] => 1 ) [2025-04-04 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 11:53:05' and `end` < '2025-04-04 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 14:53:19] Production.INFO: count ==5191 [2025-04-04 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:53:05 - End Time 2025-04-04 14:53:05 [2025-04-04 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833584', 'tblTempUsageDetail_20' ) start [2025-04-04 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833584', 'tblTempUsageDetail_20' ) end [2025-04-04 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833584', 'tblTempVendorCDR_20' ) start [2025-04-04 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833584', 'tblTempVendorCDR_20' ) end [2025-04-04 14:53:22] Production.INFO: ProcessCDR(1,14833584,1,1,2) [2025-04-04 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833584', 'tblTempUsageDetail_20' ) start [2025-04-04 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833584', 'tblTempUsageDetail_20' ) end [2025-04-04 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:53:27] Production.INFO: ==23322== Releasing lock... [2025-04-04 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:53:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:54:05 [end_date_ymd] => 2025-04-04 14:54:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:54:05' and `end` < '2025-04-04 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-04 14:54:19] Production.INFO: count ==5173 [2025-04-04 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:54:05 - End Time 2025-04-04 14:54:05 [2025-04-04 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833589', 'tblTempUsageDetail_20' ) start [2025-04-04 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833589', 'tblTempUsageDetail_20' ) end [2025-04-04 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833589', 'tblTempVendorCDR_20' ) start [2025-04-04 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833589', 'tblTempVendorCDR_20' ) end [2025-04-04 14:54:21] Production.INFO: ProcessCDR(1,14833589,1,1,2) [2025-04-04 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833589', 'tblTempUsageDetail_20' ) start [2025-04-04 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833589', 'tblTempUsageDetail_20' ) end [2025-04-04 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:54:27] Production.INFO: ==23399== Releasing lock... [2025-04-04 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:54:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:55:06 [end_date_ymd] => 2025-04-04 14:55:06 [RateCDR] => 1 ) [2025-04-04 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-04 11:55:06' and `end` < '2025-04-04 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-04 14:55:20] Production.INFO: count ==5159 [2025-04-04 14:55:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:55:06 - End Time 2025-04-04 14:55:06 [2025-04-04 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833594', 'tblTempUsageDetail_20' ) start [2025-04-04 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833594', 'tblTempUsageDetail_20' ) end [2025-04-04 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833594', 'tblTempVendorCDR_20' ) start [2025-04-04 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833594', 'tblTempVendorCDR_20' ) end [2025-04-04 14:55:23] Production.INFO: ProcessCDR(1,14833594,1,1,2) [2025-04-04 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833594', 'tblTempUsageDetail_20' ) start [2025-04-04 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833594', 'tblTempUsageDetail_20' ) end [2025-04-04 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:55:29] Production.INFO: ==23475== Releasing lock... [2025-04-04 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:55:29] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:56:05 [end_date_ymd] => 2025-04-04 14:56:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:56:05' and `end` < '2025-04-04 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-04 14:56:19] Production.INFO: count ==5158 [2025-04-04 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-04 11:56:05 - End Time 2025-04-04 14:56:05 [2025-04-04 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833599', 'tblTempUsageDetail_20' ) start [2025-04-04 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833599', 'tblTempUsageDetail_20' ) end [2025-04-04 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833599', 'tblTempVendorCDR_20' ) start [2025-04-04 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833599', 'tblTempVendorCDR_20' ) end [2025-04-04 14:56:21] Production.INFO: ProcessCDR(1,14833599,1,1,2) [2025-04-04 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833599', 'tblTempUsageDetail_20' ) start [2025-04-04 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833599', 'tblTempUsageDetail_20' ) end [2025-04-04 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:56:26] Production.INFO: ==23553== Releasing lock... [2025-04-04 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:56:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:57:06 [end_date_ymd] => 2025-04-04 14:57:06 [RateCDR] => 1 ) [2025-04-04 14: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-04 11:57:06' and `end` < '2025-04-04 14: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-04 14:57:19] Production.INFO: count ==5147 [2025-04-04 14:57:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:57:06 - End Time 2025-04-04 14:57:06 [2025-04-04 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833604', 'tblTempUsageDetail_20' ) start [2025-04-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833604', 'tblTempUsageDetail_20' ) end [2025-04-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833604', 'tblTempVendorCDR_20' ) start [2025-04-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833604', 'tblTempVendorCDR_20' ) end [2025-04-04 14:57:22] Production.INFO: ProcessCDR(1,14833604,1,1,2) [2025-04-04 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833604', 'tblTempUsageDetail_20' ) start [2025-04-04 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833604', 'tblTempUsageDetail_20' ) end [2025-04-04 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:57:27] Production.INFO: ==23670== Releasing lock... [2025-04-04 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:57:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:58:05 [end_date_ymd] => 2025-04-04 14:58:05 [RateCDR] => 1 ) [2025-04-04 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-04 11:58:05' and `end` < '2025-04-04 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-04 14:58:19] Production.INFO: count ==5134 [2025-04-04 14:58:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:58:05 - End Time 2025-04-04 14:58:05 [2025-04-04 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833609', 'tblTempUsageDetail_20' ) start [2025-04-04 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833609', 'tblTempUsageDetail_20' ) end [2025-04-04 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833609', 'tblTempVendorCDR_20' ) start [2025-04-04 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833609', 'tblTempVendorCDR_20' ) end [2025-04-04 14:58:22] Production.INFO: ProcessCDR(1,14833609,1,1,2) [2025-04-04 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833609', 'tblTempUsageDetail_20' ) start [2025-04-04 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833609', 'tblTempUsageDetail_20' ) end [2025-04-04 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:58:27] Production.INFO: ==23745== Releasing lock... [2025-04-04 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:58:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 11:59:06 [end_date_ymd] => 2025-04-04 14:59:06 [RateCDR] => 1 ) [2025-04-04 14: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-04 11:59:06' and `end` < '2025-04-04 14: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-04 14:59:20] Production.INFO: count ==5132 [2025-04-04 14:59:22] Production.ERROR: pbx CDR StartTime 2025-04-04 11:59:06 - End Time 2025-04-04 14:59:06 [2025-04-04 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833614', 'tblTempUsageDetail_20' ) start [2025-04-04 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833614', 'tblTempUsageDetail_20' ) end [2025-04-04 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833614', 'tblTempVendorCDR_20' ) start [2025-04-04 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833614', 'tblTempVendorCDR_20' ) end [2025-04-04 14:59:23] Production.INFO: ProcessCDR(1,14833614,1,1,2) [2025-04-04 14:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833614', 'tblTempUsageDetail_20' ) start [2025-04-04 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833614', 'tblTempUsageDetail_20' ) end [2025-04-04 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 14:59:28] Production.INFO: ==23820== Releasing lock... [2025-04-04 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 14:59:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:00:06 [end_date_ymd] => 2025-04-04 15:00:06 [RateCDR] => 1 ) [2025-04-04 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:00:06' and `end` < '2025-04-04 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:00:19] Production.INFO: count ==5129 [2025-04-04 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:00:06 - End Time 2025-04-04 15:00:06 [2025-04-04 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833620', 'tblTempUsageDetail_20' ) start [2025-04-04 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833620', 'tblTempUsageDetail_20' ) end [2025-04-04 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833620', 'tblTempVendorCDR_20' ) start [2025-04-04 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833620', 'tblTempVendorCDR_20' ) end [2025-04-04 15:00:22] Production.INFO: ProcessCDR(1,14833620,1,1,2) [2025-04-04 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833620', 'tblTempUsageDetail_20' ) start [2025-04-04 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833620', 'tblTempUsageDetail_20' ) end [2025-04-04 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:00:27] Production.INFO: ==23903== Releasing lock... [2025-04-04 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:00:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:01:06 [end_date_ymd] => 2025-04-04 15:01:06 [RateCDR] => 1 ) [2025-04-04 15: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 12:01:06' and `end` < '2025-04-04 15: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-04 15:01:20] Production.INFO: count ==5098 [2025-04-04 15:01:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:01:06 - End Time 2025-04-04 15:01:06 [2025-04-04 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833625', 'tblTempUsageDetail_20' ) start [2025-04-04 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833625', 'tblTempUsageDetail_20' ) end [2025-04-04 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833625', 'tblTempVendorCDR_20' ) start [2025-04-04 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833625', 'tblTempVendorCDR_20' ) end [2025-04-04 15:01:22] Production.INFO: ProcessCDR(1,14833625,1,1,2) [2025-04-04 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833625', 'tblTempUsageDetail_20' ) start [2025-04-04 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833625', 'tblTempUsageDetail_20' ) end [2025-04-04 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:01:28] Production.INFO: ==23996== Releasing lock... [2025-04-04 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:01:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:02:05 [end_date_ymd] => 2025-04-04 15:02:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:02:05' and `end` < '2025-04-04 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-04 15:02:19] Production.INFO: count ==5098 [2025-04-04 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:02:05 - End Time 2025-04-04 15:02:05 [2025-04-04 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833630', 'tblTempUsageDetail_20' ) start [2025-04-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833630', 'tblTempUsageDetail_20' ) end [2025-04-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833630', 'tblTempVendorCDR_20' ) start [2025-04-04 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833630', 'tblTempVendorCDR_20' ) end [2025-04-04 15:02:22] Production.INFO: ProcessCDR(1,14833630,1,1,2) [2025-04-04 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833630', 'tblTempUsageDetail_20' ) start [2025-04-04 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833630', 'tblTempUsageDetail_20' ) end [2025-04-04 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:02:28] Production.INFO: ==24147== Releasing lock... [2025-04-04 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:02:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:03:06 [end_date_ymd] => 2025-04-04 15:03:06 [RateCDR] => 1 ) [2025-04-04 15: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 12:03:06' and `end` < '2025-04-04 15: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-04 15:03:20] Production.INFO: count ==5090 [2025-04-04 15:03:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:03:06 - End Time 2025-04-04 15:03:06 [2025-04-04 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833635', 'tblTempUsageDetail_20' ) start [2025-04-04 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833635', 'tblTempUsageDetail_20' ) end [2025-04-04 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833635', 'tblTempVendorCDR_20' ) start [2025-04-04 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833635', 'tblTempVendorCDR_20' ) end [2025-04-04 15:03:22] Production.INFO: ProcessCDR(1,14833635,1,1,2) [2025-04-04 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833635', 'tblTempUsageDetail_20' ) start [2025-04-04 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833635', 'tblTempUsageDetail_20' ) end [2025-04-04 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:03:27] Production.INFO: ==24223== Releasing lock... [2025-04-04 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:03:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:04:06 [end_date_ymd] => 2025-04-04 15:04:06 [RateCDR] => 1 ) [2025-04-04 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:04:06' and `end` < '2025-04-04 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:04:20] Production.INFO: count ==5075 [2025-04-04 15:04:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:04:06 - End Time 2025-04-04 15:04:06 [2025-04-04 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833640', 'tblTempUsageDetail_20' ) start [2025-04-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833640', 'tblTempUsageDetail_20' ) end [2025-04-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833640', 'tblTempVendorCDR_20' ) start [2025-04-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833640', 'tblTempVendorCDR_20' ) end [2025-04-04 15:04:22] Production.INFO: ProcessCDR(1,14833640,1,1,2) [2025-04-04 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833640', 'tblTempUsageDetail_20' ) start [2025-04-04 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833640', 'tblTempUsageDetail_20' ) end [2025-04-04 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:04:28] Production.INFO: ==24305== Releasing lock... [2025-04-04 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:04:28] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:05:05 [end_date_ymd] => 2025-04-04 15:05:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:05:05' and `end` < '2025-04-04 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-04 15:05:19] Production.INFO: count ==5042 [2025-04-04 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:05:05 - End Time 2025-04-04 15:05:05 [2025-04-04 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833645', 'tblTempUsageDetail_20' ) start [2025-04-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833645', 'tblTempUsageDetail_20' ) end [2025-04-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833645', 'tblTempVendorCDR_20' ) start [2025-04-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833645', 'tblTempVendorCDR_20' ) end [2025-04-04 15:05:21] Production.INFO: ProcessCDR(1,14833645,1,1,2) [2025-04-04 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833645', 'tblTempUsageDetail_20' ) start [2025-04-04 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833645', 'tblTempUsageDetail_20' ) end [2025-04-04 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:05:26] Production.INFO: ==24455== Releasing lock... [2025-04-04 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:05:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:06:05 [end_date_ymd] => 2025-04-04 15:06:05 [RateCDR] => 1 ) [2025-04-04 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:06:05' and `end` < '2025-04-04 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:06:19] Production.INFO: count ==5039 [2025-04-04 15:06:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:06:05 - End Time 2025-04-04 15:06:05 [2025-04-04 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833650', 'tblTempUsageDetail_20' ) start [2025-04-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833650', 'tblTempUsageDetail_20' ) end [2025-04-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833650', 'tblTempVendorCDR_20' ) start [2025-04-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833650', 'tblTempVendorCDR_20' ) end [2025-04-04 15:06:21] Production.INFO: ProcessCDR(1,14833650,1,1,2) [2025-04-04 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833650', 'tblTempUsageDetail_20' ) start [2025-04-04 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833650', 'tblTempUsageDetail_20' ) end [2025-04-04 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:06:27] Production.INFO: ==24534== Releasing lock... [2025-04-04 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:06:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:07:06 [end_date_ymd] => 2025-04-04 15:07:06 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:07:06' and `end` < '2025-04-04 15: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-04 15:07:20] Production.INFO: count ==5043 [2025-04-04 15:07:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:07:06 - End Time 2025-04-04 15:07:06 [2025-04-04 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833655', 'tblTempUsageDetail_20' ) start [2025-04-04 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833655', 'tblTempUsageDetail_20' ) end [2025-04-04 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833655', 'tblTempVendorCDR_20' ) start [2025-04-04 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833655', 'tblTempVendorCDR_20' ) end [2025-04-04 15:07:22] Production.INFO: ProcessCDR(1,14833655,1,1,2) [2025-04-04 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833655', 'tblTempUsageDetail_20' ) start [2025-04-04 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833655', 'tblTempUsageDetail_20' ) end [2025-04-04 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:07:27] Production.INFO: ==24614== Releasing lock... [2025-04-04 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:07:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:08:05 [end_date_ymd] => 2025-04-04 15:08:05 [RateCDR] => 1 ) [2025-04-04 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:08:05' and `end` < '2025-04-04 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:08:19] Production.INFO: count ==5056 [2025-04-04 15:08:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:08:05 - End Time 2025-04-04 15:08:05 [2025-04-04 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833660', 'tblTempUsageDetail_20' ) start [2025-04-04 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833660', 'tblTempUsageDetail_20' ) end [2025-04-04 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833660', 'tblTempVendorCDR_20' ) start [2025-04-04 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833660', 'tblTempVendorCDR_20' ) end [2025-04-04 15:08:21] Production.INFO: ProcessCDR(1,14833660,1,1,2) [2025-04-04 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833660', 'tblTempUsageDetail_20' ) start [2025-04-04 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833660', 'tblTempUsageDetail_20' ) end [2025-04-04 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:08:27] Production.INFO: ==24773== Releasing lock... [2025-04-04 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:08:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:09:06 [end_date_ymd] => 2025-04-04 15:09:06 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:09:06' and `end` < '2025-04-04 15: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-04 15:09:20] Production.INFO: count ==5046 [2025-04-04 15:09:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:09:06 - End Time 2025-04-04 15:09:06 [2025-04-04 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833665', 'tblTempUsageDetail_20' ) start [2025-04-04 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833665', 'tblTempUsageDetail_20' ) end [2025-04-04 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833665', 'tblTempVendorCDR_20' ) start [2025-04-04 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833665', 'tblTempVendorCDR_20' ) end [2025-04-04 15:09:22] Production.INFO: ProcessCDR(1,14833665,1,1,2) [2025-04-04 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833665', 'tblTempUsageDetail_20' ) start [2025-04-04 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833665', 'tblTempUsageDetail_20' ) end [2025-04-04 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:09:27] Production.INFO: ==24850== Releasing lock... [2025-04-04 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:09:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:10:06 [end_date_ymd] => 2025-04-04 15:10:06 [RateCDR] => 1 ) [2025-04-04 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:10:06' and `end` < '2025-04-04 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:10:20] Production.INFO: count ==5052 [2025-04-04 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:10:06 - End Time 2025-04-04 15:10:06 [2025-04-04 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833671', 'tblTempUsageDetail_20' ) start [2025-04-04 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833671', 'tblTempUsageDetail_20' ) end [2025-04-04 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833671', 'tblTempVendorCDR_20' ) start [2025-04-04 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833671', 'tblTempVendorCDR_20' ) end [2025-04-04 15:10:22] Production.INFO: ProcessCDR(1,14833671,1,1,2) [2025-04-04 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833671', 'tblTempUsageDetail_20' ) start [2025-04-04 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833671', 'tblTempUsageDetail_20' ) end [2025-04-04 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:10:28] Production.INFO: ==24950== Releasing lock... [2025-04-04 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:10:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:11:05 [end_date_ymd] => 2025-04-04 15:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:11:05' and `end` < '2025-04-04 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-04 15:11:19] Production.INFO: count ==5085 [2025-04-04 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:11:05 - End Time 2025-04-04 15:11:05 [2025-04-04 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833676', 'tblTempUsageDetail_20' ) start [2025-04-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833676', 'tblTempUsageDetail_20' ) end [2025-04-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833676', 'tblTempVendorCDR_20' ) start [2025-04-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833676', 'tblTempVendorCDR_20' ) end [2025-04-04 15:11:21] Production.INFO: ProcessCDR(1,14833676,1,1,2) [2025-04-04 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833676', 'tblTempUsageDetail_20' ) start [2025-04-04 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833676', 'tblTempUsageDetail_20' ) end [2025-04-04 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:11:26] Production.INFO: ==25030== Releasing lock... [2025-04-04 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:11:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:12:06 [end_date_ymd] => 2025-04-04 15:12:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:12:06' and `end` < '2025-04-04 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-04 15:12:20] Production.INFO: count ==5085 [2025-04-04 15:12:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:12:06 - End Time 2025-04-04 15:12:06 [2025-04-04 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833681', 'tblTempUsageDetail_20' ) start [2025-04-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833681', 'tblTempUsageDetail_20' ) end [2025-04-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833681', 'tblTempVendorCDR_20' ) start [2025-04-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833681', 'tblTempVendorCDR_20' ) end [2025-04-04 15:12:22] Production.INFO: ProcessCDR(1,14833681,1,1,2) [2025-04-04 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833681', 'tblTempUsageDetail_20' ) start [2025-04-04 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833681', 'tblTempUsageDetail_20' ) end [2025-04-04 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:12:28] Production.INFO: ==25187== Releasing lock... [2025-04-04 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:12:28] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:13:05 [end_date_ymd] => 2025-04-04 15:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:13:05' and `end` < '2025-04-04 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-04 15:13:19] Production.INFO: count ==5068 [2025-04-04 15:13:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:13:05 - End Time 2025-04-04 15:13:05 [2025-04-04 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833686', 'tblTempUsageDetail_20' ) start [2025-04-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833686', 'tblTempUsageDetail_20' ) end [2025-04-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833686', 'tblTempVendorCDR_20' ) start [2025-04-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833686', 'tblTempVendorCDR_20' ) end [2025-04-04 15:13:21] Production.INFO: ProcessCDR(1,14833686,1,1,2) [2025-04-04 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833686', 'tblTempUsageDetail_20' ) start [2025-04-04 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833686', 'tblTempUsageDetail_20' ) end [2025-04-04 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:13:26] Production.INFO: ==25297== Releasing lock... [2025-04-04 15:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:13:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:14:05 [end_date_ymd] => 2025-04-04 15:14:05 [RateCDR] => 1 ) [2025-04-04 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:14:05' and `end` < '2025-04-04 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:14:20] Production.INFO: count ==5061 [2025-04-04 15:14:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:14:05 - End Time 2025-04-04 15:14:05 [2025-04-04 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833691', 'tblTempUsageDetail_20' ) start [2025-04-04 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833691', 'tblTempUsageDetail_20' ) end [2025-04-04 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833691', 'tblTempVendorCDR_20' ) start [2025-04-04 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833691', 'tblTempVendorCDR_20' ) end [2025-04-04 15:14:22] Production.INFO: ProcessCDR(1,14833691,1,1,2) [2025-04-04 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833691', 'tblTempUsageDetail_20' ) start [2025-04-04 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833691', 'tblTempUsageDetail_20' ) end [2025-04-04 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:14:27] Production.INFO: ==25374== Releasing lock... [2025-04-04 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:14:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:15:06 [end_date_ymd] => 2025-04-04 15:15:06 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:15:06' and `end` < '2025-04-04 15: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-04 15:15:20] Production.INFO: count ==5073 [2025-04-04 15:15:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:15:06 - End Time 2025-04-04 15:15:06 [2025-04-04 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833696', 'tblTempUsageDetail_20' ) start [2025-04-04 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833696', 'tblTempUsageDetail_20' ) end [2025-04-04 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833696', 'tblTempVendorCDR_20' ) start [2025-04-04 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833696', 'tblTempVendorCDR_20' ) end [2025-04-04 15:15:22] Production.INFO: ProcessCDR(1,14833696,1,1,2) [2025-04-04 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833696', 'tblTempUsageDetail_20' ) start [2025-04-04 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833696', 'tblTempUsageDetail_20' ) end [2025-04-04 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:15:28] Production.INFO: ==25529== Releasing lock... [2025-04-04 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:15:28] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:16:05 [end_date_ymd] => 2025-04-04 15:16:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:16:05' and `end` < '2025-04-04 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-04 15:16:19] Production.INFO: count ==5050 [2025-04-04 15:16:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:16:05 - End Time 2025-04-04 15:16:05 [2025-04-04 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833701', 'tblTempUsageDetail_20' ) start [2025-04-04 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833701', 'tblTempUsageDetail_20' ) end [2025-04-04 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833701', 'tblTempVendorCDR_20' ) start [2025-04-04 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833701', 'tblTempVendorCDR_20' ) end [2025-04-04 15:16:21] Production.INFO: ProcessCDR(1,14833701,1,1,2) [2025-04-04 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833701', 'tblTempUsageDetail_20' ) start [2025-04-04 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833701', 'tblTempUsageDetail_20' ) end [2025-04-04 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:16:26] Production.INFO: ==25602== Releasing lock... [2025-04-04 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:16:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:17:05 [end_date_ymd] => 2025-04-04 15:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:17:05' and `end` < '2025-04-04 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-04 15:17:19] Production.INFO: count ==5059 [2025-04-04 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:17:05 - End Time 2025-04-04 15:17:05 [2025-04-04 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833706', 'tblTempUsageDetail_20' ) start [2025-04-04 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833706', 'tblTempUsageDetail_20' ) end [2025-04-04 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833706', 'tblTempVendorCDR_20' ) start [2025-04-04 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833706', 'tblTempVendorCDR_20' ) end [2025-04-04 15:17:21] Production.INFO: ProcessCDR(1,14833706,1,1,2) [2025-04-04 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833706', 'tblTempUsageDetail_20' ) start [2025-04-04 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833706', 'tblTempUsageDetail_20' ) end [2025-04-04 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:17:27] Production.INFO: ==25678== Releasing lock... [2025-04-04 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:17:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:18:05 [end_date_ymd] => 2025-04-04 15:18:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:18:05' and `end` < '2025-04-04 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-04 15:18:19] Production.INFO: count ==5069 [2025-04-04 15:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:18:05 - End Time 2025-04-04 15:18:05 [2025-04-04 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833711', 'tblTempUsageDetail_20' ) start [2025-04-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833711', 'tblTempUsageDetail_20' ) end [2025-04-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833711', 'tblTempVendorCDR_20' ) start [2025-04-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833711', 'tblTempVendorCDR_20' ) end [2025-04-04 15:18:21] Production.INFO: ProcessCDR(1,14833711,1,1,2) [2025-04-04 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833711', 'tblTempUsageDetail_20' ) start [2025-04-04 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833711', 'tblTempUsageDetail_20' ) end [2025-04-04 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:18:27] Production.INFO: ==25755== Releasing lock... [2025-04-04 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:18:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:19:06 [end_date_ymd] => 2025-04-04 15:19:06 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:19:06' and `end` < '2025-04-04 15: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-04 15:19:20] Production.INFO: count ==5066 [2025-04-04 15:19:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:19:06 - End Time 2025-04-04 15:19:06 [2025-04-04 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833716', 'tblTempUsageDetail_20' ) start [2025-04-04 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833716', 'tblTempUsageDetail_20' ) end [2025-04-04 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833716', 'tblTempVendorCDR_20' ) start [2025-04-04 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833716', 'tblTempVendorCDR_20' ) end [2025-04-04 15:19:22] Production.INFO: ProcessCDR(1,14833716,1,1,2) [2025-04-04 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833716', 'tblTempUsageDetail_20' ) start [2025-04-04 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833716', 'tblTempUsageDetail_20' ) end [2025-04-04 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:19:28] Production.INFO: ==25857== Releasing lock... [2025-04-04 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:19:28] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:20:05 [end_date_ymd] => 2025-04-04 15:20:05 [RateCDR] => 1 ) [2025-04-04 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:20:05' and `end` < '2025-04-04 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:20:20] Production.INFO: count ==5076 [2025-04-04 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:20:05 - End Time 2025-04-04 15:20:05 [2025-04-04 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833722', 'tblTempUsageDetail_20' ) start [2025-04-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833722', 'tblTempUsageDetail_20' ) end [2025-04-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833722', 'tblTempVendorCDR_20' ) start [2025-04-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833722', 'tblTempVendorCDR_20' ) end [2025-04-04 15:20:22] Production.INFO: ProcessCDR(1,14833722,1,1,2) [2025-04-04 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833722', 'tblTempUsageDetail_20' ) start [2025-04-04 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833722', 'tblTempUsageDetail_20' ) end [2025-04-04 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:20:27] Production.INFO: ==25932== Releasing lock... [2025-04-04 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:20:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:21:06 [end_date_ymd] => 2025-04-04 15:21:06 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:21:06' and `end` < '2025-04-04 15: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-04 15:21:19] Production.INFO: count ==5123 [2025-04-04 15:21:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:21:06 - End Time 2025-04-04 15:21:06 [2025-04-04 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833727', 'tblTempUsageDetail_20' ) start [2025-04-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833727', 'tblTempUsageDetail_20' ) end [2025-04-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833727', 'tblTempVendorCDR_20' ) start [2025-04-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833727', 'tblTempVendorCDR_20' ) end [2025-04-04 15:21:22] Production.INFO: ProcessCDR(1,14833727,1,1,2) [2025-04-04 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833727', 'tblTempUsageDetail_20' ) start [2025-04-04 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833727', 'tblTempUsageDetail_20' ) end [2025-04-04 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:21:27] Production.INFO: ==26012== Releasing lock... [2025-04-04 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:21:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:22:05 [end_date_ymd] => 2025-04-04 15:22:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:22:05' and `end` < '2025-04-04 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-04 15:22:19] Production.INFO: count ==5128 [2025-04-04 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:22:05 - End Time 2025-04-04 15:22:05 [2025-04-04 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833732', 'tblTempUsageDetail_20' ) start [2025-04-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833732', 'tblTempUsageDetail_20' ) end [2025-04-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833732', 'tblTempVendorCDR_20' ) start [2025-04-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833732', 'tblTempVendorCDR_20' ) end [2025-04-04 15:22:21] Production.INFO: ProcessCDR(1,14833732,1,1,2) [2025-04-04 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833732', 'tblTempUsageDetail_20' ) start [2025-04-04 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833732', 'tblTempUsageDetail_20' ) end [2025-04-04 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:22:26] Production.INFO: ==26087== Releasing lock... [2025-04-04 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:22:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:23:05 [end_date_ymd] => 2025-04-04 15:23:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:23:05' and `end` < '2025-04-04 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-04 15:23:19] Production.INFO: count ==5139 [2025-04-04 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:23:05 - End Time 2025-04-04 15:23:05 [2025-04-04 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833737', 'tblTempUsageDetail_20' ) start [2025-04-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833737', 'tblTempUsageDetail_20' ) end [2025-04-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833737', 'tblTempVendorCDR_20' ) start [2025-04-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833737', 'tblTempVendorCDR_20' ) end [2025-04-04 15:23:21] Production.INFO: ProcessCDR(1,14833737,1,1,2) [2025-04-04 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833737', 'tblTempUsageDetail_20' ) start [2025-04-04 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833737', 'tblTempUsageDetail_20' ) end [2025-04-04 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:23:26] Production.INFO: ==26164== Releasing lock... [2025-04-04 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:23:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:24:05 [end_date_ymd] => 2025-04-04 15:24:05 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:24:05' and `end` < '2025-04-04 15: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-04 15:24:19] Production.INFO: count ==5136 [2025-04-04 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:24:05 - End Time 2025-04-04 15:24:05 [2025-04-04 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833742', 'tblTempUsageDetail_20' ) start [2025-04-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833742', 'tblTempUsageDetail_20' ) end [2025-04-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833742', 'tblTempVendorCDR_20' ) start [2025-04-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833742', 'tblTempVendorCDR_20' ) end [2025-04-04 15:24:21] Production.INFO: ProcessCDR(1,14833742,1,1,2) [2025-04-04 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833742', 'tblTempUsageDetail_20' ) start [2025-04-04 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833742', 'tblTempUsageDetail_20' ) end [2025-04-04 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:24:26] Production.INFO: ==26241== Releasing lock... [2025-04-04 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:24:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:25:06 [end_date_ymd] => 2025-04-04 15:25:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:25:06' and `end` < '2025-04-04 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-04 15:25:20] Production.INFO: count ==5145 [2025-04-04 15:25:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:25:06 - End Time 2025-04-04 15:25:06 [2025-04-04 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833747', 'tblTempUsageDetail_20' ) start [2025-04-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833747', 'tblTempUsageDetail_20' ) end [2025-04-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833747', 'tblTempVendorCDR_20' ) start [2025-04-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833747', 'tblTempVendorCDR_20' ) end [2025-04-04 15:25:22] Production.INFO: ProcessCDR(1,14833747,1,1,2) [2025-04-04 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833747', 'tblTempUsageDetail_20' ) start [2025-04-04 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833747', 'tblTempUsageDetail_20' ) end [2025-04-04 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:25:28] Production.INFO: ==26325== Releasing lock... [2025-04-04 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:25:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:26:05 [end_date_ymd] => 2025-04-04 15:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:26:05' and `end` < '2025-04-04 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-04 15:26:19] Production.INFO: count ==5155 [2025-04-04 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:26:05 - End Time 2025-04-04 15:26:05 [2025-04-04 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833752', 'tblTempUsageDetail_20' ) start [2025-04-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833752', 'tblTempUsageDetail_20' ) end [2025-04-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833752', 'tblTempVendorCDR_20' ) start [2025-04-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833752', 'tblTempVendorCDR_20' ) end [2025-04-04 15:26:21] Production.INFO: ProcessCDR(1,14833752,1,1,2) [2025-04-04 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833752', 'tblTempUsageDetail_20' ) start [2025-04-04 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833752', 'tblTempUsageDetail_20' ) end [2025-04-04 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:26:27] Production.INFO: ==26403== Releasing lock... [2025-04-04 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:26:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:27:06 [end_date_ymd] => 2025-04-04 15:27:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:27:06' and `end` < '2025-04-04 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-04 15:27:20] Production.INFO: count ==5165 [2025-04-04 15:27:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:27:06 - End Time 2025-04-04 15:27:06 [2025-04-04 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833757', 'tblTempUsageDetail_20' ) start [2025-04-04 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833757', 'tblTempUsageDetail_20' ) end [2025-04-04 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833757', 'tblTempVendorCDR_20' ) start [2025-04-04 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833757', 'tblTempVendorCDR_20' ) end [2025-04-04 15:27:22] Production.INFO: ProcessCDR(1,14833757,1,1,2) [2025-04-04 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833757', 'tblTempUsageDetail_20' ) start [2025-04-04 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833757', 'tblTempUsageDetail_20' ) end [2025-04-04 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:27:27] Production.INFO: ==26477== Releasing lock... [2025-04-04 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:27:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:28:05 [end_date_ymd] => 2025-04-04 15:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:28:05' and `end` < '2025-04-04 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-04 15:28:19] Production.INFO: count ==5167 [2025-04-04 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:28:05 - End Time 2025-04-04 15:28:05 [2025-04-04 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833762', 'tblTempUsageDetail_20' ) start [2025-04-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833762', 'tblTempUsageDetail_20' ) end [2025-04-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833762', 'tblTempVendorCDR_20' ) start [2025-04-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833762', 'tblTempVendorCDR_20' ) end [2025-04-04 15:28:21] Production.INFO: ProcessCDR(1,14833762,1,1,2) [2025-04-04 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833762', 'tblTempUsageDetail_20' ) start [2025-04-04 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833762', 'tblTempUsageDetail_20' ) end [2025-04-04 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:28:26] Production.INFO: ==26588== Releasing lock... [2025-04-04 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:28:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:29:05 [end_date_ymd] => 2025-04-04 15:29:05 [RateCDR] => 1 ) [2025-04-04 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:29:05' and `end` < '2025-04-04 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:29:18] Production.INFO: count ==5166 [2025-04-04 15:29:20] Production.ERROR: pbx CDR StartTime 2025-04-04 12:29:05 - End Time 2025-04-04 15:29:05 [2025-04-04 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833767', 'tblTempUsageDetail_20' ) start [2025-04-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833767', 'tblTempUsageDetail_20' ) end [2025-04-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833767', 'tblTempVendorCDR_20' ) start [2025-04-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833767', 'tblTempVendorCDR_20' ) end [2025-04-04 15:29:21] Production.INFO: ProcessCDR(1,14833767,1,1,2) [2025-04-04 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833767', 'tblTempUsageDetail_20' ) start [2025-04-04 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833767', 'tblTempUsageDetail_20' ) end [2025-04-04 15:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:29:25] Production.INFO: ==26669== Releasing lock... [2025-04-04 15:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:29:25] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:30:06 [end_date_ymd] => 2025-04-04 15:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:30:06' and `end` < '2025-04-04 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-04 15:30:20] Production.INFO: count ==5167 [2025-04-04 15:30:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:30:06 - End Time 2025-04-04 15:30:06 [2025-04-04 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833772', 'tblTempUsageDetail_20' ) start [2025-04-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833772', 'tblTempUsageDetail_20' ) end [2025-04-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833772', 'tblTempVendorCDR_20' ) start [2025-04-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833772', 'tblTempVendorCDR_20' ) end [2025-04-04 15:30:22] Production.INFO: ProcessCDR(1,14833772,1,1,2) [2025-04-04 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833772', 'tblTempUsageDetail_20' ) start [2025-04-04 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833772', 'tblTempUsageDetail_20' ) end [2025-04-04 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:30:27] Production.INFO: ==26745== Releasing lock... [2025-04-04 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:30:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:31:05 [end_date_ymd] => 2025-04-04 15:31:05 [RateCDR] => 1 ) [2025-04-04 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:31:05' and `end` < '2025-04-04 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:31:19] Production.INFO: count ==5187 [2025-04-04 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:31:05 - End Time 2025-04-04 15:31:05 [2025-04-04 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833778', 'tblTempUsageDetail_20' ) start [2025-04-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833778', 'tblTempUsageDetail_20' ) end [2025-04-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833778', 'tblTempVendorCDR_20' ) start [2025-04-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833778', 'tblTempVendorCDR_20' ) end [2025-04-04 15:31:21] Production.INFO: ProcessCDR(1,14833778,1,1,2) [2025-04-04 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833778', 'tblTempUsageDetail_20' ) start [2025-04-04 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833778', 'tblTempUsageDetail_20' ) end [2025-04-04 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:31:26] Production.INFO: ==26825== Releasing lock... [2025-04-04 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:31:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:32:04 [end_date_ymd] => 2025-04-04 15:32:04 [RateCDR] => 1 ) [2025-04-04 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:32:04' and `end` < '2025-04-04 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:32:18] Production.INFO: count ==5169 [2025-04-04 15:32:20] Production.ERROR: pbx CDR StartTime 2025-04-04 12:32:04 - End Time 2025-04-04 15:32:04 [2025-04-04 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833783', 'tblTempUsageDetail_20' ) start [2025-04-04 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833783', 'tblTempUsageDetail_20' ) end [2025-04-04 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833783', 'tblTempVendorCDR_20' ) start [2025-04-04 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833783', 'tblTempVendorCDR_20' ) end [2025-04-04 15:32:20] Production.INFO: ProcessCDR(1,14833783,1,1,2) [2025-04-04 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833783', 'tblTempUsageDetail_20' ) start [2025-04-04 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833783', 'tblTempUsageDetail_20' ) end [2025-04-04 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:32:26] Production.INFO: ==26904== Releasing lock... [2025-04-04 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:32:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:33:05 [end_date_ymd] => 2025-04-04 15:33:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:33:05' and `end` < '2025-04-04 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-04 15:33:19] Production.INFO: count ==5181 [2025-04-04 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:33:05 - End Time 2025-04-04 15:33:05 [2025-04-04 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833788', 'tblTempUsageDetail_20' ) start [2025-04-04 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833788', 'tblTempUsageDetail_20' ) end [2025-04-04 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833788', 'tblTempVendorCDR_20' ) start [2025-04-04 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833788', 'tblTempVendorCDR_20' ) end [2025-04-04 15:33:22] Production.INFO: ProcessCDR(1,14833788,1,1,2) [2025-04-04 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833788', 'tblTempUsageDetail_20' ) start [2025-04-04 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833788', 'tblTempUsageDetail_20' ) end [2025-04-04 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:33:27] Production.INFO: ==26981== Releasing lock... [2025-04-04 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:33:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:34:05 [end_date_ymd] => 2025-04-04 15:34:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:34:05' and `end` < '2025-04-04 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-04 15:34:19] Production.INFO: count ==5206 [2025-04-04 15:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:34:05 - End Time 2025-04-04 15:34:05 [2025-04-04 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833793', 'tblTempUsageDetail_20' ) start [2025-04-04 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833793', 'tblTempUsageDetail_20' ) end [2025-04-04 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833793', 'tblTempVendorCDR_20' ) start [2025-04-04 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833793', 'tblTempVendorCDR_20' ) end [2025-04-04 15:34:22] Production.INFO: ProcessCDR(1,14833793,1,1,2) [2025-04-04 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833793', 'tblTempUsageDetail_20' ) start [2025-04-04 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833793', 'tblTempUsageDetail_20' ) end [2025-04-04 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:34:27] Production.INFO: ==27059== Releasing lock... [2025-04-04 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:34:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:35:06 [end_date_ymd] => 2025-04-04 15:35:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:35:06' and `end` < '2025-04-04 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-04 15:35:19] Production.INFO: count ==5206 [2025-04-04 15:35:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:35:06 - End Time 2025-04-04 15:35:06 [2025-04-04 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833798', 'tblTempUsageDetail_20' ) start [2025-04-04 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833798', 'tblTempUsageDetail_20' ) end [2025-04-04 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833798', 'tblTempVendorCDR_20' ) start [2025-04-04 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833798', 'tblTempVendorCDR_20' ) end [2025-04-04 15:35:22] Production.INFO: ProcessCDR(1,14833798,1,1,2) [2025-04-04 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833798', 'tblTempUsageDetail_20' ) start [2025-04-04 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833798', 'tblTempUsageDetail_20' ) end [2025-04-04 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:35:27] Production.INFO: ==27144== Releasing lock... [2025-04-04 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:35:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:36:05 [end_date_ymd] => 2025-04-04 15:36:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:36:05' and `end` < '2025-04-04 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-04 15:36:19] Production.INFO: count ==5237 [2025-04-04 15:36:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:36:05 - End Time 2025-04-04 15:36:05 [2025-04-04 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833803', 'tblTempUsageDetail_20' ) start [2025-04-04 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833803', 'tblTempUsageDetail_20' ) end [2025-04-04 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833803', 'tblTempVendorCDR_20' ) start [2025-04-04 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833803', 'tblTempVendorCDR_20' ) end [2025-04-04 15:36:22] Production.INFO: ProcessCDR(1,14833803,1,1,2) [2025-04-04 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833803', 'tblTempUsageDetail_20' ) start [2025-04-04 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833803', 'tblTempUsageDetail_20' ) end [2025-04-04 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:36:27] Production.INFO: ==27220== Releasing lock... [2025-04-04 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:36:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:37:05 [end_date_ymd] => 2025-04-04 15:37:05 [RateCDR] => 1 ) [2025-04-04 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:37:05' and `end` < '2025-04-04 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:37:19] Production.INFO: count ==5267 [2025-04-04 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:37:05 - End Time 2025-04-04 15:37:05 [2025-04-04 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833808', 'tblTempUsageDetail_20' ) start [2025-04-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833808', 'tblTempUsageDetail_20' ) end [2025-04-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833808', 'tblTempVendorCDR_20' ) start [2025-04-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833808', 'tblTempVendorCDR_20' ) end [2025-04-04 15:37:21] Production.INFO: ProcessCDR(1,14833808,1,1,2) [2025-04-04 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833808', 'tblTempUsageDetail_20' ) start [2025-04-04 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833808', 'tblTempUsageDetail_20' ) end [2025-04-04 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:37:27] Production.INFO: ==27301== Releasing lock... [2025-04-04 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:37:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:38:05 [end_date_ymd] => 2025-04-04 15:38:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:38:05' and `end` < '2025-04-04 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-04 15:38:19] Production.INFO: count ==5273 [2025-04-04 15:38:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:38:05 - End Time 2025-04-04 15:38:05 [2025-04-04 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833813', 'tblTempUsageDetail_20' ) start [2025-04-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833813', 'tblTempUsageDetail_20' ) end [2025-04-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833813', 'tblTempVendorCDR_20' ) start [2025-04-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833813', 'tblTempVendorCDR_20' ) end [2025-04-04 15:38:21] Production.INFO: ProcessCDR(1,14833813,1,1,2) [2025-04-04 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833813', 'tblTempUsageDetail_20' ) start [2025-04-04 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833813', 'tblTempUsageDetail_20' ) end [2025-04-04 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:38:26] Production.INFO: ==27383== Releasing lock... [2025-04-04 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:38:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:39:05 [end_date_ymd] => 2025-04-04 15:39:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:39:05' and `end` < '2025-04-04 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-04 15:39:19] Production.INFO: count ==5275 [2025-04-04 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:39:05 - End Time 2025-04-04 15:39:05 [2025-04-04 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833818', 'tblTempUsageDetail_20' ) start [2025-04-04 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833818', 'tblTempUsageDetail_20' ) end [2025-04-04 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833818', 'tblTempVendorCDR_20' ) start [2025-04-04 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833818', 'tblTempVendorCDR_20' ) end [2025-04-04 15:39:21] Production.INFO: ProcessCDR(1,14833818,1,1,2) [2025-04-04 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833818', 'tblTempUsageDetail_20' ) start [2025-04-04 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833818', 'tblTempUsageDetail_20' ) end [2025-04-04 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:39:26] Production.INFO: ==27465== Releasing lock... [2025-04-04 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:39:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:40:06 [end_date_ymd] => 2025-04-04 15:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:40:06' and `end` < '2025-04-04 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-04 15:40:21] Production.INFO: count ==5289 [2025-04-04 15:40:23] Production.ERROR: pbx CDR StartTime 2025-04-04 12:40:06 - End Time 2025-04-04 15:40:06 [2025-04-04 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833823', 'tblTempUsageDetail_20' ) start [2025-04-04 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833823', 'tblTempUsageDetail_20' ) end [2025-04-04 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833823', 'tblTempVendorCDR_20' ) start [2025-04-04 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833823', 'tblTempVendorCDR_20' ) end [2025-04-04 15:40:23] Production.INFO: ProcessCDR(1,14833823,1,1,2) [2025-04-04 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833823', 'tblTempUsageDetail_20' ) start [2025-04-04 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833823', 'tblTempUsageDetail_20' ) end [2025-04-04 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:40:28] Production.INFO: ==27545== Releasing lock... [2025-04-04 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:40:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:41:06 [end_date_ymd] => 2025-04-04 15:41:06 [RateCDR] => 1 ) [2025-04-04 15: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 12:41:06' and `end` < '2025-04-04 15: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-04 15:41:20] Production.INFO: count ==5275 [2025-04-04 15:41:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:41:06 - End Time 2025-04-04 15:41:06 [2025-04-04 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833829', 'tblTempUsageDetail_20' ) start [2025-04-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833829', 'tblTempUsageDetail_20' ) end [2025-04-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833829', 'tblTempVendorCDR_20' ) start [2025-04-04 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833829', 'tblTempVendorCDR_20' ) end [2025-04-04 15:41:22] Production.INFO: ProcessCDR(1,14833829,1,1,2) [2025-04-04 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833829', 'tblTempUsageDetail_20' ) start [2025-04-04 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833829', 'tblTempUsageDetail_20' ) end [2025-04-04 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:41:27] Production.INFO: ==27619== Releasing lock... [2025-04-04 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:41:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:42:06 [end_date_ymd] => 2025-04-04 15:42:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:42:06' and `end` < '2025-04-04 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-04 15:42:20] Production.INFO: count ==5276 [2025-04-04 15:42:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:42:06 - End Time 2025-04-04 15:42:06 [2025-04-04 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833834', 'tblTempUsageDetail_20' ) start [2025-04-04 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833834', 'tblTempUsageDetail_20' ) end [2025-04-04 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833834', 'tblTempVendorCDR_20' ) start [2025-04-04 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833834', 'tblTempVendorCDR_20' ) end [2025-04-04 15:42:23] Production.INFO: ProcessCDR(1,14833834,1,1,2) [2025-04-04 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833834', 'tblTempUsageDetail_20' ) start [2025-04-04 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833834', 'tblTempUsageDetail_20' ) end [2025-04-04 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:42:27] Production.INFO: ==27701== Releasing lock... [2025-04-04 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:42:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:43:05 [end_date_ymd] => 2025-04-04 15:43:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:43:05' and `end` < '2025-04-04 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-04 15:43:19] Production.INFO: count ==5279 [2025-04-04 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:43:05 - End Time 2025-04-04 15:43:05 [2025-04-04 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833839', 'tblTempUsageDetail_20' ) start [2025-04-04 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833839', 'tblTempUsageDetail_20' ) end [2025-04-04 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833839', 'tblTempVendorCDR_20' ) start [2025-04-04 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833839', 'tblTempVendorCDR_20' ) end [2025-04-04 15:43:21] Production.INFO: ProcessCDR(1,14833839,1,1,2) [2025-04-04 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833839', 'tblTempUsageDetail_20' ) start [2025-04-04 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833839', 'tblTempUsageDetail_20' ) end [2025-04-04 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:43:26] Production.INFO: ==27779== Releasing lock... [2025-04-04 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:43:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:44:06 [end_date_ymd] => 2025-04-04 15:44:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:44:06' and `end` < '2025-04-04 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-04 15:44:20] Production.INFO: count ==5272 [2025-04-04 15:44:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:44:06 - End Time 2025-04-04 15:44:06 [2025-04-04 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833844', 'tblTempUsageDetail_20' ) start [2025-04-04 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833844', 'tblTempUsageDetail_20' ) end [2025-04-04 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833844', 'tblTempVendorCDR_20' ) start [2025-04-04 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833844', 'tblTempVendorCDR_20' ) end [2025-04-04 15:44:22] Production.INFO: ProcessCDR(1,14833844,1,1,2) [2025-04-04 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833844', 'tblTempUsageDetail_20' ) start [2025-04-04 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833844', 'tblTempUsageDetail_20' ) end [2025-04-04 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:44:27] Production.INFO: ==27895== Releasing lock... [2025-04-04 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:44:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:45:04 [end_date_ymd] => 2025-04-04 15:45:04 [RateCDR] => 1 ) [2025-04-04 15:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:45:04' and `end` < '2025-04-04 15:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:45:18] Production.INFO: count ==5276 [2025-04-04 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:45:04 - End Time 2025-04-04 15:45:04 [2025-04-04 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833849', 'tblTempUsageDetail_20' ) start [2025-04-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833849', 'tblTempUsageDetail_20' ) end [2025-04-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833849', 'tblTempVendorCDR_20' ) start [2025-04-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833849', 'tblTempVendorCDR_20' ) end [2025-04-04 15:45:21] Production.INFO: ProcessCDR(1,14833849,1,1,2) [2025-04-04 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833849', 'tblTempUsageDetail_20' ) start [2025-04-04 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833849', 'tblTempUsageDetail_20' ) end [2025-04-04 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:45:26] Production.INFO: ==27974== Releasing lock... [2025-04-04 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:45:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:46:06 [end_date_ymd] => 2025-04-04 15:46:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:46:06' and `end` < '2025-04-04 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-04 15:46:19] Production.INFO: count ==5301 [2025-04-04 15:46:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:46:06 - End Time 2025-04-04 15:46:06 [2025-04-04 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833854', 'tblTempUsageDetail_20' ) start [2025-04-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833854', 'tblTempUsageDetail_20' ) end [2025-04-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833854', 'tblTempVendorCDR_20' ) start [2025-04-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833854', 'tblTempVendorCDR_20' ) end [2025-04-04 15:46:22] Production.INFO: ProcessCDR(1,14833854,1,1,2) [2025-04-04 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833854', 'tblTempUsageDetail_20' ) start [2025-04-04 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833854', 'tblTempUsageDetail_20' ) end [2025-04-04 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:46:27] Production.INFO: ==28056== Releasing lock... [2025-04-04 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:46:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:47:05 [end_date_ymd] => 2025-04-04 15:47:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:47:05' and `end` < '2025-04-04 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-04 15:47:19] Production.INFO: count ==5310 [2025-04-04 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:47:05 - End Time 2025-04-04 15:47:05 [2025-04-04 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833859', 'tblTempUsageDetail_20' ) start [2025-04-04 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833859', 'tblTempUsageDetail_20' ) end [2025-04-04 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833859', 'tblTempVendorCDR_20' ) start [2025-04-04 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833859', 'tblTempVendorCDR_20' ) end [2025-04-04 15:47:22] Production.INFO: ProcessCDR(1,14833859,1,1,2) [2025-04-04 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833859', 'tblTempUsageDetail_20' ) start [2025-04-04 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833859', 'tblTempUsageDetail_20' ) end [2025-04-04 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:47:27] Production.INFO: ==28135== Releasing lock... [2025-04-04 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:47:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:48:06 [end_date_ymd] => 2025-04-04 15:48:06 [RateCDR] => 1 ) [2025-04-04 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:48:06' and `end` < '2025-04-04 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:48:19] Production.INFO: count ==5326 [2025-04-04 15:48:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:48:06 - End Time 2025-04-04 15:48:06 [2025-04-04 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833864', 'tblTempUsageDetail_20' ) start [2025-04-04 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833864', 'tblTempUsageDetail_20' ) end [2025-04-04 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833864', 'tblTempVendorCDR_20' ) start [2025-04-04 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833864', 'tblTempVendorCDR_20' ) end [2025-04-04 15:48:22] Production.INFO: ProcessCDR(1,14833864,1,1,2) [2025-04-04 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833864', 'tblTempUsageDetail_20' ) start [2025-04-04 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833864', 'tblTempUsageDetail_20' ) end [2025-04-04 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:48:28] Production.INFO: ==28211== Releasing lock... [2025-04-04 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:48:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:49:05 [end_date_ymd] => 2025-04-04 15:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:49:05' and `end` < '2025-04-04 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-04 15:49:19] Production.INFO: count ==5317 [2025-04-04 15:49:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:49:05 - End Time 2025-04-04 15:49:05 [2025-04-04 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833869', 'tblTempUsageDetail_20' ) start [2025-04-04 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833869', 'tblTempUsageDetail_20' ) end [2025-04-04 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833869', 'tblTempVendorCDR_20' ) start [2025-04-04 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833869', 'tblTempVendorCDR_20' ) end [2025-04-04 15:49:22] Production.INFO: ProcessCDR(1,14833869,1,1,2) [2025-04-04 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833869', 'tblTempUsageDetail_20' ) start [2025-04-04 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833869', 'tblTempUsageDetail_20' ) end [2025-04-04 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:49:27] Production.INFO: ==28290== Releasing lock... [2025-04-04 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:49:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:50:06 [end_date_ymd] => 2025-04-04 15:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:50:06' and `end` < '2025-04-04 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-04 15:50:20] Production.INFO: count ==5316 [2025-04-04 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:50:06 - End Time 2025-04-04 15:50:06 [2025-04-04 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833875', 'tblTempUsageDetail_20' ) start [2025-04-04 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833875', 'tblTempUsageDetail_20' ) end [2025-04-04 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833875', 'tblTempVendorCDR_20' ) start [2025-04-04 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833875', 'tblTempVendorCDR_20' ) end [2025-04-04 15:50:23] Production.INFO: ProcessCDR(1,14833875,1,1,2) [2025-04-04 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833875', 'tblTempUsageDetail_20' ) start [2025-04-04 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833875', 'tblTempUsageDetail_20' ) end [2025-04-04 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:50:28] Production.INFO: ==28370== Releasing lock... [2025-04-04 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:50:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:51:04 [end_date_ymd] => 2025-04-04 15:51:04 [RateCDR] => 1 ) [2025-04-04 15:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:51:04' and `end` < '2025-04-04 15:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:51:18] Production.INFO: count ==5378 [2025-04-04 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:51:04 - End Time 2025-04-04 15:51:04 [2025-04-04 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833880', 'tblTempUsageDetail_20' ) start [2025-04-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833880', 'tblTempUsageDetail_20' ) end [2025-04-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833880', 'tblTempVendorCDR_20' ) start [2025-04-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833880', 'tblTempVendorCDR_20' ) end [2025-04-04 15:51:21] Production.INFO: ProcessCDR(1,14833880,1,1,2) [2025-04-04 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833880', 'tblTempUsageDetail_20' ) start [2025-04-04 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833880', 'tblTempUsageDetail_20' ) end [2025-04-04 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:51:26] Production.INFO: ==28447== Releasing lock... [2025-04-04 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:51:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:52:06 [end_date_ymd] => 2025-04-04 15:52:06 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:52:06' and `end` < '2025-04-04 15: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-04 15:52:20] Production.INFO: count ==5399 [2025-04-04 15:52:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:52:06 - End Time 2025-04-04 15:52:06 [2025-04-04 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833885', 'tblTempUsageDetail_20' ) start [2025-04-04 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833885', 'tblTempUsageDetail_20' ) end [2025-04-04 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833885', 'tblTempVendorCDR_20' ) start [2025-04-04 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833885', 'tblTempVendorCDR_20' ) end [2025-04-04 15:52:22] Production.INFO: ProcessCDR(1,14833885,1,1,2) [2025-04-04 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833885', 'tblTempUsageDetail_20' ) start [2025-04-04 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833885', 'tblTempUsageDetail_20' ) end [2025-04-04 15:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:52:28] Production.INFO: ==28530== Releasing lock... [2025-04-04 15:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:52:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:53:05 [end_date_ymd] => 2025-04-04 15:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:53:05' and `end` < '2025-04-04 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-04 15:53:19] Production.INFO: count ==5401 [2025-04-04 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-04 12:53:05 - End Time 2025-04-04 15:53:05 [2025-04-04 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833890', 'tblTempUsageDetail_20' ) start [2025-04-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833890', 'tblTempUsageDetail_20' ) end [2025-04-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833890', 'tblTempVendorCDR_20' ) start [2025-04-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833890', 'tblTempVendorCDR_20' ) end [2025-04-04 15:53:21] Production.INFO: ProcessCDR(1,14833890,1,1,2) [2025-04-04 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833890', 'tblTempUsageDetail_20' ) start [2025-04-04 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833890', 'tblTempUsageDetail_20' ) end [2025-04-04 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:53:27] Production.INFO: ==28608== Releasing lock... [2025-04-04 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:53:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:54:06 [end_date_ymd] => 2025-04-04 15:54:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:54:06' and `end` < '2025-04-04 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-04 15:54:20] Production.INFO: count ==5400 [2025-04-04 15:54:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:54:06 - End Time 2025-04-04 15:54:06 [2025-04-04 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833895', 'tblTempUsageDetail_20' ) start [2025-04-04 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833895', 'tblTempUsageDetail_20' ) end [2025-04-04 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833895', 'tblTempVendorCDR_20' ) start [2025-04-04 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833895', 'tblTempVendorCDR_20' ) end [2025-04-04 15:54:23] Production.INFO: ProcessCDR(1,14833895,1,1,2) [2025-04-04 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833895', 'tblTempUsageDetail_20' ) start [2025-04-04 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833895', 'tblTempUsageDetail_20' ) end [2025-04-04 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:54:28] Production.INFO: ==28684== Releasing lock... [2025-04-04 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:54:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:55:06 [end_date_ymd] => 2025-04-04 15:55:06 [RateCDR] => 1 ) [2025-04-04 15: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 12:55:06' and `end` < '2025-04-04 15: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-04 15:55:20] Production.INFO: count ==5414 [2025-04-04 15:55:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:55:06 - End Time 2025-04-04 15:55:06 [2025-04-04 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833900', 'tblTempUsageDetail_20' ) start [2025-04-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833900', 'tblTempUsageDetail_20' ) end [2025-04-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833900', 'tblTempVendorCDR_20' ) start [2025-04-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833900', 'tblTempVendorCDR_20' ) end [2025-04-04 15:55:22] Production.INFO: ProcessCDR(1,14833900,1,1,2) [2025-04-04 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833900', 'tblTempUsageDetail_20' ) start [2025-04-04 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833900', 'tblTempUsageDetail_20' ) end [2025-04-04 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:55:27] Production.INFO: ==28763== Releasing lock... [2025-04-04 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:55:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:56:06 [end_date_ymd] => 2025-04-04 15:56:06 [RateCDR] => 1 ) [2025-04-04 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-04 12:56:06' and `end` < '2025-04-04 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-04 15:56:20] Production.INFO: count ==5428 [2025-04-04 15:56:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:56:06 - End Time 2025-04-04 15:56:06 [2025-04-04 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833905', 'tblTempUsageDetail_20' ) start [2025-04-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833905', 'tblTempUsageDetail_20' ) end [2025-04-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833905', 'tblTempVendorCDR_20' ) start [2025-04-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833905', 'tblTempVendorCDR_20' ) end [2025-04-04 15:56:22] Production.INFO: ProcessCDR(1,14833905,1,1,2) [2025-04-04 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833905', 'tblTempUsageDetail_20' ) start [2025-04-04 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833905', 'tblTempUsageDetail_20' ) end [2025-04-04 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:56:28] Production.INFO: ==28843== Releasing lock... [2025-04-04 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:56:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:57:06 [end_date_ymd] => 2025-04-04 15:57:06 [RateCDR] => 1 ) [2025-04-04 15: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-04 12:57:06' and `end` < '2025-04-04 15: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-04 15:57:19] Production.INFO: count ==5425 [2025-04-04 15:57:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:57:06 - End Time 2025-04-04 15:57:06 [2025-04-04 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833910', 'tblTempUsageDetail_20' ) start [2025-04-04 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833910', 'tblTempUsageDetail_20' ) end [2025-04-04 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833910', 'tblTempVendorCDR_20' ) start [2025-04-04 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833910', 'tblTempVendorCDR_20' ) end [2025-04-04 15:57:22] Production.INFO: ProcessCDR(1,14833910,1,1,2) [2025-04-04 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833910', 'tblTempUsageDetail_20' ) start [2025-04-04 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833910', 'tblTempUsageDetail_20' ) end [2025-04-04 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:57:27] Production.INFO: ==28922== Releasing lock... [2025-04-04 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:57:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:58:06 [end_date_ymd] => 2025-04-04 15:58:06 [RateCDR] => 1 ) [2025-04-04 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 12:58:06' and `end` < '2025-04-04 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 15:58:19] Production.INFO: count ==5455 [2025-04-04 15:58:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:58:06 - End Time 2025-04-04 15:58:06 [2025-04-04 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833915', 'tblTempUsageDetail_20' ) start [2025-04-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833915', 'tblTempUsageDetail_20' ) end [2025-04-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833915', 'tblTempVendorCDR_20' ) start [2025-04-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833915', 'tblTempVendorCDR_20' ) end [2025-04-04 15:58:22] Production.INFO: ProcessCDR(1,14833915,1,1,2) [2025-04-04 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833915', 'tblTempUsageDetail_20' ) start [2025-04-04 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833915', 'tblTempUsageDetail_20' ) end [2025-04-04 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:58:27] Production.INFO: ==28998== Releasing lock... [2025-04-04 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:58:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 12:59:05 [end_date_ymd] => 2025-04-04 15:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 12:59:05' and `end` < '2025-04-04 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-04 15:59:19] Production.INFO: count ==5478 [2025-04-04 15:59:22] Production.ERROR: pbx CDR StartTime 2025-04-04 12:59:05 - End Time 2025-04-04 15:59:05 [2025-04-04 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833920', 'tblTempUsageDetail_20' ) start [2025-04-04 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833920', 'tblTempUsageDetail_20' ) end [2025-04-04 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833920', 'tblTempVendorCDR_20' ) start [2025-04-04 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833920', 'tblTempVendorCDR_20' ) end [2025-04-04 15:59:22] Production.INFO: ProcessCDR(1,14833920,1,1,2) [2025-04-04 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833920', 'tblTempUsageDetail_20' ) start [2025-04-04 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833920', 'tblTempUsageDetail_20' ) end [2025-04-04 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 15:59:27] Production.INFO: ==29113== Releasing lock... [2025-04-04 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 15:59:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:00:07 [end_date_ymd] => 2025-04-04 16:00:07 [RateCDR] => 1 ) [2025-04-04 16: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-04 13:00:07' and `end` < '2025-04-04 16: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-04 16:00:20] Production.INFO: count ==5484 [2025-04-04 16:00:23] Production.ERROR: pbx CDR StartTime 2025-04-04 13:00:07 - End Time 2025-04-04 16:00:07 [2025-04-04 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833926', 'tblTempUsageDetail_20' ) start [2025-04-04 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833926', 'tblTempUsageDetail_20' ) end [2025-04-04 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833926', 'tblTempVendorCDR_20' ) start [2025-04-04 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833926', 'tblTempVendorCDR_20' ) end [2025-04-04 16:00:23] Production.INFO: ProcessCDR(1,14833926,1,1,2) [2025-04-04 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833926', 'tblTempUsageDetail_20' ) start [2025-04-04 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833926', 'tblTempUsageDetail_20' ) end [2025-04-04 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:00:28] Production.INFO: ==29197== Releasing lock... [2025-04-04 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:00:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:01:05 [end_date_ymd] => 2025-04-04 16:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:01:05' and `end` < '2025-04-04 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-04 16:01:19] Production.INFO: count ==5480 [2025-04-04 16:01:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:01:05 - End Time 2025-04-04 16:01:05 [2025-04-04 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833931', 'tblTempUsageDetail_20' ) start [2025-04-04 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833931', 'tblTempUsageDetail_20' ) end [2025-04-04 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833931', 'tblTempVendorCDR_20' ) start [2025-04-04 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833931', 'tblTempVendorCDR_20' ) end [2025-04-04 16:01:22] Production.INFO: ProcessCDR(1,14833931,1,1,2) [2025-04-04 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833931', 'tblTempUsageDetail_20' ) start [2025-04-04 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833931', 'tblTempUsageDetail_20' ) end [2025-04-04 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:01:27] Production.INFO: ==29288== Releasing lock... [2025-04-04 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:01:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:02:06 [end_date_ymd] => 2025-04-04 16:02:06 [RateCDR] => 1 ) [2025-04-04 16: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 13:02:06' and `end` < '2025-04-04 16: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-04 16:02:20] Production.INFO: count ==5481 [2025-04-04 16:02:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:02:06 - End Time 2025-04-04 16:02:06 [2025-04-04 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833936', 'tblTempUsageDetail_20' ) start [2025-04-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833936', 'tblTempUsageDetail_20' ) end [2025-04-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833936', 'tblTempVendorCDR_20' ) start [2025-04-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833936', 'tblTempVendorCDR_20' ) end [2025-04-04 16:02:22] Production.INFO: ProcessCDR(1,14833936,1,1,2) [2025-04-04 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833936', 'tblTempUsageDetail_20' ) start [2025-04-04 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833936', 'tblTempUsageDetail_20' ) end [2025-04-04 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:02:28] Production.INFO: ==29367== Releasing lock... [2025-04-04 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:02:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:03:05 [end_date_ymd] => 2025-04-04 16:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:03:05' and `end` < '2025-04-04 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-04 16:03:19] Production.INFO: count ==5473 [2025-04-04 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:03:05 - End Time 2025-04-04 16:03:05 [2025-04-04 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833941', 'tblTempUsageDetail_20' ) start [2025-04-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833941', 'tblTempUsageDetail_20' ) end [2025-04-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833941', 'tblTempVendorCDR_20' ) start [2025-04-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833941', 'tblTempVendorCDR_20' ) end [2025-04-04 16:03:21] Production.INFO: ProcessCDR(1,14833941,1,1,2) [2025-04-04 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833941', 'tblTempUsageDetail_20' ) start [2025-04-04 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833941', 'tblTempUsageDetail_20' ) end [2025-04-04 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:03:26] Production.INFO: ==29447== Releasing lock... [2025-04-04 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:03:26] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:04:06 [end_date_ymd] => 2025-04-04 16:04:06 [RateCDR] => 1 ) [2025-04-04 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:04:06' and `end` < '2025-04-04 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:04:20] Production.INFO: count ==5468 [2025-04-04 16:04:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:04:06 - End Time 2025-04-04 16:04:06 [2025-04-04 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833946', 'tblTempUsageDetail_20' ) start [2025-04-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833946', 'tblTempUsageDetail_20' ) end [2025-04-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833946', 'tblTempVendorCDR_20' ) start [2025-04-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833946', 'tblTempVendorCDR_20' ) end [2025-04-04 16:04:22] Production.INFO: ProcessCDR(1,14833946,1,1,2) [2025-04-04 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833946', 'tblTempUsageDetail_20' ) start [2025-04-04 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833946', 'tblTempUsageDetail_20' ) end [2025-04-04 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:04:28] Production.INFO: ==29528== Releasing lock... [2025-04-04 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:04:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:05:05 [end_date_ymd] => 2025-04-04 16:05:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:05:05' and `end` < '2025-04-04 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-04 16:05:20] Production.INFO: count ==5463 [2025-04-04 16:05:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:05:05 - End Time 2025-04-04 16:05:05 [2025-04-04 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833951', 'tblTempUsageDetail_20' ) start [2025-04-04 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833951', 'tblTempUsageDetail_20' ) end [2025-04-04 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833951', 'tblTempVendorCDR_20' ) start [2025-04-04 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833951', 'tblTempVendorCDR_20' ) end [2025-04-04 16:05:22] Production.INFO: ProcessCDR(1,14833951,1,1,2) [2025-04-04 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833951', 'tblTempUsageDetail_20' ) start [2025-04-04 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833951', 'tblTempUsageDetail_20' ) end [2025-04-04 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:05:28] Production.INFO: ==29602== Releasing lock... [2025-04-04 16:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:05:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:06:06 [end_date_ymd] => 2025-04-04 16:06:06 [RateCDR] => 1 ) [2025-04-04 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-04 13:06:06' and `end` < '2025-04-04 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-04 16:06:20] Production.INFO: count ==5440 [2025-04-04 16:06:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:06:06 - End Time 2025-04-04 16:06:06 [2025-04-04 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833956', 'tblTempUsageDetail_20' ) start [2025-04-04 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833956', 'tblTempUsageDetail_20' ) end [2025-04-04 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833956', 'tblTempVendorCDR_20' ) start [2025-04-04 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833956', 'tblTempVendorCDR_20' ) end [2025-04-04 16:06:22] Production.INFO: ProcessCDR(1,14833956,1,1,2) [2025-04-04 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833956', 'tblTempUsageDetail_20' ) start [2025-04-04 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833956', 'tblTempUsageDetail_20' ) end [2025-04-04 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:06:27] Production.INFO: ==29690== Releasing lock... [2025-04-04 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:06:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:07:05 [end_date_ymd] => 2025-04-04 16:07:05 [RateCDR] => 1 ) [2025-04-04 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:07:05' and `end` < '2025-04-04 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:07:19] Production.INFO: count ==5425 [2025-04-04 16:07:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:07:05 - End Time 2025-04-04 16:07:05 [2025-04-04 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833961', 'tblTempUsageDetail_20' ) start [2025-04-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833961', 'tblTempUsageDetail_20' ) end [2025-04-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833961', 'tblTempVendorCDR_20' ) start [2025-04-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833961', 'tblTempVendorCDR_20' ) end [2025-04-04 16:07:21] Production.INFO: ProcessCDR(1,14833961,1,1,2) [2025-04-04 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833961', 'tblTempUsageDetail_20' ) start [2025-04-04 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833961', 'tblTempUsageDetail_20' ) end [2025-04-04 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:07:27] Production.INFO: ==29765== Releasing lock... [2025-04-04 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:07:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:08:05 [end_date_ymd] => 2025-04-04 16:08:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:08:05' and `end` < '2025-04-04 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-04 16:08:19] Production.INFO: count ==5451 [2025-04-04 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:08:05 - End Time 2025-04-04 16:08:05 [2025-04-04 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833966', 'tblTempUsageDetail_20' ) start [2025-04-04 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833966', 'tblTempUsageDetail_20' ) end [2025-04-04 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833966', 'tblTempVendorCDR_20' ) start [2025-04-04 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833966', 'tblTempVendorCDR_20' ) end [2025-04-04 16:08:22] Production.INFO: ProcessCDR(1,14833966,1,1,2) [2025-04-04 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833966', 'tblTempUsageDetail_20' ) start [2025-04-04 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833966', 'tblTempUsageDetail_20' ) end [2025-04-04 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:08:27] Production.INFO: ==29847== Releasing lock... [2025-04-04 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:08:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:09:05 [end_date_ymd] => 2025-04-04 16:09:05 [RateCDR] => 1 ) [2025-04-04 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:09:05' and `end` < '2025-04-04 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:09:19] Production.INFO: count ==5465 [2025-04-04 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:09:05 - End Time 2025-04-04 16:09:05 [2025-04-04 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833971', 'tblTempUsageDetail_20' ) start [2025-04-04 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833971', 'tblTempUsageDetail_20' ) end [2025-04-04 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833971', 'tblTempVendorCDR_20' ) start [2025-04-04 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833971', 'tblTempVendorCDR_20' ) end [2025-04-04 16:09:22] Production.INFO: ProcessCDR(1,14833971,1,1,2) [2025-04-04 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833971', 'tblTempUsageDetail_20' ) start [2025-04-04 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833971', 'tblTempUsageDetail_20' ) end [2025-04-04 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:09:27] Production.INFO: ==29925== Releasing lock... [2025-04-04 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:09:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:10:06 [end_date_ymd] => 2025-04-04 16:10:06 [RateCDR] => 1 ) [2025-04-04 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-04 13:10:06' and `end` < '2025-04-04 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-04 16:10:20] Production.INFO: count ==5450 [2025-04-04 16:10:23] Production.ERROR: pbx CDR StartTime 2025-04-04 13:10:06 - End Time 2025-04-04 16:10:06 [2025-04-04 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833977', 'tblTempUsageDetail_20' ) start [2025-04-04 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833977', 'tblTempUsageDetail_20' ) end [2025-04-04 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833977', 'tblTempVendorCDR_20' ) start [2025-04-04 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833977', 'tblTempVendorCDR_20' ) end [2025-04-04 16:10:23] Production.INFO: ProcessCDR(1,14833977,1,1,2) [2025-04-04 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833977', 'tblTempUsageDetail_20' ) start [2025-04-04 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833977', 'tblTempUsageDetail_20' ) end [2025-04-04 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:10:28] Production.INFO: ==30008== Releasing lock... [2025-04-04 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:10:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:11:04 [end_date_ymd] => 2025-04-04 16:11:04 [RateCDR] => 1 ) [2025-04-04 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:11:04' and `end` < '2025-04-04 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:11:18] Production.INFO: count ==5464 [2025-04-04 16:11:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:11:04 - End Time 2025-04-04 16:11:04 [2025-04-04 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833982', 'tblTempUsageDetail_20' ) start [2025-04-04 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833982', 'tblTempUsageDetail_20' ) end [2025-04-04 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833982', 'tblTempVendorCDR_20' ) start [2025-04-04 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833982', 'tblTempVendorCDR_20' ) end [2025-04-04 16:11:21] Production.INFO: ProcessCDR(1,14833982,1,1,2) [2025-04-04 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833982', 'tblTempUsageDetail_20' ) start [2025-04-04 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833982', 'tblTempUsageDetail_20' ) end [2025-04-04 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:11:27] Production.INFO: ==30085== Releasing lock... [2025-04-04 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:11:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:12:05 [end_date_ymd] => 2025-04-04 16:12:05 [RateCDR] => 1 ) [2025-04-04 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:12:05' and `end` < '2025-04-04 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:12:19] Production.INFO: count ==5456 [2025-04-04 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:12:05 - End Time 2025-04-04 16:12:05 [2025-04-04 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833987', 'tblTempUsageDetail_20' ) start [2025-04-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833987', 'tblTempUsageDetail_20' ) end [2025-04-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833987', 'tblTempVendorCDR_20' ) start [2025-04-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833987', 'tblTempVendorCDR_20' ) end [2025-04-04 16:12:21] Production.INFO: ProcessCDR(1,14833987,1,1,2) [2025-04-04 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833987', 'tblTempUsageDetail_20' ) start [2025-04-04 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833987', 'tblTempUsageDetail_20' ) end [2025-04-04 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:12:27] Production.INFO: ==30161== Releasing lock... [2025-04-04 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:12:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:13:06 [end_date_ymd] => 2025-04-04 16:13:06 [RateCDR] => 1 ) [2025-04-04 16:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:13:06' and `end` < '2025-04-04 16:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:13:20] Production.INFO: count ==5488 [2025-04-04 16:13:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:13:06 - End Time 2025-04-04 16:13:06 [2025-04-04 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833992', 'tblTempUsageDetail_20' ) start [2025-04-04 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833992', 'tblTempUsageDetail_20' ) end [2025-04-04 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833992', 'tblTempVendorCDR_20' ) start [2025-04-04 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833992', 'tblTempVendorCDR_20' ) end [2025-04-04 16:13:23] Production.INFO: ProcessCDR(1,14833992,1,1,2) [2025-04-04 16:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833992', 'tblTempUsageDetail_20' ) start [2025-04-04 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833992', 'tblTempUsageDetail_20' ) end [2025-04-04 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:13:28] Production.INFO: ==30241== Releasing lock... [2025-04-04 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:13:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:14:05 [end_date_ymd] => 2025-04-04 16:14:05 [RateCDR] => 1 ) [2025-04-04 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:14:05' and `end` < '2025-04-04 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:14:19] Production.INFO: count ==5490 [2025-04-04 16:14:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:14:05 - End Time 2025-04-04 16:14:05 [2025-04-04 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833997', 'tblTempUsageDetail_20' ) start [2025-04-04 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14833997', 'tblTempUsageDetail_20' ) end [2025-04-04 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833997', 'tblTempVendorCDR_20' ) start [2025-04-04 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14833997', 'tblTempVendorCDR_20' ) end [2025-04-04 16:14:22] Production.INFO: ProcessCDR(1,14833997,1,1,2) [2025-04-04 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14833997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14833997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14833997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14833997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833997', 'tblTempUsageDetail_20' ) start [2025-04-04 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14833997', 'tblTempUsageDetail_20' ) end [2025-04-04 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:14:27] Production.INFO: ==30320== Releasing lock... [2025-04-04 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:14:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:15:06 [end_date_ymd] => 2025-04-04 16:15:06 [RateCDR] => 1 ) [2025-04-04 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:15:06' and `end` < '2025-04-04 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:15:20] Production.INFO: count ==5490 [2025-04-04 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:15:06 - End Time 2025-04-04 16:15:06 [2025-04-04 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834002', 'tblTempUsageDetail_20' ) start [2025-04-04 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834002', 'tblTempUsageDetail_20' ) end [2025-04-04 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834002', 'tblTempVendorCDR_20' ) start [2025-04-04 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834002', 'tblTempVendorCDR_20' ) end [2025-04-04 16:15:23] Production.INFO: ProcessCDR(1,14834002,1,1,2) [2025-04-04 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834002', 'tblTempUsageDetail_20' ) start [2025-04-04 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834002', 'tblTempUsageDetail_20' ) end [2025-04-04 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:15:28] Production.INFO: ==30438== Releasing lock... [2025-04-04 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:15:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:16:05 [end_date_ymd] => 2025-04-04 16:16:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:16:05' and `end` < '2025-04-04 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-04 16:16:18] Production.INFO: count ==5477 [2025-04-04 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:16:05 - End Time 2025-04-04 16:16:05 [2025-04-04 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834007', 'tblTempUsageDetail_20' ) start [2025-04-04 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834007', 'tblTempUsageDetail_20' ) end [2025-04-04 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834007', 'tblTempVendorCDR_20' ) start [2025-04-04 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834007', 'tblTempVendorCDR_20' ) end [2025-04-04 16:16:21] Production.INFO: ProcessCDR(1,14834007,1,1,2) [2025-04-04 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834007', 'tblTempUsageDetail_20' ) start [2025-04-04 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834007', 'tblTempUsageDetail_20' ) end [2025-04-04 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:16:26] Production.INFO: ==30521== Releasing lock... [2025-04-04 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:16:26] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:17:05 [end_date_ymd] => 2025-04-04 16:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:17:05' and `end` < '2025-04-04 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-04 16:17:19] Production.INFO: count ==5480 [2025-04-04 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:17:05 - End Time 2025-04-04 16:17:05 [2025-04-04 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834012', 'tblTempUsageDetail_20' ) start [2025-04-04 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834012', 'tblTempUsageDetail_20' ) end [2025-04-04 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834012', 'tblTempVendorCDR_20' ) start [2025-04-04 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834012', 'tblTempVendorCDR_20' ) end [2025-04-04 16:17:22] Production.INFO: ProcessCDR(1,14834012,1,1,2) [2025-04-04 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834012', 'tblTempUsageDetail_20' ) start [2025-04-04 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834012', 'tblTempUsageDetail_20' ) end [2025-04-04 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:17:27] Production.INFO: ==30594== Releasing lock... [2025-04-04 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:17:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:18:05 [end_date_ymd] => 2025-04-04 16:18:05 [RateCDR] => 1 ) [2025-04-04 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:18:05' and `end` < '2025-04-04 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:18:19] Production.INFO: count ==5494 [2025-04-04 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:18:05 - End Time 2025-04-04 16:18:05 [2025-04-04 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834017', 'tblTempUsageDetail_20' ) start [2025-04-04 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834017', 'tblTempUsageDetail_20' ) end [2025-04-04 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834017', 'tblTempVendorCDR_20' ) start [2025-04-04 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834017', 'tblTempVendorCDR_20' ) end [2025-04-04 16:18:21] Production.INFO: ProcessCDR(1,14834017,1,1,2) [2025-04-04 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834017', 'tblTempUsageDetail_20' ) start [2025-04-04 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834017', 'tblTempUsageDetail_20' ) end [2025-04-04 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:18:26] Production.INFO: ==30673== Releasing lock... [2025-04-04 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:18:26] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:19:05 [end_date_ymd] => 2025-04-04 16:19:05 [RateCDR] => 1 ) [2025-04-04 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:19:05' and `end` < '2025-04-04 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:19:19] Production.INFO: count ==5512 [2025-04-04 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:19:05 - End Time 2025-04-04 16:19:05 [2025-04-04 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834022', 'tblTempUsageDetail_20' ) start [2025-04-04 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834022', 'tblTempUsageDetail_20' ) end [2025-04-04 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834022', 'tblTempVendorCDR_20' ) start [2025-04-04 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834022', 'tblTempVendorCDR_20' ) end [2025-04-04 16:19:21] Production.INFO: ProcessCDR(1,14834022,1,1,2) [2025-04-04 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834022', 'tblTempUsageDetail_20' ) start [2025-04-04 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834022', 'tblTempUsageDetail_20' ) end [2025-04-04 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:19:27] Production.INFO: ==30751== Releasing lock... [2025-04-04 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:19:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:20:06 [end_date_ymd] => 2025-04-04 16:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 13:20:06' and `end` < '2025-04-04 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-04 16:20:20] Production.INFO: count ==5504 [2025-04-04 16:20:23] Production.ERROR: pbx CDR StartTime 2025-04-04 13:20:06 - End Time 2025-04-04 16:20:06 [2025-04-04 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834028', 'tblTempUsageDetail_20' ) start [2025-04-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834028', 'tblTempUsageDetail_20' ) end [2025-04-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834028', 'tblTempVendorCDR_20' ) start [2025-04-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834028', 'tblTempVendorCDR_20' ) end [2025-04-04 16:20:23] Production.INFO: ProcessCDR(1,14834028,1,1,2) [2025-04-04 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834028', 'tblTempUsageDetail_20' ) start [2025-04-04 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834028', 'tblTempUsageDetail_20' ) end [2025-04-04 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:20:28] Production.INFO: ==30834== Releasing lock... [2025-04-04 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:20:28] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:21:05 [end_date_ymd] => 2025-04-04 16:21:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:21:05' and `end` < '2025-04-04 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-04 16:21:20] Production.INFO: count ==5519 [2025-04-04 16:21:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:21:05 - End Time 2025-04-04 16:21:05 [2025-04-04 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834033', 'tblTempUsageDetail_20' ) start [2025-04-04 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834033', 'tblTempUsageDetail_20' ) end [2025-04-04 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834033', 'tblTempVendorCDR_20' ) start [2025-04-04 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834033', 'tblTempVendorCDR_20' ) end [2025-04-04 16:21:23] Production.INFO: ProcessCDR(1,14834033,1,1,2) [2025-04-04 16:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834033', 'tblTempUsageDetail_20' ) start [2025-04-04 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834033', 'tblTempUsageDetail_20' ) end [2025-04-04 16:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:21:28] Production.INFO: ==30916== Releasing lock... [2025-04-04 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:21:28] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:22:05 [end_date_ymd] => 2025-04-04 16:22:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:22:05' and `end` < '2025-04-04 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-04 16:22:19] Production.INFO: count ==5503 [2025-04-04 16:22:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:22:05 - End Time 2025-04-04 16:22:05 [2025-04-04 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834038', 'tblTempUsageDetail_20' ) start [2025-04-04 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834038', 'tblTempUsageDetail_20' ) end [2025-04-04 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834038', 'tblTempVendorCDR_20' ) start [2025-04-04 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834038', 'tblTempVendorCDR_20' ) end [2025-04-04 16:22:22] Production.INFO: ProcessCDR(1,14834038,1,1,2) [2025-04-04 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834038', 'tblTempUsageDetail_20' ) start [2025-04-04 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834038', 'tblTempUsageDetail_20' ) end [2025-04-04 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:22:27] Production.INFO: ==30995== Releasing lock... [2025-04-04 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:22:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:23:05 [end_date_ymd] => 2025-04-04 16:23:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:23:05' and `end` < '2025-04-04 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-04 16:23:19] Production.INFO: count ==5480 [2025-04-04 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:23:05 - End Time 2025-04-04 16:23:05 [2025-04-04 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834043', 'tblTempUsageDetail_20' ) start [2025-04-04 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834043', 'tblTempUsageDetail_20' ) end [2025-04-04 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834043', 'tblTempVendorCDR_20' ) start [2025-04-04 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834043', 'tblTempVendorCDR_20' ) end [2025-04-04 16:23:21] Production.INFO: ProcessCDR(1,14834043,1,1,2) [2025-04-04 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834043', 'tblTempUsageDetail_20' ) start [2025-04-04 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834043', 'tblTempUsageDetail_20' ) end [2025-04-04 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:23:26] Production.INFO: ==31073== Releasing lock... [2025-04-04 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:23:26] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:24:06 [end_date_ymd] => 2025-04-04 16:24:06 [RateCDR] => 1 ) [2025-04-04 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:24:06' and `end` < '2025-04-04 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:24:20] Production.INFO: count ==5478 [2025-04-04 16:24:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:24:06 - End Time 2025-04-04 16:24:06 [2025-04-04 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834048', 'tblTempUsageDetail_20' ) start [2025-04-04 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834048', 'tblTempUsageDetail_20' ) end [2025-04-04 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834048', 'tblTempVendorCDR_20' ) start [2025-04-04 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834048', 'tblTempVendorCDR_20' ) end [2025-04-04 16:24:22] Production.INFO: ProcessCDR(1,14834048,1,1,2) [2025-04-04 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834048', 'tblTempUsageDetail_20' ) start [2025-04-04 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834048', 'tblTempUsageDetail_20' ) end [2025-04-04 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:24:27] Production.INFO: ==31146== Releasing lock... [2025-04-04 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:24:27] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:25:04 [end_date_ymd] => 2025-04-04 16:25:04 [RateCDR] => 1 ) [2025-04-04 16: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-04 13:25:04' and `end` < '2025-04-04 16: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-04 16:25:18] Production.INFO: count ==5484 [2025-04-04 16:25:20] Production.ERROR: pbx CDR StartTime 2025-04-04 13:25:04 - End Time 2025-04-04 16:25:04 [2025-04-04 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834053', 'tblTempUsageDetail_20' ) start [2025-04-04 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834053', 'tblTempUsageDetail_20' ) end [2025-04-04 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834053', 'tblTempVendorCDR_20' ) start [2025-04-04 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834053', 'tblTempVendorCDR_20' ) end [2025-04-04 16:25:21] Production.INFO: ProcessCDR(1,14834053,1,1,2) [2025-04-04 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834053', 'tblTempUsageDetail_20' ) start [2025-04-04 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834053', 'tblTempUsageDetail_20' ) end [2025-04-04 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:25:26] Production.INFO: ==31219== Releasing lock... [2025-04-04 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:25:26] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:26:05 [end_date_ymd] => 2025-04-04 16:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:26:05' and `end` < '2025-04-04 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-04 16:26:19] Production.INFO: count ==5500 [2025-04-04 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:26:05 - End Time 2025-04-04 16:26:05 [2025-04-04 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834058', 'tblTempUsageDetail_20' ) start [2025-04-04 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834058', 'tblTempUsageDetail_20' ) end [2025-04-04 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834058', 'tblTempVendorCDR_20' ) start [2025-04-04 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834058', 'tblTempVendorCDR_20' ) end [2025-04-04 16:26:22] Production.INFO: ProcessCDR(1,14834058,1,1,2) [2025-04-04 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834058', 'tblTempUsageDetail_20' ) start [2025-04-04 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834058', 'tblTempUsageDetail_20' ) end [2025-04-04 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:26:27] Production.INFO: ==31298== Releasing lock... [2025-04-04 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:26:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:27:04 [end_date_ymd] => 2025-04-04 16:27:04 [RateCDR] => 1 ) [2025-04-04 16:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:27:04' and `end` < '2025-04-04 16:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:27:18] Production.INFO: count ==5513 [2025-04-04 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:27:04 - End Time 2025-04-04 16:27:04 [2025-04-04 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834063', 'tblTempUsageDetail_20' ) start [2025-04-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834063', 'tblTempUsageDetail_20' ) end [2025-04-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834063', 'tblTempVendorCDR_20' ) start [2025-04-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834063', 'tblTempVendorCDR_20' ) end [2025-04-04 16:27:21] Production.INFO: ProcessCDR(1,14834063,1,1,2) [2025-04-04 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834063', 'tblTempUsageDetail_20' ) start [2025-04-04 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834063', 'tblTempUsageDetail_20' ) end [2025-04-04 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:27:26] Production.INFO: ==31372== Releasing lock... [2025-04-04 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:27:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:28:05 [end_date_ymd] => 2025-04-04 16:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:28:05' and `end` < '2025-04-04 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-04 16:28:19] Production.INFO: count ==5514 [2025-04-04 16:28:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:28:05 - End Time 2025-04-04 16:28:05 [2025-04-04 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834068', 'tblTempUsageDetail_20' ) start [2025-04-04 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834068', 'tblTempUsageDetail_20' ) end [2025-04-04 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834068', 'tblTempVendorCDR_20' ) start [2025-04-04 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834068', 'tblTempVendorCDR_20' ) end [2025-04-04 16:28:22] Production.INFO: ProcessCDR(1,14834068,1,1,2) [2025-04-04 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834068', 'tblTempUsageDetail_20' ) start [2025-04-04 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834068', 'tblTempUsageDetail_20' ) end [2025-04-04 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:28:27] Production.INFO: ==31460== Releasing lock... [2025-04-04 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:28:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:29:06 [end_date_ymd] => 2025-04-04 16:29:06 [RateCDR] => 1 ) [2025-04-04 16: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-04 13:29:06' and `end` < '2025-04-04 16: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-04 16:29:20] Production.INFO: count ==5511 [2025-04-04 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:29:06 - End Time 2025-04-04 16:29:06 [2025-04-04 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834073', 'tblTempUsageDetail_20' ) start [2025-04-04 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834073', 'tblTempUsageDetail_20' ) end [2025-04-04 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834073', 'tblTempVendorCDR_20' ) start [2025-04-04 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834073', 'tblTempVendorCDR_20' ) end [2025-04-04 16:29:22] Production.INFO: ProcessCDR(1,14834073,1,1,2) [2025-04-04 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834073', 'tblTempUsageDetail_20' ) start [2025-04-04 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834073', 'tblTempUsageDetail_20' ) end [2025-04-04 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:29:27] Production.INFO: ==31534== Releasing lock... [2025-04-04 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:29:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-04 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:30:06 [end_date_ymd] => 2025-04-04 16:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 13:30:06' and `end` < '2025-04-04 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-04 16:30:20] Production.INFO: count ==5488 [2025-04-04 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:30:06 - End Time 2025-04-04 16:30:06 [2025-04-04 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834078', 'tblTempUsageDetail_20' ) start [2025-04-04 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834078', 'tblTempUsageDetail_20' ) end [2025-04-04 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834078', 'tblTempVendorCDR_20' ) start [2025-04-04 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834078', 'tblTempVendorCDR_20' ) end [2025-04-04 16:30:23] Production.INFO: ProcessCDR(1,14834078,1,1,2) [2025-04-04 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834078', 'tblTempUsageDetail_20' ) start [2025-04-04 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834078', 'tblTempUsageDetail_20' ) end [2025-04-04 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:30:28] Production.INFO: ==31652== Releasing lock... [2025-04-04 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:30:28] Production.INFO: 69 MB #Memory Used# [2025-04-04 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:31:04 [end_date_ymd] => 2025-04-04 16:31:04 [RateCDR] => 1 ) [2025-04-04 16:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:31:04' and `end` < '2025-04-04 16:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:31:18] Production.INFO: count ==5416 [2025-04-04 16:31:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:31:04 - End Time 2025-04-04 16:31:04 [2025-04-04 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834084', 'tblTempUsageDetail_20' ) start [2025-04-04 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834084', 'tblTempUsageDetail_20' ) end [2025-04-04 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834084', 'tblTempVendorCDR_20' ) start [2025-04-04 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834084', 'tblTempVendorCDR_20' ) end [2025-04-04 16:31:21] Production.INFO: ProcessCDR(1,14834084,1,1,2) [2025-04-04 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834084', 'tblTempUsageDetail_20' ) start [2025-04-04 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834084', 'tblTempUsageDetail_20' ) end [2025-04-04 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:31:26] Production.INFO: ==31730== Releasing lock... [2025-04-04 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:31:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:32:05 [end_date_ymd] => 2025-04-04 16:32:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:32:05' and `end` < '2025-04-04 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-04 16:32:19] Production.INFO: count ==5388 [2025-04-04 16:32:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:32:05 - End Time 2025-04-04 16:32:05 [2025-04-04 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834089', 'tblTempUsageDetail_20' ) start [2025-04-04 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834089', 'tblTempUsageDetail_20' ) end [2025-04-04 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834089', 'tblTempVendorCDR_20' ) start [2025-04-04 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834089', 'tblTempVendorCDR_20' ) end [2025-04-04 16:32:22] Production.INFO: ProcessCDR(1,14834089,1,1,2) [2025-04-04 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834089', 'tblTempUsageDetail_20' ) start [2025-04-04 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834089', 'tblTempUsageDetail_20' ) end [2025-04-04 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:32:27] Production.INFO: ==31804== Releasing lock... [2025-04-04 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:32:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:33:06 [end_date_ymd] => 2025-04-04 16:33:06 [RateCDR] => 1 ) [2025-04-04 16: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 13:33:06' and `end` < '2025-04-04 16: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-04 16:33:20] Production.INFO: count ==5399 [2025-04-04 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:33:06 - End Time 2025-04-04 16:33:06 [2025-04-04 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834094', 'tblTempUsageDetail_20' ) start [2025-04-04 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834094', 'tblTempUsageDetail_20' ) end [2025-04-04 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834094', 'tblTempVendorCDR_20' ) start [2025-04-04 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834094', 'tblTempVendorCDR_20' ) end [2025-04-04 16:33:22] Production.INFO: ProcessCDR(1,14834094,1,1,2) [2025-04-04 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834094', 'tblTempUsageDetail_20' ) start [2025-04-04 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834094', 'tblTempUsageDetail_20' ) end [2025-04-04 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:33:28] Production.INFO: ==31880== Releasing lock... [2025-04-04 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:33:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:34:05 [end_date_ymd] => 2025-04-04 16:34:05 [RateCDR] => 1 ) [2025-04-04 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:34:05' and `end` < '2025-04-04 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:34:19] Production.INFO: count ==5419 [2025-04-04 16:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:34:05 - End Time 2025-04-04 16:34:05 [2025-04-04 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834099', 'tblTempUsageDetail_20' ) start [2025-04-04 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834099', 'tblTempUsageDetail_20' ) end [2025-04-04 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834099', 'tblTempVendorCDR_20' ) start [2025-04-04 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834099', 'tblTempVendorCDR_20' ) end [2025-04-04 16:34:22] Production.INFO: ProcessCDR(1,14834099,1,1,2) [2025-04-04 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834099', 'tblTempUsageDetail_20' ) start [2025-04-04 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834099', 'tblTempUsageDetail_20' ) end [2025-04-04 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:34:27] Production.INFO: ==31960== Releasing lock... [2025-04-04 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:34:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:35:06 [end_date_ymd] => 2025-04-04 16:35:06 [RateCDR] => 1 ) [2025-04-04 16: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 13:35:06' and `end` < '2025-04-04 16: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-04 16:35:20] Production.INFO: count ==5408 [2025-04-04 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:35:06 - End Time 2025-04-04 16:35:06 [2025-04-04 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834104', 'tblTempUsageDetail_20' ) start [2025-04-04 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834104', 'tblTempUsageDetail_20' ) end [2025-04-04 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834104', 'tblTempVendorCDR_20' ) start [2025-04-04 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834104', 'tblTempVendorCDR_20' ) end [2025-04-04 16:35:22] Production.INFO: ProcessCDR(1,14834104,1,1,2) [2025-04-04 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834104', 'tblTempUsageDetail_20' ) start [2025-04-04 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834104', 'tblTempUsageDetail_20' ) end [2025-04-04 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:35:27] Production.INFO: ==32044== Releasing lock... [2025-04-04 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:35:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:36:06 [end_date_ymd] => 2025-04-04 16:36:06 [RateCDR] => 1 ) [2025-04-04 16: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-04 13:36:06' and `end` < '2025-04-04 16: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-04 16:36:19] Production.INFO: count ==5402 [2025-04-04 16:36:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:36:06 - End Time 2025-04-04 16:36:06 [2025-04-04 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834109', 'tblTempUsageDetail_20' ) start [2025-04-04 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834109', 'tblTempUsageDetail_20' ) end [2025-04-04 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834109', 'tblTempVendorCDR_20' ) start [2025-04-04 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834109', 'tblTempVendorCDR_20' ) end [2025-04-04 16:36:22] Production.INFO: ProcessCDR(1,14834109,1,1,2) [2025-04-04 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834109', 'tblTempUsageDetail_20' ) start [2025-04-04 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834109', 'tblTempUsageDetail_20' ) end [2025-04-04 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:36:27] Production.INFO: ==32120== Releasing lock... [2025-04-04 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:36:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:37:06 [end_date_ymd] => 2025-04-04 16:37:06 [RateCDR] => 1 ) [2025-04-04 16: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-04 13:37:06' and `end` < '2025-04-04 16: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-04 16:37:20] Production.INFO: count ==5406 [2025-04-04 16:37:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:37:06 - End Time 2025-04-04 16:37:06 [2025-04-04 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834114', 'tblTempUsageDetail_20' ) start [2025-04-04 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834114', 'tblTempUsageDetail_20' ) end [2025-04-04 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834114', 'tblTempVendorCDR_20' ) start [2025-04-04 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834114', 'tblTempVendorCDR_20' ) end [2025-04-04 16:37:22] Production.INFO: ProcessCDR(1,14834114,1,1,2) [2025-04-04 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834114', 'tblTempUsageDetail_20' ) start [2025-04-04 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834114', 'tblTempUsageDetail_20' ) end [2025-04-04 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:37:27] Production.INFO: ==32198== Releasing lock... [2025-04-04 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:37:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:38:06 [end_date_ymd] => 2025-04-04 16:38:06 [RateCDR] => 1 ) [2025-04-04 16: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 13:38:06' and `end` < '2025-04-04 16: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-04 16:38:19] Production.INFO: count ==5432 [2025-04-04 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:38:06 - End Time 2025-04-04 16:38:06 [2025-04-04 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834119', 'tblTempUsageDetail_20' ) start [2025-04-04 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834119', 'tblTempUsageDetail_20' ) end [2025-04-04 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834119', 'tblTempVendorCDR_20' ) start [2025-04-04 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834119', 'tblTempVendorCDR_20' ) end [2025-04-04 16:38:22] Production.INFO: ProcessCDR(1,14834119,1,1,2) [2025-04-04 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834119', 'tblTempUsageDetail_20' ) start [2025-04-04 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834119', 'tblTempUsageDetail_20' ) end [2025-04-04 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:38:27] Production.INFO: ==32274== Releasing lock... [2025-04-04 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:38:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-04 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:39:05 [end_date_ymd] => 2025-04-04 16:39:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:39:05' and `end` < '2025-04-04 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-04 16:39:19] Production.INFO: count ==5408 [2025-04-04 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:39:05 - End Time 2025-04-04 16:39:05 [2025-04-04 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834124', 'tblTempUsageDetail_20' ) start [2025-04-04 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834124', 'tblTempUsageDetail_20' ) end [2025-04-04 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834124', 'tblTempVendorCDR_20' ) start [2025-04-04 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834124', 'tblTempVendorCDR_20' ) end [2025-04-04 16:39:22] Production.INFO: ProcessCDR(1,14834124,1,1,2) [2025-04-04 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834124', 'tblTempUsageDetail_20' ) start [2025-04-04 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834124', 'tblTempUsageDetail_20' ) end [2025-04-04 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:39:25] Production.INFO: ==32351== Releasing lock... [2025-04-04 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:39:25] Production.INFO: 68.5 MB #Memory Used# [2025-04-04 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:40:06 [end_date_ymd] => 2025-04-04 16:40:06 [RateCDR] => 1 ) [2025-04-04 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-04 13:40:06' and `end` < '2025-04-04 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-04 16:40:20] Production.INFO: count ==5389 [2025-04-04 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:40:06 - End Time 2025-04-04 16:40:06 [2025-04-04 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834130', 'tblTempUsageDetail_20' ) start [2025-04-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834130', 'tblTempUsageDetail_20' ) end [2025-04-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834130', 'tblTempVendorCDR_20' ) start [2025-04-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834130', 'tblTempVendorCDR_20' ) end [2025-04-04 16:40:22] Production.INFO: ProcessCDR(1,14834130,1,1,2) [2025-04-04 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834130', 'tblTempUsageDetail_20' ) start [2025-04-04 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834130', 'tblTempUsageDetail_20' ) end [2025-04-04 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:40:28] Production.INFO: ==32424== Releasing lock... [2025-04-04 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:40:28] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:41:05 [end_date_ymd] => 2025-04-04 16:41:05 [RateCDR] => 1 ) [2025-04-04 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:41:05' and `end` < '2025-04-04 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:41:19] Production.INFO: count ==5367 [2025-04-04 16:41:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:41:05 - End Time 2025-04-04 16:41:05 [2025-04-04 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834135', 'tblTempUsageDetail_20' ) start [2025-04-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834135', 'tblTempUsageDetail_20' ) end [2025-04-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834135', 'tblTempVendorCDR_20' ) start [2025-04-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834135', 'tblTempVendorCDR_20' ) end [2025-04-04 16:41:21] Production.INFO: ProcessCDR(1,14834135,1,1,2) [2025-04-04 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834135', 'tblTempUsageDetail_20' ) start [2025-04-04 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834135', 'tblTempUsageDetail_20' ) end [2025-04-04 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:41:26] Production.INFO: ==32507== Releasing lock... [2025-04-04 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:41:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:42:05 [end_date_ymd] => 2025-04-04 16:42:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:42:05' and `end` < '2025-04-04 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-04 16:42:19] Production.INFO: count ==5343 [2025-04-04 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:42:05 - End Time 2025-04-04 16:42:05 [2025-04-04 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834140', 'tblTempUsageDetail_20' ) start [2025-04-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834140', 'tblTempUsageDetail_20' ) end [2025-04-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834140', 'tblTempVendorCDR_20' ) start [2025-04-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834140', 'tblTempVendorCDR_20' ) end [2025-04-04 16:42:21] Production.INFO: ProcessCDR(1,14834140,1,1,2) [2025-04-04 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834140', 'tblTempUsageDetail_20' ) start [2025-04-04 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834140', 'tblTempUsageDetail_20' ) end [2025-04-04 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:42:27] Production.INFO: ==32577== Releasing lock... [2025-04-04 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:42:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:43:05 [end_date_ymd] => 2025-04-04 16:43:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:43:05' and `end` < '2025-04-04 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-04 16:43:20] Production.INFO: count ==5314 [2025-04-04 16:43:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:43:05 - End Time 2025-04-04 16:43:05 [2025-04-04 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834145', 'tblTempUsageDetail_20' ) start [2025-04-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834145', 'tblTempUsageDetail_20' ) end [2025-04-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834145', 'tblTempVendorCDR_20' ) start [2025-04-04 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834145', 'tblTempVendorCDR_20' ) end [2025-04-04 16:43:22] Production.INFO: ProcessCDR(1,14834145,1,1,2) [2025-04-04 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834145', 'tblTempUsageDetail_20' ) start [2025-04-04 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834145', 'tblTempUsageDetail_20' ) end [2025-04-04 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:43:28] Production.INFO: ==32654== Releasing lock... [2025-04-04 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:43:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:44:05 [end_date_ymd] => 2025-04-04 16:44:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:44:05' and `end` < '2025-04-04 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-04 16:44:19] Production.INFO: count ==5294 [2025-04-04 16:44:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:44:05 - End Time 2025-04-04 16:44:05 [2025-04-04 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834150', 'tblTempUsageDetail_20' ) start [2025-04-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834150', 'tblTempUsageDetail_20' ) end [2025-04-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834150', 'tblTempVendorCDR_20' ) start [2025-04-04 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834150', 'tblTempVendorCDR_20' ) end [2025-04-04 16:44:21] Production.INFO: ProcessCDR(1,14834150,1,1,2) [2025-04-04 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834150', 'tblTempUsageDetail_20' ) start [2025-04-04 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834150', 'tblTempUsageDetail_20' ) end [2025-04-04 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:44:26] Production.INFO: ==32726== Releasing lock... [2025-04-04 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:44:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:45:06 [end_date_ymd] => 2025-04-04 16:45:06 [RateCDR] => 1 ) [2025-04-04 16: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-04 13:45:06' and `end` < '2025-04-04 16: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-04 16:45:20] Production.INFO: count ==5249 [2025-04-04 16:45:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:45:06 - End Time 2025-04-04 16:45:06 [2025-04-04 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834155', 'tblTempUsageDetail_20' ) start [2025-04-04 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834155', 'tblTempUsageDetail_20' ) end [2025-04-04 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834155', 'tblTempVendorCDR_20' ) start [2025-04-04 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834155', 'tblTempVendorCDR_20' ) end [2025-04-04 16:45:22] Production.INFO: ProcessCDR(1,14834155,1,1,2) [2025-04-04 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834155', 'tblTempUsageDetail_20' ) start [2025-04-04 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834155', 'tblTempUsageDetail_20' ) end [2025-04-04 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:45:27] Production.INFO: ==358== Releasing lock... [2025-04-04 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:45:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:46:05 [end_date_ymd] => 2025-04-04 16:46:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:46:05' and `end` < '2025-04-04 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-04 16:46:19] Production.INFO: count ==5235 [2025-04-04 16:46:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:46:05 - End Time 2025-04-04 16:46:05 [2025-04-04 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834160', 'tblTempUsageDetail_20' ) start [2025-04-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834160', 'tblTempUsageDetail_20' ) end [2025-04-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834160', 'tblTempVendorCDR_20' ) start [2025-04-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834160', 'tblTempVendorCDR_20' ) end [2025-04-04 16:46:21] Production.INFO: ProcessCDR(1,14834160,1,1,2) [2025-04-04 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834160', 'tblTempUsageDetail_20' ) start [2025-04-04 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834160', 'tblTempUsageDetail_20' ) end [2025-04-04 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:46:26] Production.INFO: ==472== Releasing lock... [2025-04-04 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:46:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:47:05 [end_date_ymd] => 2025-04-04 16:47:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:47:05' and `end` < '2025-04-04 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-04 16:47:19] Production.INFO: count ==5228 [2025-04-04 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:47:05 - End Time 2025-04-04 16:47:05 [2025-04-04 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834165', 'tblTempUsageDetail_20' ) start [2025-04-04 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834165', 'tblTempUsageDetail_20' ) end [2025-04-04 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834165', 'tblTempVendorCDR_20' ) start [2025-04-04 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834165', 'tblTempVendorCDR_20' ) end [2025-04-04 16:47:21] Production.INFO: ProcessCDR(1,14834165,1,1,2) [2025-04-04 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834165', 'tblTempUsageDetail_20' ) start [2025-04-04 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834165', 'tblTempUsageDetail_20' ) end [2025-04-04 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:47:26] Production.INFO: ==555== Releasing lock... [2025-04-04 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:47:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:48:06 [end_date_ymd] => 2025-04-04 16:48:06 [RateCDR] => 1 ) [2025-04-04 16: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-04 13:48:06' and `end` < '2025-04-04 16: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-04 16:48:20] Production.INFO: count ==5210 [2025-04-04 16:48:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:48:06 - End Time 2025-04-04 16:48:06 [2025-04-04 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834170', 'tblTempUsageDetail_20' ) start [2025-04-04 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834170', 'tblTempUsageDetail_20' ) end [2025-04-04 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834170', 'tblTempVendorCDR_20' ) start [2025-04-04 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834170', 'tblTempVendorCDR_20' ) end [2025-04-04 16:48:22] Production.INFO: ProcessCDR(1,14834170,1,1,2) [2025-04-04 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834170', 'tblTempUsageDetail_20' ) start [2025-04-04 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834170', 'tblTempUsageDetail_20' ) end [2025-04-04 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:48:27] Production.INFO: ==639== Releasing lock... [2025-04-04 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:48:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:49:05 [end_date_ymd] => 2025-04-04 16:49:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:49:05' and `end` < '2025-04-04 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-04 16:49:19] Production.INFO: count ==5213 [2025-04-04 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:49:05 - End Time 2025-04-04 16:49:05 [2025-04-04 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834175', 'tblTempUsageDetail_20' ) start [2025-04-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834175', 'tblTempUsageDetail_20' ) end [2025-04-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834175', 'tblTempVendorCDR_20' ) start [2025-04-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834175', 'tblTempVendorCDR_20' ) end [2025-04-04 16:49:21] Production.INFO: ProcessCDR(1,14834175,1,1,2) [2025-04-04 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834175', 'tblTempUsageDetail_20' ) start [2025-04-04 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834175', 'tblTempUsageDetail_20' ) end [2025-04-04 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:49:26] Production.INFO: ==734== Releasing lock... [2025-04-04 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:49:26] Production.INFO: 67 MB #Memory Used# [2025-04-04 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:50:06 [end_date_ymd] => 2025-04-04 16:50:06 [RateCDR] => 1 ) [2025-04-04 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:50:06' and `end` < '2025-04-04 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:50:20] Production.INFO: count ==5225 [2025-04-04 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:50:06 - End Time 2025-04-04 16:50:06 [2025-04-04 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834181', 'tblTempUsageDetail_20' ) start [2025-04-04 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834181', 'tblTempUsageDetail_20' ) end [2025-04-04 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834181', 'tblTempVendorCDR_20' ) start [2025-04-04 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834181', 'tblTempVendorCDR_20' ) end [2025-04-04 16:50:22] Production.INFO: ProcessCDR(1,14834181,1,1,2) [2025-04-04 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834181', 'tblTempUsageDetail_20' ) start [2025-04-04 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834181', 'tblTempUsageDetail_20' ) end [2025-04-04 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:50:27] Production.INFO: ==819== Releasing lock... [2025-04-04 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:50:27] Production.INFO: 67 MB #Memory Used# [2025-04-04 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:51:05 [end_date_ymd] => 2025-04-04 16:51:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:51:05' and `end` < '2025-04-04 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-04 16:51:18] Production.INFO: count ==5300 [2025-04-04 16:51:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:51:05 - End Time 2025-04-04 16:51:05 [2025-04-04 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834186', 'tblTempUsageDetail_20' ) start [2025-04-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834186', 'tblTempUsageDetail_20' ) end [2025-04-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834186', 'tblTempVendorCDR_20' ) start [2025-04-04 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834186', 'tblTempVendorCDR_20' ) end [2025-04-04 16:51:21] Production.INFO: ProcessCDR(1,14834186,1,1,2) [2025-04-04 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834186', 'tblTempUsageDetail_20' ) start [2025-04-04 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834186', 'tblTempUsageDetail_20' ) end [2025-04-04 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:51:26] Production.INFO: ==897== Releasing lock... [2025-04-04 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:51:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:52:05 [end_date_ymd] => 2025-04-04 16:52:05 [RateCDR] => 1 ) [2025-04-04 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:52:05' and `end` < '2025-04-04 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:52:19] Production.INFO: count ==5321 [2025-04-04 16:52:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:52:05 - End Time 2025-04-04 16:52:05 [2025-04-04 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834191', 'tblTempUsageDetail_20' ) start [2025-04-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834191', 'tblTempUsageDetail_20' ) end [2025-04-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834191', 'tblTempVendorCDR_20' ) start [2025-04-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834191', 'tblTempVendorCDR_20' ) end [2025-04-04 16:52:21] Production.INFO: ProcessCDR(1,14834191,1,1,2) [2025-04-04 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834191', 'tblTempUsageDetail_20' ) start [2025-04-04 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834191', 'tblTempUsageDetail_20' ) end [2025-04-04 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:52:26] Production.INFO: ==971== Releasing lock... [2025-04-04 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:52:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:53:05 [end_date_ymd] => 2025-04-04 16:53:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:53:05' and `end` < '2025-04-04 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-04 16:53:19] Production.INFO: count ==5336 [2025-04-04 16:53:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:53:05 - End Time 2025-04-04 16:53:05 [2025-04-04 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834196', 'tblTempUsageDetail_20' ) start [2025-04-04 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834196', 'tblTempUsageDetail_20' ) end [2025-04-04 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834196', 'tblTempVendorCDR_20' ) start [2025-04-04 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834196', 'tblTempVendorCDR_20' ) end [2025-04-04 16:53:21] Production.INFO: ProcessCDR(1,14834196,1,1,2) [2025-04-04 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834196', 'tblTempUsageDetail_20' ) start [2025-04-04 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834196', 'tblTempUsageDetail_20' ) end [2025-04-04 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:53:26] Production.INFO: ==1048== Releasing lock... [2025-04-04 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:53:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:54:06 [end_date_ymd] => 2025-04-04 16:54:06 [RateCDR] => 1 ) [2025-04-04 16: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 13:54:06' and `end` < '2025-04-04 16: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-04 16:54:20] Production.INFO: count ==5346 [2025-04-04 16:54:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:54:06 - End Time 2025-04-04 16:54:06 [2025-04-04 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834201', 'tblTempUsageDetail_20' ) start [2025-04-04 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834201', 'tblTempUsageDetail_20' ) end [2025-04-04 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834201', 'tblTempVendorCDR_20' ) start [2025-04-04 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834201', 'tblTempVendorCDR_20' ) end [2025-04-04 16:54:22] Production.INFO: ProcessCDR(1,14834201,1,1,2) [2025-04-04 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834201', 'tblTempUsageDetail_20' ) start [2025-04-04 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834201', 'tblTempUsageDetail_20' ) end [2025-04-04 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:54:27] Production.INFO: ==1121== Releasing lock... [2025-04-04 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:54:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:55:05 [end_date_ymd] => 2025-04-04 16:55:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:55:05' and `end` < '2025-04-04 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-04 16:55:19] Production.INFO: count ==5363 [2025-04-04 16:55:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:55:05 - End Time 2025-04-04 16:55:05 [2025-04-04 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834206', 'tblTempUsageDetail_20' ) start [2025-04-04 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834206', 'tblTempUsageDetail_20' ) end [2025-04-04 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834206', 'tblTempVendorCDR_20' ) start [2025-04-04 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834206', 'tblTempVendorCDR_20' ) end [2025-04-04 16:55:21] Production.INFO: ProcessCDR(1,14834206,1,1,2) [2025-04-04 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834206', 'tblTempUsageDetail_20' ) start [2025-04-04 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834206', 'tblTempUsageDetail_20' ) end [2025-04-04 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:55:27] Production.INFO: ==1203== Releasing lock... [2025-04-04 16:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:55:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:56:05 [end_date_ymd] => 2025-04-04 16:56:05 [RateCDR] => 1 ) [2025-04-04 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:56:05' and `end` < '2025-04-04 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:56:19] Production.INFO: count ==5357 [2025-04-04 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:56:05 - End Time 2025-04-04 16:56:05 [2025-04-04 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834211', 'tblTempUsageDetail_20' ) start [2025-04-04 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834211', 'tblTempUsageDetail_20' ) end [2025-04-04 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834211', 'tblTempVendorCDR_20' ) start [2025-04-04 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834211', 'tblTempVendorCDR_20' ) end [2025-04-04 16:56:22] Production.INFO: ProcessCDR(1,14834211,1,1,2) [2025-04-04 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834211', 'tblTempUsageDetail_20' ) start [2025-04-04 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834211', 'tblTempUsageDetail_20' ) end [2025-04-04 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:56:27] Production.INFO: ==1289== Releasing lock... [2025-04-04 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:56:27] Production.INFO: 68 MB #Memory Used# [2025-04-04 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:57:05 [end_date_ymd] => 2025-04-04 16:57:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:57:05' and `end` < '2025-04-04 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-04 16:57:19] Production.INFO: count ==5368 [2025-04-04 16:57:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:57:05 - End Time 2025-04-04 16:57:05 [2025-04-04 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834216', 'tblTempUsageDetail_20' ) start [2025-04-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834216', 'tblTempUsageDetail_20' ) end [2025-04-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834216', 'tblTempVendorCDR_20' ) start [2025-04-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834216', 'tblTempVendorCDR_20' ) end [2025-04-04 16:57:21] Production.INFO: ProcessCDR(1,14834216,1,1,2) [2025-04-04 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834216', 'tblTempUsageDetail_20' ) start [2025-04-04 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834216', 'tblTempUsageDetail_20' ) end [2025-04-04 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:57:27] Production.INFO: ==1362== Releasing lock... [2025-04-04 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:57:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:58:05 [end_date_ymd] => 2025-04-04 16:58:05 [RateCDR] => 1 ) [2025-04-04 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 13:58:05' and `end` < '2025-04-04 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 16:58:19] Production.INFO: count ==5361 [2025-04-04 16:58:22] Production.ERROR: pbx CDR StartTime 2025-04-04 13:58:05 - End Time 2025-04-04 16:58:05 [2025-04-04 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834221', 'tblTempUsageDetail_20' ) start [2025-04-04 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834221', 'tblTempUsageDetail_20' ) end [2025-04-04 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834221', 'tblTempVendorCDR_20' ) start [2025-04-04 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834221', 'tblTempVendorCDR_20' ) end [2025-04-04 16:58:22] Production.INFO: ProcessCDR(1,14834221,1,1,2) [2025-04-04 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834221', 'tblTempUsageDetail_20' ) start [2025-04-04 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834221', 'tblTempUsageDetail_20' ) end [2025-04-04 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:58:27] Production.INFO: ==1436== Releasing lock... [2025-04-04 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:58:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-04 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 13:59:05 [end_date_ymd] => 2025-04-04 16:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 13:59:05' and `end` < '2025-04-04 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-04 16:59:19] Production.INFO: count ==5356 [2025-04-04 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-04 13:59:05 - End Time 2025-04-04 16:59:05 [2025-04-04 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834226', 'tblTempUsageDetail_20' ) start [2025-04-04 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834226', 'tblTempUsageDetail_20' ) end [2025-04-04 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834226', 'tblTempVendorCDR_20' ) start [2025-04-04 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834226', 'tblTempVendorCDR_20' ) end [2025-04-04 16:59:21] Production.INFO: ProcessCDR(1,14834226,1,1,2) [2025-04-04 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834226', 'tblTempUsageDetail_20' ) start [2025-04-04 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834226', 'tblTempUsageDetail_20' ) end [2025-04-04 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 16:59:26] Production.INFO: ==1544== Releasing lock... [2025-04-04 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 16:59:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:00:06 [end_date_ymd] => 2025-04-04 17:00:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:00:06' and `end` < '2025-04-04 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-04 17:00:20] Production.INFO: count ==5344 [2025-04-04 17:00:23] Production.ERROR: pbx CDR StartTime 2025-04-04 14:00:06 - End Time 2025-04-04 17:00:06 [2025-04-04 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834232', 'tblTempUsageDetail_20' ) start [2025-04-04 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834232', 'tblTempUsageDetail_20' ) end [2025-04-04 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834232', 'tblTempVendorCDR_20' ) start [2025-04-04 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834232', 'tblTempVendorCDR_20' ) end [2025-04-04 17:00:23] Production.INFO: ProcessCDR(1,14834232,1,1,2) [2025-04-04 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834232', 'tblTempUsageDetail_20' ) start [2025-04-04 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834232', 'tblTempUsageDetail_20' ) end [2025-04-04 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:00:28] Production.INFO: ==1626== Releasing lock... [2025-04-04 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:00:28] Production.INFO: 68 MB #Memory Used# [2025-04-04 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:01:05 [end_date_ymd] => 2025-04-04 17:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:01:05' and `end` < '2025-04-04 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-04 17:01:18] Production.INFO: count ==5340 [2025-04-04 17:01:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:01:05 - End Time 2025-04-04 17:01:05 [2025-04-04 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834237', 'tblTempUsageDetail_20' ) start [2025-04-04 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834237', 'tblTempUsageDetail_20' ) end [2025-04-04 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834237', 'tblTempVendorCDR_20' ) start [2025-04-04 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834237', 'tblTempVendorCDR_20' ) end [2025-04-04 17:01:21] Production.INFO: ProcessCDR(1,14834237,1,1,2) [2025-04-04 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834237', 'tblTempUsageDetail_20' ) start [2025-04-04 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834237', 'tblTempUsageDetail_20' ) end [2025-04-04 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:01:26] Production.INFO: ==1751== Releasing lock... [2025-04-04 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:01:26] Production.INFO: 68 MB #Memory Used# [2025-04-04 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:02:05 [end_date_ymd] => 2025-04-04 17:02:05 [RateCDR] => 1 ) [2025-04-04 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:02:05' and `end` < '2025-04-04 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:02:19] Production.INFO: count ==5327 [2025-04-04 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:02:05 - End Time 2025-04-04 17:02:05 [2025-04-04 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834242', 'tblTempUsageDetail_20' ) start [2025-04-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834242', 'tblTempUsageDetail_20' ) end [2025-04-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834242', 'tblTempVendorCDR_20' ) start [2025-04-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834242', 'tblTempVendorCDR_20' ) end [2025-04-04 17:02:21] Production.INFO: ProcessCDR(1,14834242,1,1,2) [2025-04-04 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834242', 'tblTempUsageDetail_20' ) start [2025-04-04 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834242', 'tblTempUsageDetail_20' ) end [2025-04-04 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:02:27] Production.INFO: ==1833== Releasing lock... [2025-04-04 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:02:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:03:05 [end_date_ymd] => 2025-04-04 17:03:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:03:05' and `end` < '2025-04-04 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-04 17:03:18] Production.INFO: count ==5299 [2025-04-04 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:03:05 - End Time 2025-04-04 17:03:05 [2025-04-04 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834247', 'tblTempUsageDetail_20' ) start [2025-04-04 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834247', 'tblTempUsageDetail_20' ) end [2025-04-04 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834247', 'tblTempVendorCDR_20' ) start [2025-04-04 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834247', 'tblTempVendorCDR_20' ) end [2025-04-04 17:03:21] Production.INFO: ProcessCDR(1,14834247,1,1,2) [2025-04-04 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834247', 'tblTempUsageDetail_20' ) start [2025-04-04 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834247', 'tblTempUsageDetail_20' ) end [2025-04-04 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:03:24] Production.INFO: ==1903== Releasing lock... [2025-04-04 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:03:24] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:04:05 [end_date_ymd] => 2025-04-04 17:04:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:04:05' and `end` < '2025-04-04 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-04 17:04:19] Production.INFO: count ==5309 [2025-04-04 17:04:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:04:05 - End Time 2025-04-04 17:04:05 [2025-04-04 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834252', 'tblTempUsageDetail_20' ) start [2025-04-04 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834252', 'tblTempUsageDetail_20' ) end [2025-04-04 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834252', 'tblTempVendorCDR_20' ) start [2025-04-04 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834252', 'tblTempVendorCDR_20' ) end [2025-04-04 17:04:21] Production.INFO: ProcessCDR(1,14834252,1,1,2) [2025-04-04 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834252', 'tblTempUsageDetail_20' ) start [2025-04-04 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834252', 'tblTempUsageDetail_20' ) end [2025-04-04 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:04:25] Production.INFO: ==1980== Releasing lock... [2025-04-04 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:04:25] Production.INFO: 67.75 MB #Memory Used# [2025-04-04 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:05:05 [end_date_ymd] => 2025-04-04 17:05:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:05:05' and `end` < '2025-04-04 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-04 17:05:19] Production.INFO: count ==5281 [2025-04-04 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:05:05 - End Time 2025-04-04 17:05:05 [2025-04-04 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834257', 'tblTempUsageDetail_20' ) start [2025-04-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834257', 'tblTempUsageDetail_20' ) end [2025-04-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834257', 'tblTempVendorCDR_20' ) start [2025-04-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834257', 'tblTempVendorCDR_20' ) end [2025-04-04 17:05:21] Production.INFO: ProcessCDR(1,14834257,1,1,2) [2025-04-04 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834257', 'tblTempUsageDetail_20' ) start [2025-04-04 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834257', 'tblTempUsageDetail_20' ) end [2025-04-04 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:05:27] Production.INFO: ==2063== Releasing lock... [2025-04-04 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:05:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-04 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:06:06 [end_date_ymd] => 2025-04-04 17:06:06 [RateCDR] => 1 ) [2025-04-04 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:06:06' and `end` < '2025-04-04 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:06:20] Production.INFO: count ==5246 [2025-04-04 17:06:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:06:06 - End Time 2025-04-04 17:06:06 [2025-04-04 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834262', 'tblTempUsageDetail_20' ) start [2025-04-04 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834262', 'tblTempUsageDetail_20' ) end [2025-04-04 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834262', 'tblTempVendorCDR_20' ) start [2025-04-04 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834262', 'tblTempVendorCDR_20' ) end [2025-04-04 17:06:22] Production.INFO: ProcessCDR(1,14834262,1,1,2) [2025-04-04 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834262', 'tblTempUsageDetail_20' ) start [2025-04-04 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834262', 'tblTempUsageDetail_20' ) end [2025-04-04 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:06:27] Production.INFO: ==2144== Releasing lock... [2025-04-04 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:06:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-04 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:07:05 [end_date_ymd] => 2025-04-04 17:07:05 [RateCDR] => 1 ) [2025-04-04 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:07:05' and `end` < '2025-04-04 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:07:18] Production.INFO: count ==5217 [2025-04-04 17:07:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:07:05 - End Time 2025-04-04 17:07:05 [2025-04-04 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834267', 'tblTempUsageDetail_20' ) start [2025-04-04 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834267', 'tblTempUsageDetail_20' ) end [2025-04-04 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834267', 'tblTempVendorCDR_20' ) start [2025-04-04 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834267', 'tblTempVendorCDR_20' ) end [2025-04-04 17:07:21] Production.INFO: ProcessCDR(1,14834267,1,1,2) [2025-04-04 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834267', 'tblTempUsageDetail_20' ) start [2025-04-04 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834267', 'tblTempUsageDetail_20' ) end [2025-04-04 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:07:26] Production.INFO: ==2214== Releasing lock... [2025-04-04 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:07:26] Production.INFO: 67 MB #Memory Used# [2025-04-04 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:08:06 [end_date_ymd] => 2025-04-04 17:08:06 [RateCDR] => 1 ) [2025-04-04 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:08:06' and `end` < '2025-04-04 17:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:08:19] Production.INFO: count ==5188 [2025-04-04 17:08:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:08:06 - End Time 2025-04-04 17:08:06 [2025-04-04 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834272', 'tblTempUsageDetail_20' ) start [2025-04-04 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834272', 'tblTempUsageDetail_20' ) end [2025-04-04 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834272', 'tblTempVendorCDR_20' ) start [2025-04-04 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834272', 'tblTempVendorCDR_20' ) end [2025-04-04 17:08:22] Production.INFO: ProcessCDR(1,14834272,1,1,2) [2025-04-04 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834272', 'tblTempUsageDetail_20' ) start [2025-04-04 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834272', 'tblTempUsageDetail_20' ) end [2025-04-04 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:08:27] Production.INFO: ==2293== Releasing lock... [2025-04-04 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:08:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:09:05 [end_date_ymd] => 2025-04-04 17:09:05 [RateCDR] => 1 ) [2025-04-04 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:09:05' and `end` < '2025-04-04 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:09:19] Production.INFO: count ==5176 [2025-04-04 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:09:05 - End Time 2025-04-04 17:09:05 [2025-04-04 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834277', 'tblTempUsageDetail_20' ) start [2025-04-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834277', 'tblTempUsageDetail_20' ) end [2025-04-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834277', 'tblTempVendorCDR_20' ) start [2025-04-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834277', 'tblTempVendorCDR_20' ) end [2025-04-04 17:09:21] Production.INFO: ProcessCDR(1,14834277,1,1,2) [2025-04-04 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834277', 'tblTempUsageDetail_20' ) start [2025-04-04 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834277', 'tblTempUsageDetail_20' ) end [2025-04-04 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:09:26] Production.INFO: ==2367== Releasing lock... [2025-04-04 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:09:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:10:06 [end_date_ymd] => 2025-04-04 17:10:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:10:06' and `end` < '2025-04-04 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-04 17:10:20] Production.INFO: count ==5175 [2025-04-04 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:10:06 - End Time 2025-04-04 17:10:06 [2025-04-04 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834282', 'tblTempUsageDetail_20' ) start [2025-04-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834282', 'tblTempUsageDetail_20' ) end [2025-04-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834282', 'tblTempVendorCDR_20' ) start [2025-04-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834282', 'tblTempVendorCDR_20' ) end [2025-04-04 17:10:22] Production.INFO: ProcessCDR(1,14834282,1,1,2) [2025-04-04 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834282', 'tblTempUsageDetail_20' ) start [2025-04-04 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834282', 'tblTempUsageDetail_20' ) end [2025-04-04 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:10:26] Production.INFO: ==2443== Releasing lock... [2025-04-04 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:10:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-04 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:11:05 [end_date_ymd] => 2025-04-04 17:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:11:05' and `end` < '2025-04-04 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-04 17:11:18] Production.INFO: count ==5157 [2025-04-04 17:11:20] Production.ERROR: pbx CDR StartTime 2025-04-04 14:11:05 - End Time 2025-04-04 17:11:05 [2025-04-04 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834288', 'tblTempUsageDetail_20' ) start [2025-04-04 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834288', 'tblTempUsageDetail_20' ) end [2025-04-04 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834288', 'tblTempVendorCDR_20' ) start [2025-04-04 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834288', 'tblTempVendorCDR_20' ) end [2025-04-04 17:11:21] Production.INFO: ProcessCDR(1,14834288,1,1,2) [2025-04-04 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834288', 'tblTempUsageDetail_20' ) start [2025-04-04 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834288', 'tblTempUsageDetail_20' ) end [2025-04-04 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:11:26] Production.INFO: ==2522== Releasing lock... [2025-04-04 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:11:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:12:05 [end_date_ymd] => 2025-04-04 17:12:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:12:05' and `end` < '2025-04-04 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-04 17:12:19] Production.INFO: count ==5138 [2025-04-04 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:12:05 - End Time 2025-04-04 17:12:05 [2025-04-04 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834293', 'tblTempUsageDetail_20' ) start [2025-04-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834293', 'tblTempUsageDetail_20' ) end [2025-04-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834293', 'tblTempVendorCDR_20' ) start [2025-04-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834293', 'tblTempVendorCDR_20' ) end [2025-04-04 17:12:21] Production.INFO: ProcessCDR(1,14834293,1,1,2) [2025-04-04 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834293', 'tblTempUsageDetail_20' ) start [2025-04-04 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834293', 'tblTempUsageDetail_20' ) end [2025-04-04 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:12:26] Production.INFO: ==2600== Releasing lock... [2025-04-04 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:12:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:13:05 [end_date_ymd] => 2025-04-04 17:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:13:05' and `end` < '2025-04-04 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-04 17:13:18] Production.INFO: count ==5140 [2025-04-04 17:13:20] Production.ERROR: pbx CDR StartTime 2025-04-04 14:13:05 - End Time 2025-04-04 17:13:05 [2025-04-04 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834298', 'tblTempUsageDetail_20' ) start [2025-04-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834298', 'tblTempUsageDetail_20' ) end [2025-04-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834298', 'tblTempVendorCDR_20' ) start [2025-04-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834298', 'tblTempVendorCDR_20' ) end [2025-04-04 17:13:21] Production.INFO: ProcessCDR(1,14834298,1,1,2) [2025-04-04 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834298', 'tblTempUsageDetail_20' ) start [2025-04-04 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834298', 'tblTempUsageDetail_20' ) end [2025-04-04 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:13:26] Production.INFO: ==2673== Releasing lock... [2025-04-04 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:13:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:14:06 [end_date_ymd] => 2025-04-04 17:14:06 [RateCDR] => 1 ) [2025-04-04 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:14:06' and `end` < '2025-04-04 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:14:19] Production.INFO: count ==5134 [2025-04-04 17:14:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:14:06 - End Time 2025-04-04 17:14:06 [2025-04-04 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834303', 'tblTempUsageDetail_20' ) start [2025-04-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834303', 'tblTempUsageDetail_20' ) end [2025-04-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834303', 'tblTempVendorCDR_20' ) start [2025-04-04 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834303', 'tblTempVendorCDR_20' ) end [2025-04-04 17:14:22] Production.INFO: ProcessCDR(1,14834303,1,1,2) [2025-04-04 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834303', 'tblTempUsageDetail_20' ) start [2025-04-04 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834303', 'tblTempUsageDetail_20' ) end [2025-04-04 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:14:27] Production.INFO: ==2748== Releasing lock... [2025-04-04 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:14:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:15:05 [end_date_ymd] => 2025-04-04 17:15:05 [RateCDR] => 1 ) [2025-04-04 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:15:05' and `end` < '2025-04-04 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:15:19] Production.INFO: count ==5111 [2025-04-04 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:15:05 - End Time 2025-04-04 17:15:05 [2025-04-04 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834308', 'tblTempUsageDetail_20' ) start [2025-04-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834308', 'tblTempUsageDetail_20' ) end [2025-04-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834308', 'tblTempVendorCDR_20' ) start [2025-04-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834308', 'tblTempVendorCDR_20' ) end [2025-04-04 17:15:21] Production.INFO: ProcessCDR(1,14834308,1,1,2) [2025-04-04 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834308', 'tblTempUsageDetail_20' ) start [2025-04-04 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834308', 'tblTempUsageDetail_20' ) end [2025-04-04 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:15:26] Production.INFO: ==2822== Releasing lock... [2025-04-04 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:15:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:16:06 [end_date_ymd] => 2025-04-04 17:16:06 [RateCDR] => 1 ) [2025-04-04 17: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 14:16:06' and `end` < '2025-04-04 17: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-04 17:16:19] Production.INFO: count ==5128 [2025-04-04 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:16:06 - End Time 2025-04-04 17:16:06 [2025-04-04 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834313', 'tblTempUsageDetail_20' ) start [2025-04-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834313', 'tblTempUsageDetail_20' ) end [2025-04-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834313', 'tblTempVendorCDR_20' ) start [2025-04-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834313', 'tblTempVendorCDR_20' ) end [2025-04-04 17:16:21] Production.INFO: ProcessCDR(1,14834313,1,1,2) [2025-04-04 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834313', 'tblTempUsageDetail_20' ) start [2025-04-04 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834313', 'tblTempUsageDetail_20' ) end [2025-04-04 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:16:27] Production.INFO: ==2936== Releasing lock... [2025-04-04 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:16:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:17:06 [end_date_ymd] => 2025-04-04 17:17:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:17:06' and `end` < '2025-04-04 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-04 17:17:20] Production.INFO: count ==5128 [2025-04-04 17:17:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:17:06 - End Time 2025-04-04 17:17:06 [2025-04-04 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834318', 'tblTempUsageDetail_20' ) start [2025-04-04 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834318', 'tblTempUsageDetail_20' ) end [2025-04-04 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834318', 'tblTempVendorCDR_20' ) start [2025-04-04 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834318', 'tblTempVendorCDR_20' ) end [2025-04-04 17:17:22] Production.INFO: ProcessCDR(1,14834318,1,1,2) [2025-04-04 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834318', 'tblTempUsageDetail_20' ) start [2025-04-04 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834318', 'tblTempUsageDetail_20' ) end [2025-04-04 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:17:27] Production.INFO: ==3011== Releasing lock... [2025-04-04 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:17:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-04 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:18:05 [end_date_ymd] => 2025-04-04 17:18:05 [RateCDR] => 1 ) [2025-04-04 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:18:05' and `end` < '2025-04-04 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:18:19] Production.INFO: count ==5104 [2025-04-04 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:18:05 - End Time 2025-04-04 17:18:05 [2025-04-04 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834323', 'tblTempUsageDetail_20' ) start [2025-04-04 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834323', 'tblTempUsageDetail_20' ) end [2025-04-04 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834323', 'tblTempVendorCDR_20' ) start [2025-04-04 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834323', 'tblTempVendorCDR_20' ) end [2025-04-04 17:18:22] Production.INFO: ProcessCDR(1,14834323,1,1,2) [2025-04-04 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834323', 'tblTempUsageDetail_20' ) start [2025-04-04 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834323', 'tblTempUsageDetail_20' ) end [2025-04-04 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:18:27] Production.INFO: ==3099== Releasing lock... [2025-04-04 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:18:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:19:06 [end_date_ymd] => 2025-04-04 17:19:06 [RateCDR] => 1 ) [2025-04-04 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:19:06' and `end` < '2025-04-04 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:19:20] Production.INFO: count ==5104 [2025-04-04 17:19:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:19:06 - End Time 2025-04-04 17:19:06 [2025-04-04 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834328', 'tblTempUsageDetail_20' ) start [2025-04-04 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834328', 'tblTempUsageDetail_20' ) end [2025-04-04 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834328', 'tblTempVendorCDR_20' ) start [2025-04-04 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834328', 'tblTempVendorCDR_20' ) end [2025-04-04 17:19:22] Production.INFO: ProcessCDR(1,14834328,1,1,2) [2025-04-04 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834328', 'tblTempUsageDetail_20' ) start [2025-04-04 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834328', 'tblTempUsageDetail_20' ) end [2025-04-04 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:19:27] Production.INFO: ==3177== Releasing lock... [2025-04-04 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:19:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:20:06 [end_date_ymd] => 2025-04-04 17:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:20:06' and `end` < '2025-04-04 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-04 17:20:19] Production.INFO: count ==5109 [2025-04-04 17:20:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:20:06 - End Time 2025-04-04 17:20:06 [2025-04-04 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834333', 'tblTempUsageDetail_20' ) start [2025-04-04 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834333', 'tblTempUsageDetail_20' ) end [2025-04-04 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834333', 'tblTempVendorCDR_20' ) start [2025-04-04 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834333', 'tblTempVendorCDR_20' ) end [2025-04-04 17:20:22] Production.INFO: ProcessCDR(1,14834333,1,1,2) [2025-04-04 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834333', 'tblTempUsageDetail_20' ) start [2025-04-04 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834333', 'tblTempUsageDetail_20' ) end [2025-04-04 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:20:27] Production.INFO: ==3255== Releasing lock... [2025-04-04 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:20:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:21:06 [end_date_ymd] => 2025-04-04 17:21:06 [RateCDR] => 1 ) [2025-04-04 17: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-04 14:21:06' and `end` < '2025-04-04 17: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-04 17:21:19] Production.INFO: count ==5128 [2025-04-04 17:21:23] Production.ERROR: pbx CDR StartTime 2025-04-04 14:21:06 - End Time 2025-04-04 17:21:06 [2025-04-04 17:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834339', 'tblTempUsageDetail_20' ) start [2025-04-04 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834339', 'tblTempUsageDetail_20' ) end [2025-04-04 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834339', 'tblTempVendorCDR_20' ) start [2025-04-04 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834339', 'tblTempVendorCDR_20' ) end [2025-04-04 17:21:23] Production.INFO: ProcessCDR(1,14834339,1,1,2) [2025-04-04 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834339', 'tblTempUsageDetail_20' ) start [2025-04-04 17:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834339', 'tblTempUsageDetail_20' ) end [2025-04-04 17:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:21:28] Production.INFO: ==3330== Releasing lock... [2025-04-04 17:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:21:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:22:05 [end_date_ymd] => 2025-04-04 17:22:05 [RateCDR] => 1 ) [2025-04-04 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:22:05' and `end` < '2025-04-04 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:22:19] Production.INFO: count ==5122 [2025-04-04 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:22:05 - End Time 2025-04-04 17:22:05 [2025-04-04 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834344', 'tblTempUsageDetail_20' ) start [2025-04-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834344', 'tblTempUsageDetail_20' ) end [2025-04-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834344', 'tblTempVendorCDR_20' ) start [2025-04-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834344', 'tblTempVendorCDR_20' ) end [2025-04-04 17:22:21] Production.INFO: ProcessCDR(1,14834344,1,1,2) [2025-04-04 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834344', 'tblTempUsageDetail_20' ) start [2025-04-04 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834344', 'tblTempUsageDetail_20' ) end [2025-04-04 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:22:26] Production.INFO: ==3448== Releasing lock... [2025-04-04 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:22:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:23:06 [end_date_ymd] => 2025-04-04 17:23:06 [RateCDR] => 1 ) [2025-04-04 17: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-04 14:23:06' and `end` < '2025-04-04 17: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-04 17:23:19] Production.INFO: count ==5094 [2025-04-04 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:23:06 - End Time 2025-04-04 17:23:06 [2025-04-04 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834349', 'tblTempUsageDetail_20' ) start [2025-04-04 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834349', 'tblTempUsageDetail_20' ) end [2025-04-04 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834349', 'tblTempVendorCDR_20' ) start [2025-04-04 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834349', 'tblTempVendorCDR_20' ) end [2025-04-04 17:23:22] Production.INFO: ProcessCDR(1,14834349,1,1,2) [2025-04-04 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834349', 'tblTempUsageDetail_20' ) start [2025-04-04 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834349', 'tblTempUsageDetail_20' ) end [2025-04-04 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:23:27] Production.INFO: ==3566== Releasing lock... [2025-04-04 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:23:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:24:05 [end_date_ymd] => 2025-04-04 17:24:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:24:05' and `end` < '2025-04-04 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-04 17:24:19] Production.INFO: count ==5082 [2025-04-04 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:24:05 - End Time 2025-04-04 17:24:05 [2025-04-04 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834354', 'tblTempUsageDetail_20' ) start [2025-04-04 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834354', 'tblTempUsageDetail_20' ) end [2025-04-04 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834354', 'tblTempVendorCDR_20' ) start [2025-04-04 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834354', 'tblTempVendorCDR_20' ) end [2025-04-04 17:24:21] Production.INFO: ProcessCDR(1,14834354,1,1,2) [2025-04-04 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834354', 'tblTempUsageDetail_20' ) start [2025-04-04 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834354', 'tblTempUsageDetail_20' ) end [2025-04-04 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:24:26] Production.INFO: ==3640== Releasing lock... [2025-04-04 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:24:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:25:05 [end_date_ymd] => 2025-04-04 17:25:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:25:05' and `end` < '2025-04-04 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-04 17:25:19] Production.INFO: count ==5086 [2025-04-04 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:25:05 - End Time 2025-04-04 17:25:05 [2025-04-04 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834359', 'tblTempUsageDetail_20' ) start [2025-04-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834359', 'tblTempUsageDetail_20' ) end [2025-04-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834359', 'tblTempVendorCDR_20' ) start [2025-04-04 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834359', 'tblTempVendorCDR_20' ) end [2025-04-04 17:25:21] Production.INFO: ProcessCDR(1,14834359,1,1,2) [2025-04-04 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834359', 'tblTempUsageDetail_20' ) start [2025-04-04 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834359', 'tblTempUsageDetail_20' ) end [2025-04-04 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:25:27] Production.INFO: ==3716== Releasing lock... [2025-04-04 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:25:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:26:05 [end_date_ymd] => 2025-04-04 17:26:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:26:05' and `end` < '2025-04-04 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-04 17:26:19] Production.INFO: count ==5083 [2025-04-04 17:26:20] Production.ERROR: pbx CDR StartTime 2025-04-04 14:26:05 - End Time 2025-04-04 17:26:05 [2025-04-04 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834364', 'tblTempUsageDetail_20' ) start [2025-04-04 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834364', 'tblTempUsageDetail_20' ) end [2025-04-04 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834364', 'tblTempVendorCDR_20' ) start [2025-04-04 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834364', 'tblTempVendorCDR_20' ) end [2025-04-04 17:26:21] Production.INFO: ProcessCDR(1,14834364,1,1,2) [2025-04-04 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834364', 'tblTempUsageDetail_20' ) start [2025-04-04 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834364', 'tblTempUsageDetail_20' ) end [2025-04-04 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:26:26] Production.INFO: ==3795== Releasing lock... [2025-04-04 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:26:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:27:06 [end_date_ymd] => 2025-04-04 17:27:06 [RateCDR] => 1 ) [2025-04-04 17: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-04 14:27:06' and `end` < '2025-04-04 17: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-04 17:27:19] Production.INFO: count ==5081 [2025-04-04 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:27:06 - End Time 2025-04-04 17:27:06 [2025-04-04 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834369', 'tblTempUsageDetail_20' ) start [2025-04-04 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834369', 'tblTempUsageDetail_20' ) end [2025-04-04 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834369', 'tblTempVendorCDR_20' ) start [2025-04-04 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834369', 'tblTempVendorCDR_20' ) end [2025-04-04 17:27:22] Production.INFO: ProcessCDR(1,14834369,1,1,2) [2025-04-04 17:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834369', 'tblTempUsageDetail_20' ) start [2025-04-04 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834369', 'tblTempUsageDetail_20' ) end [2025-04-04 17:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:27:27] Production.INFO: ==3870== Releasing lock... [2025-04-04 17:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:27:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:28:05 [end_date_ymd] => 2025-04-04 17:28:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:28:05' and `end` < '2025-04-04 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-04 17:28:19] Production.INFO: count ==5078 [2025-04-04 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:28:05 - End Time 2025-04-04 17:28:05 [2025-04-04 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834374', 'tblTempUsageDetail_20' ) start [2025-04-04 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834374', 'tblTempUsageDetail_20' ) end [2025-04-04 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834374', 'tblTempVendorCDR_20' ) start [2025-04-04 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834374', 'tblTempVendorCDR_20' ) end [2025-04-04 17:28:21] Production.INFO: ProcessCDR(1,14834374,1,1,2) [2025-04-04 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834374', 'tblTempUsageDetail_20' ) start [2025-04-04 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834374', 'tblTempUsageDetail_20' ) end [2025-04-04 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:28:27] Production.INFO: ==3943== Releasing lock... [2025-04-04 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:28:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:29:05 [end_date_ymd] => 2025-04-04 17:29:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:29:05' and `end` < '2025-04-04 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-04 17:29:19] Production.INFO: count ==5077 [2025-04-04 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:29:05 - End Time 2025-04-04 17:29:05 [2025-04-04 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834379', 'tblTempUsageDetail_20' ) start [2025-04-04 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834379', 'tblTempUsageDetail_20' ) end [2025-04-04 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834379', 'tblTempVendorCDR_20' ) start [2025-04-04 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834379', 'tblTempVendorCDR_20' ) end [2025-04-04 17:29:21] Production.INFO: ProcessCDR(1,14834379,1,1,2) [2025-04-04 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834379', 'tblTempUsageDetail_20' ) start [2025-04-04 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834379', 'tblTempUsageDetail_20' ) end [2025-04-04 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:29:26] Production.INFO: ==4017== Releasing lock... [2025-04-04 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:29:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:30:06 [end_date_ymd] => 2025-04-04 17:30:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:30:06' and `end` < '2025-04-04 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-04 17:30:20] Production.INFO: count ==5076 [2025-04-04 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:30:06 - End Time 2025-04-04 17:30:06 [2025-04-04 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834385', 'tblTempUsageDetail_20' ) start [2025-04-04 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834385', 'tblTempUsageDetail_20' ) end [2025-04-04 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834385', 'tblTempVendorCDR_20' ) start [2025-04-04 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834385', 'tblTempVendorCDR_20' ) end [2025-04-04 17:30:23] Production.INFO: ProcessCDR(1,14834385,1,1,2) [2025-04-04 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834385', 'tblTempUsageDetail_20' ) start [2025-04-04 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834385', 'tblTempUsageDetail_20' ) end [2025-04-04 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:30:28] Production.INFO: ==4099== Releasing lock... [2025-04-04 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:30:28] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:31:05 [end_date_ymd] => 2025-04-04 17:31:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:31:05' and `end` < '2025-04-04 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-04 17:31:19] Production.INFO: count ==5108 [2025-04-04 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:31:05 - End Time 2025-04-04 17:31:05 [2025-04-04 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834390', 'tblTempUsageDetail_20' ) start [2025-04-04 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834390', 'tblTempUsageDetail_20' ) end [2025-04-04 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834390', 'tblTempVendorCDR_20' ) start [2025-04-04 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834390', 'tblTempVendorCDR_20' ) end [2025-04-04 17:31:21] Production.INFO: ProcessCDR(1,14834390,1,1,2) [2025-04-04 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834390', 'tblTempUsageDetail_20' ) start [2025-04-04 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834390', 'tblTempUsageDetail_20' ) end [2025-04-04 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:31:26] Production.INFO: ==4171== Releasing lock... [2025-04-04 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:31:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:32:06 [end_date_ymd] => 2025-04-04 17:32:06 [RateCDR] => 1 ) [2025-04-04 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:32:06' and `end` < '2025-04-04 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:32:20] Production.INFO: count ==5100 [2025-04-04 17:32:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:32:06 - End Time 2025-04-04 17:32:06 [2025-04-04 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834395', 'tblTempUsageDetail_20' ) start [2025-04-04 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834395', 'tblTempUsageDetail_20' ) end [2025-04-04 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834395', 'tblTempVendorCDR_20' ) start [2025-04-04 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834395', 'tblTempVendorCDR_20' ) end [2025-04-04 17:32:22] Production.INFO: ProcessCDR(1,14834395,1,1,2) [2025-04-04 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834395', 'tblTempUsageDetail_20' ) start [2025-04-04 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834395', 'tblTempUsageDetail_20' ) end [2025-04-04 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:32:27] Production.INFO: ==4285== Releasing lock... [2025-04-04 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:32:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:33:05 [end_date_ymd] => 2025-04-04 17:33:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:33:05' and `end` < '2025-04-04 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-04 17:33:19] Production.INFO: count ==5088 [2025-04-04 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:33:05 - End Time 2025-04-04 17:33:05 [2025-04-04 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834400', 'tblTempUsageDetail_20' ) start [2025-04-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834400', 'tblTempUsageDetail_20' ) end [2025-04-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834400', 'tblTempVendorCDR_20' ) start [2025-04-04 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834400', 'tblTempVendorCDR_20' ) end [2025-04-04 17:33:21] Production.INFO: ProcessCDR(1,14834400,1,1,2) [2025-04-04 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834400', 'tblTempUsageDetail_20' ) start [2025-04-04 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834400', 'tblTempUsageDetail_20' ) end [2025-04-04 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:33:26] Production.INFO: ==4361== Releasing lock... [2025-04-04 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:33:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:34:05 [end_date_ymd] => 2025-04-04 17:34:05 [RateCDR] => 1 ) [2025-04-04 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:34:05' and `end` < '2025-04-04 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:34:19] Production.INFO: count ==5085 [2025-04-04 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:34:05 - End Time 2025-04-04 17:34:05 [2025-04-04 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834405', 'tblTempUsageDetail_20' ) start [2025-04-04 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834405', 'tblTempUsageDetail_20' ) end [2025-04-04 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834405', 'tblTempVendorCDR_20' ) start [2025-04-04 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834405', 'tblTempVendorCDR_20' ) end [2025-04-04 17:34:21] Production.INFO: ProcessCDR(1,14834405,1,1,2) [2025-04-04 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834405', 'tblTempUsageDetail_20' ) start [2025-04-04 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834405', 'tblTempUsageDetail_20' ) end [2025-04-04 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:34:27] Production.INFO: ==4442== Releasing lock... [2025-04-04 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:34:27] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:35:06 [end_date_ymd] => 2025-04-04 17:35:06 [RateCDR] => 1 ) [2025-04-04 17: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 14:35:06' and `end` < '2025-04-04 17: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-04 17:35:19] Production.INFO: count ==5092 [2025-04-04 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:35:06 - End Time 2025-04-04 17:35:06 [2025-04-04 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834410', 'tblTempUsageDetail_20' ) start [2025-04-04 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834410', 'tblTempUsageDetail_20' ) end [2025-04-04 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834410', 'tblTempVendorCDR_20' ) start [2025-04-04 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834410', 'tblTempVendorCDR_20' ) end [2025-04-04 17:35:21] Production.INFO: ProcessCDR(1,14834410,1,1,2) [2025-04-04 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834410', 'tblTempUsageDetail_20' ) start [2025-04-04 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834410', 'tblTempUsageDetail_20' ) end [2025-04-04 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:35:26] Production.INFO: ==4516== Releasing lock... [2025-04-04 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:35:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:36:06 [end_date_ymd] => 2025-04-04 17:36:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:36:06' and `end` < '2025-04-04 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-04 17:36:20] Production.INFO: count ==5097 [2025-04-04 17:36:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:36:06 - End Time 2025-04-04 17:36:06 [2025-04-04 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834415', 'tblTempUsageDetail_20' ) start [2025-04-04 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834415', 'tblTempUsageDetail_20' ) end [2025-04-04 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834415', 'tblTempVendorCDR_20' ) start [2025-04-04 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834415', 'tblTempVendorCDR_20' ) end [2025-04-04 17:36:22] Production.INFO: ProcessCDR(1,14834415,1,1,2) [2025-04-04 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834415', 'tblTempUsageDetail_20' ) start [2025-04-04 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834415', 'tblTempUsageDetail_20' ) end [2025-04-04 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:36:27] Production.INFO: ==4598== Releasing lock... [2025-04-04 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:36:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-04 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:37:05 [end_date_ymd] => 2025-04-04 17:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:37:05' and `end` < '2025-04-04 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-04 17:37:19] Production.INFO: count ==5074 [2025-04-04 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:37:05 - End Time 2025-04-04 17:37:05 [2025-04-04 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834420', 'tblTempUsageDetail_20' ) start [2025-04-04 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834420', 'tblTempUsageDetail_20' ) end [2025-04-04 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834420', 'tblTempVendorCDR_20' ) start [2025-04-04 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834420', 'tblTempVendorCDR_20' ) end [2025-04-04 17:37:21] Production.INFO: ProcessCDR(1,14834420,1,1,2) [2025-04-04 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834420', 'tblTempUsageDetail_20' ) start [2025-04-04 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834420', 'tblTempUsageDetail_20' ) end [2025-04-04 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:37:26] Production.INFO: ==4676== Releasing lock... [2025-04-04 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:37:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:38:06 [end_date_ymd] => 2025-04-04 17:38:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:38:06' and `end` < '2025-04-04 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-04 17:38:19] Production.INFO: count ==5074 [2025-04-04 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:38:06 - End Time 2025-04-04 17:38:06 [2025-04-04 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834425', 'tblTempUsageDetail_20' ) start [2025-04-04 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834425', 'tblTempUsageDetail_20' ) end [2025-04-04 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834425', 'tblTempVendorCDR_20' ) start [2025-04-04 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834425', 'tblTempVendorCDR_20' ) end [2025-04-04 17:38:21] Production.INFO: ProcessCDR(1,14834425,1,1,2) [2025-04-04 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834425', 'tblTempUsageDetail_20' ) start [2025-04-04 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834425', 'tblTempUsageDetail_20' ) end [2025-04-04 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:38:25] Production.INFO: ==4752== Releasing lock... [2025-04-04 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:38:25] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:39:05 [end_date_ymd] => 2025-04-04 17:39:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:39:05' and `end` < '2025-04-04 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-04 17:39:19] Production.INFO: count ==5073 [2025-04-04 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:39:05 - End Time 2025-04-04 17:39:05 [2025-04-04 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834430', 'tblTempUsageDetail_20' ) start [2025-04-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834430', 'tblTempUsageDetail_20' ) end [2025-04-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834430', 'tblTempVendorCDR_20' ) start [2025-04-04 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834430', 'tblTempVendorCDR_20' ) end [2025-04-04 17:39:21] Production.INFO: ProcessCDR(1,14834430,1,1,2) [2025-04-04 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834430', 'tblTempUsageDetail_20' ) start [2025-04-04 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834430', 'tblTempUsageDetail_20' ) end [2025-04-04 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:39:26] Production.INFO: ==4825== Releasing lock... [2025-04-04 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:39:26] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:40:07 [end_date_ymd] => 2025-04-04 17:40:07 [RateCDR] => 1 ) [2025-04-04 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-04 14:40:07' and `end` < '2025-04-04 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-04 17:40:20] Production.INFO: count ==5081 [2025-04-04 17:40:22] Production.ERROR: pbx CDR StartTime 2025-04-04 14:40:07 - End Time 2025-04-04 17:40:07 [2025-04-04 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834436', 'tblTempUsageDetail_20' ) start [2025-04-04 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834436', 'tblTempUsageDetail_20' ) end [2025-04-04 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834436', 'tblTempVendorCDR_20' ) start [2025-04-04 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834436', 'tblTempVendorCDR_20' ) end [2025-04-04 17:40:22] Production.INFO: ProcessCDR(1,14834436,1,1,2) [2025-04-04 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834436', 'tblTempUsageDetail_20' ) start [2025-04-04 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834436', 'tblTempUsageDetail_20' ) end [2025-04-04 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:40:28] Production.INFO: ==4903== Releasing lock... [2025-04-04 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:40:28] Production.INFO: 66 MB #Memory Used# [2025-04-04 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:41:06 [end_date_ymd] => 2025-04-04 17:41:06 [RateCDR] => 1 ) [2025-04-04 17: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 14:41:06' and `end` < '2025-04-04 17: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-04 17:41:19] Production.INFO: count ==5055 [2025-04-04 17:41:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:41:06 - End Time 2025-04-04 17:41:06 [2025-04-04 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834441', 'tblTempUsageDetail_20' ) start [2025-04-04 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834441', 'tblTempUsageDetail_20' ) end [2025-04-04 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834441', 'tblTempVendorCDR_20' ) start [2025-04-04 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834441', 'tblTempVendorCDR_20' ) end [2025-04-04 17:41:21] Production.INFO: ProcessCDR(1,14834441,1,1,2) [2025-04-04 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834441', 'tblTempUsageDetail_20' ) start [2025-04-04 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834441', 'tblTempUsageDetail_20' ) end [2025-04-04 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:41:26] Production.INFO: ==4979== Releasing lock... [2025-04-04 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:41:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:42:05 [end_date_ymd] => 2025-04-04 17:42:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:42:05' and `end` < '2025-04-04 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-04 17:42:19] Production.INFO: count ==5043 [2025-04-04 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:42:05 - End Time 2025-04-04 17:42:05 [2025-04-04 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834446', 'tblTempUsageDetail_20' ) start [2025-04-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834446', 'tblTempUsageDetail_20' ) end [2025-04-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834446', 'tblTempVendorCDR_20' ) start [2025-04-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834446', 'tblTempVendorCDR_20' ) end [2025-04-04 17:42:21] Production.INFO: ProcessCDR(1,14834446,1,1,2) [2025-04-04 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834446', 'tblTempUsageDetail_20' ) start [2025-04-04 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834446', 'tblTempUsageDetail_20' ) end [2025-04-04 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:42:27] Production.INFO: ==5053== Releasing lock... [2025-04-04 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:42:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:43:05 [end_date_ymd] => 2025-04-04 17:43:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:43:05' and `end` < '2025-04-04 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-04 17:43:19] Production.INFO: count ==5030 [2025-04-04 17:43:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:43:05 - End Time 2025-04-04 17:43:05 [2025-04-04 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834451', 'tblTempUsageDetail_20' ) start [2025-04-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834451', 'tblTempUsageDetail_20' ) end [2025-04-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834451', 'tblTempVendorCDR_20' ) start [2025-04-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834451', 'tblTempVendorCDR_20' ) end [2025-04-04 17:43:21] Production.INFO: ProcessCDR(1,14834451,1,1,2) [2025-04-04 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834451', 'tblTempUsageDetail_20' ) start [2025-04-04 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834451', 'tblTempUsageDetail_20' ) end [2025-04-04 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:43:26] Production.INFO: ==5129== Releasing lock... [2025-04-04 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:43:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-04 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:44:06 [end_date_ymd] => 2025-04-04 17:44:06 [RateCDR] => 1 ) [2025-04-04 17: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 14:44:06' and `end` < '2025-04-04 17: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-04 17:44:20] Production.INFO: count ==5008 [2025-04-04 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:44:06 - End Time 2025-04-04 17:44:06 [2025-04-04 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834456', 'tblTempUsageDetail_20' ) start [2025-04-04 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834456', 'tblTempUsageDetail_20' ) end [2025-04-04 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834456', 'tblTempVendorCDR_20' ) start [2025-04-04 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834456', 'tblTempVendorCDR_20' ) end [2025-04-04 17:44:22] Production.INFO: ProcessCDR(1,14834456,1,1,2) [2025-04-04 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834456', 'tblTempUsageDetail_20' ) start [2025-04-04 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834456', 'tblTempUsageDetail_20' ) end [2025-04-04 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:44:27] Production.INFO: ==5205== Releasing lock... [2025-04-04 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:44:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-04 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:45:04 [end_date_ymd] => 2025-04-04 17:45:04 [RateCDR] => 1 ) [2025-04-04 17: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-04 14:45:04' and `end` < '2025-04-04 17: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-04 17:45:18] Production.INFO: count ==5004 [2025-04-04 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-04 14:45:04 - End Time 2025-04-04 17:45:04 [2025-04-04 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834461', 'tblTempUsageDetail_20' ) start [2025-04-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834461', 'tblTempUsageDetail_20' ) end [2025-04-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834461', 'tblTempVendorCDR_20' ) start [2025-04-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834461', 'tblTempVendorCDR_20' ) end [2025-04-04 17:45:20] Production.INFO: ProcessCDR(1,14834461,1,1,2) [2025-04-04 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834461', 'tblTempUsageDetail_20' ) start [2025-04-04 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834461', 'tblTempUsageDetail_20' ) end [2025-04-04 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:45:25] Production.INFO: ==5287== Releasing lock... [2025-04-04 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:45:25] Production.INFO: 65.5 MB #Memory Used# [2025-04-04 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:46:05 [end_date_ymd] => 2025-04-04 17:46:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:46:05' and `end` < '2025-04-04 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-04 17:46:19] Production.INFO: count ==4991 [2025-04-04 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:46:05 - End Time 2025-04-04 17:46:05 [2025-04-04 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834466', 'tblTempUsageDetail_20' ) start [2025-04-04 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834466', 'tblTempUsageDetail_20' ) end [2025-04-04 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834466', 'tblTempVendorCDR_20' ) start [2025-04-04 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834466', 'tblTempVendorCDR_20' ) end [2025-04-04 17:46:21] Production.INFO: ProcessCDR(1,14834466,1,1,2) [2025-04-04 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834466', 'tblTempUsageDetail_20' ) start [2025-04-04 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834466', 'tblTempUsageDetail_20' ) end [2025-04-04 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:46:26] Production.INFO: ==5361== Releasing lock... [2025-04-04 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:46:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-04 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:47:06 [end_date_ymd] => 2025-04-04 17:47:06 [RateCDR] => 1 ) [2025-04-04 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 14:47:06' and `end` < '2025-04-04 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 17:47:19] Production.INFO: count ==4977 [2025-04-04 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:47:06 - End Time 2025-04-04 17:47:06 [2025-04-04 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834471', 'tblTempUsageDetail_20' ) start [2025-04-04 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834471', 'tblTempUsageDetail_20' ) end [2025-04-04 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834471', 'tblTempVendorCDR_20' ) start [2025-04-04 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834471', 'tblTempVendorCDR_20' ) end [2025-04-04 17:47:21] Production.INFO: ProcessCDR(1,14834471,1,1,2) [2025-04-04 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834471', 'tblTempUsageDetail_20' ) start [2025-04-04 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834471', 'tblTempUsageDetail_20' ) end [2025-04-04 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:47:25] Production.INFO: ==5478== Releasing lock... [2025-04-04 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:47:25] Production.INFO: 65.25 MB #Memory Used# [2025-04-04 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:48:05 [end_date_ymd] => 2025-04-04 17:48:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:48:05' and `end` < '2025-04-04 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-04 17:48:19] Production.INFO: count ==4962 [2025-04-04 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:48:05 - End Time 2025-04-04 17:48:05 [2025-04-04 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834476', 'tblTempUsageDetail_20' ) start [2025-04-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834476', 'tblTempUsageDetail_20' ) end [2025-04-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834476', 'tblTempVendorCDR_20' ) start [2025-04-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834476', 'tblTempVendorCDR_20' ) end [2025-04-04 17:48:21] Production.INFO: ProcessCDR(1,14834476,1,1,2) [2025-04-04 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834476', 'tblTempUsageDetail_20' ) start [2025-04-04 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834476', 'tblTempUsageDetail_20' ) end [2025-04-04 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:48:25] Production.INFO: ==5566== Releasing lock... [2025-04-04 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:48:25] Production.INFO: 65 MB #Memory Used# [2025-04-04 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:49:06 [end_date_ymd] => 2025-04-04 17:49:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:49:06' and `end` < '2025-04-04 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-04 17:49:19] Production.INFO: count ==4960 [2025-04-04 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:49:06 - End Time 2025-04-04 17:49:06 [2025-04-04 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834481', 'tblTempUsageDetail_20' ) start [2025-04-04 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834481', 'tblTempUsageDetail_20' ) end [2025-04-04 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834481', 'tblTempVendorCDR_20' ) start [2025-04-04 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834481', 'tblTempVendorCDR_20' ) end [2025-04-04 17:49:22] Production.INFO: ProcessCDR(1,14834481,1,1,2) [2025-04-04 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834481', 'tblTempUsageDetail_20' ) start [2025-04-04 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834481', 'tblTempUsageDetail_20' ) end [2025-04-04 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:49:27] Production.INFO: ==5645== Releasing lock... [2025-04-04 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:49:27] Production.INFO: 65 MB #Memory Used# [2025-04-04 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:50:06 [end_date_ymd] => 2025-04-04 17:50:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:50:06' and `end` < '2025-04-04 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-04 17:50:19] Production.INFO: count ==4938 [2025-04-04 17:50:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:50:06 - End Time 2025-04-04 17:50:06 [2025-04-04 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834486', 'tblTempUsageDetail_20' ) start [2025-04-04 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834486', 'tblTempUsageDetail_20' ) end [2025-04-04 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834486', 'tblTempVendorCDR_20' ) start [2025-04-04 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834486', 'tblTempVendorCDR_20' ) end [2025-04-04 17:50:21] Production.INFO: ProcessCDR(1,14834486,1,1,2) [2025-04-04 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834486', 'tblTempUsageDetail_20' ) start [2025-04-04 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834486', 'tblTempUsageDetail_20' ) end [2025-04-04 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:50:25] Production.INFO: ==5719== Releasing lock... [2025-04-04 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:50:25] Production.INFO: 65 MB #Memory Used# [2025-04-04 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:51:06 [end_date_ymd] => 2025-04-04 17:51:06 [RateCDR] => 1 ) [2025-04-04 17: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-04 14:51:06' and `end` < '2025-04-04 17: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-04 17:51:19] Production.INFO: count ==4912 [2025-04-04 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:51:06 - End Time 2025-04-04 17:51:06 [2025-04-04 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834492', 'tblTempUsageDetail_20' ) start [2025-04-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834492', 'tblTempUsageDetail_20' ) end [2025-04-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834492', 'tblTempVendorCDR_20' ) start [2025-04-04 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834492', 'tblTempVendorCDR_20' ) end [2025-04-04 17:51:21] Production.INFO: ProcessCDR(1,14834492,1,1,2) [2025-04-04 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834492', 'tblTempUsageDetail_20' ) start [2025-04-04 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834492', 'tblTempUsageDetail_20' ) end [2025-04-04 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:51:26] Production.INFO: ==5797== Releasing lock... [2025-04-04 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:51:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:52:05 [end_date_ymd] => 2025-04-04 17:52:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:52:05' and `end` < '2025-04-04 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-04 17:52:19] Production.INFO: count ==4924 [2025-04-04 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-04 14:52:05 - End Time 2025-04-04 17:52:05 [2025-04-04 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834497', 'tblTempUsageDetail_20' ) start [2025-04-04 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834497', 'tblTempUsageDetail_20' ) end [2025-04-04 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834497', 'tblTempVendorCDR_20' ) start [2025-04-04 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834497', 'tblTempVendorCDR_20' ) end [2025-04-04 17:52:21] Production.INFO: ProcessCDR(1,14834497,1,1,2) [2025-04-04 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834497', 'tblTempUsageDetail_20' ) start [2025-04-04 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834497', 'tblTempUsageDetail_20' ) end [2025-04-04 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:52:24] Production.INFO: ==5869== Releasing lock... [2025-04-04 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:52:24] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:53:06 [end_date_ymd] => 2025-04-04 17:53:06 [RateCDR] => 1 ) [2025-04-04 17: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 14:53:06' and `end` < '2025-04-04 17: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-04 17:53:19] Production.INFO: count ==4927 [2025-04-04 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:53:06 - End Time 2025-04-04 17:53:06 [2025-04-04 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834502', 'tblTempUsageDetail_20' ) start [2025-04-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834502', 'tblTempUsageDetail_20' ) end [2025-04-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834502', 'tblTempVendorCDR_20' ) start [2025-04-04 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834502', 'tblTempVendorCDR_20' ) end [2025-04-04 17:53:21] Production.INFO: ProcessCDR(1,14834502,1,1,2) [2025-04-04 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834502', 'tblTempUsageDetail_20' ) start [2025-04-04 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834502', 'tblTempUsageDetail_20' ) end [2025-04-04 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:53:27] Production.INFO: ==5946== Releasing lock... [2025-04-04 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:53:27] Production.INFO: 65 MB #Memory Used# [2025-04-04 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:54:05 [end_date_ymd] => 2025-04-04 17:54:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:54:05' and `end` < '2025-04-04 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-04 17:54:18] Production.INFO: count ==4925 [2025-04-04 17:54:20] Production.ERROR: pbx CDR StartTime 2025-04-04 14:54:05 - End Time 2025-04-04 17:54:05 [2025-04-04 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834507', 'tblTempUsageDetail_20' ) start [2025-04-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834507', 'tblTempUsageDetail_20' ) end [2025-04-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834507', 'tblTempVendorCDR_20' ) start [2025-04-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834507', 'tblTempVendorCDR_20' ) end [2025-04-04 17:54:20] Production.INFO: ProcessCDR(1,14834507,1,1,2) [2025-04-04 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834507', 'tblTempUsageDetail_20' ) start [2025-04-04 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834507', 'tblTempUsageDetail_20' ) end [2025-04-04 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:54:25] Production.INFO: ==6020== Releasing lock... [2025-04-04 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:54:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:55:05 [end_date_ymd] => 2025-04-04 17:55:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:55:05' and `end` < '2025-04-04 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-04 17:55:19] Production.INFO: count ==4923 [2025-04-04 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:55:05 - End Time 2025-04-04 17:55:05 [2025-04-04 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834512', 'tblTempUsageDetail_20' ) start [2025-04-04 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834512', 'tblTempUsageDetail_20' ) end [2025-04-04 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834512', 'tblTempVendorCDR_20' ) start [2025-04-04 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834512', 'tblTempVendorCDR_20' ) end [2025-04-04 17:55:21] Production.INFO: ProcessCDR(1,14834512,1,1,2) [2025-04-04 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834512', 'tblTempUsageDetail_20' ) start [2025-04-04 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834512', 'tblTempUsageDetail_20' ) end [2025-04-04 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:55:25] Production.INFO: ==6097== Releasing lock... [2025-04-04 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:55:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:56:05 [end_date_ymd] => 2025-04-04 17:56:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:56:05' and `end` < '2025-04-04 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-04 17:56:19] Production.INFO: count ==4921 [2025-04-04 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:56:05 - End Time 2025-04-04 17:56:05 [2025-04-04 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834517', 'tblTempUsageDetail_20' ) start [2025-04-04 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834517', 'tblTempUsageDetail_20' ) end [2025-04-04 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834517', 'tblTempVendorCDR_20' ) start [2025-04-04 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834517', 'tblTempVendorCDR_20' ) end [2025-04-04 17:56:21] Production.INFO: ProcessCDR(1,14834517,1,1,2) [2025-04-04 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834517', 'tblTempUsageDetail_20' ) start [2025-04-04 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834517', 'tblTempUsageDetail_20' ) end [2025-04-04 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:56:24] Production.INFO: ==6172== Releasing lock... [2025-04-04 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:56:24] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:57:05 [end_date_ymd] => 2025-04-04 17:57:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:57:05' and `end` < '2025-04-04 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-04 17:57:19] Production.INFO: count ==4907 [2025-04-04 17:57:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:57:05 - End Time 2025-04-04 17:57:05 [2025-04-04 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834522', 'tblTempUsageDetail_20' ) start [2025-04-04 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834522', 'tblTempUsageDetail_20' ) end [2025-04-04 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834522', 'tblTempVendorCDR_20' ) start [2025-04-04 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834522', 'tblTempVendorCDR_20' ) end [2025-04-04 17:57:21] Production.INFO: ProcessCDR(1,14834522,1,1,2) [2025-04-04 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834522', 'tblTempUsageDetail_20' ) start [2025-04-04 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834522', 'tblTempUsageDetail_20' ) end [2025-04-04 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:57:25] Production.INFO: ==6247== Releasing lock... [2025-04-04 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:57:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:58:06 [end_date_ymd] => 2025-04-04 17:58:06 [RateCDR] => 1 ) [2025-04-04 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-04 14:58:06' and `end` < '2025-04-04 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-04 17:58:19] Production.INFO: count ==4907 [2025-04-04 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:58:06 - End Time 2025-04-04 17:58:06 [2025-04-04 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834527', 'tblTempUsageDetail_20' ) start [2025-04-04 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834527', 'tblTempUsageDetail_20' ) end [2025-04-04 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834527', 'tblTempVendorCDR_20' ) start [2025-04-04 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834527', 'tblTempVendorCDR_20' ) end [2025-04-04 17:58:22] Production.INFO: ProcessCDR(1,14834527,1,1,2) [2025-04-04 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834527', 'tblTempUsageDetail_20' ) start [2025-04-04 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834527', 'tblTempUsageDetail_20' ) end [2025-04-04 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:58:25] Production.INFO: ==6320== Releasing lock... [2025-04-04 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:58:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 14:59:05 [end_date_ymd] => 2025-04-04 17:59:05 [RateCDR] => 1 ) [2025-04-04 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-04 14:59:05' and `end` < '2025-04-04 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-04 17:59:19] Production.INFO: count ==4902 [2025-04-04 17:59:21] Production.ERROR: pbx CDR StartTime 2025-04-04 14:59:05 - End Time 2025-04-04 17:59:05 [2025-04-04 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834532', 'tblTempUsageDetail_20' ) start [2025-04-04 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834532', 'tblTempUsageDetail_20' ) end [2025-04-04 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834532', 'tblTempVendorCDR_20' ) start [2025-04-04 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834532', 'tblTempVendorCDR_20' ) end [2025-04-04 17:59:21] Production.INFO: ProcessCDR(1,14834532,1,1,2) [2025-04-04 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834532', 'tblTempUsageDetail_20' ) start [2025-04-04 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834532', 'tblTempUsageDetail_20' ) end [2025-04-04 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 17:59:26] Production.INFO: ==6394== Releasing lock... [2025-04-04 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 17:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-04 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:00:05 [end_date_ymd] => 2025-04-04 18:00:05 [RateCDR] => 1 ) [2025-04-04 18: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-04 15:00:05' and `end` < '2025-04-04 18: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-04 18:00:18] Production.INFO: count ==4902 [2025-04-04 18:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:00:05 - End Time 2025-04-04 18:00:05 [2025-04-04 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834537', 'tblTempUsageDetail_20' ) start [2025-04-04 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834537', 'tblTempUsageDetail_20' ) end [2025-04-04 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834537', 'tblTempVendorCDR_20' ) start [2025-04-04 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834537', 'tblTempVendorCDR_20' ) end [2025-04-04 18:00:20] Production.INFO: ProcessCDR(1,14834537,1,1,2) [2025-04-04 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834537', 'tblTempUsageDetail_20' ) start [2025-04-04 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834537', 'tblTempUsageDetail_20' ) end [2025-04-04 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:00:26] Production.INFO: ==6471== Releasing lock... [2025-04-04 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:00:26] Production.INFO: 65 MB #Memory Used# [2025-04-04 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:01:05 [end_date_ymd] => 2025-04-04 18:01:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:01:05' and `end` < '2025-04-04 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-04 18:01:19] Production.INFO: count ==4876 [2025-04-04 18:01:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:01:05 - End Time 2025-04-04 18:01:05 [2025-04-04 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834543', 'tblTempUsageDetail_20' ) start [2025-04-04 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834543', 'tblTempUsageDetail_20' ) end [2025-04-04 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834543', 'tblTempVendorCDR_20' ) start [2025-04-04 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834543', 'tblTempVendorCDR_20' ) end [2025-04-04 18:01:21] Production.INFO: ProcessCDR(1,14834543,1,1,2) [2025-04-04 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834543', 'tblTempUsageDetail_20' ) start [2025-04-04 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834543', 'tblTempUsageDetail_20' ) end [2025-04-04 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:01:26] Production.INFO: ==6559== Releasing lock... [2025-04-04 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:01:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-04 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:02:06 [end_date_ymd] => 2025-04-04 18:02:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:02:06' and `end` < '2025-04-04 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-04 18:02:19] Production.INFO: count ==4869 [2025-04-04 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:02:06 - End Time 2025-04-04 18:02:06 [2025-04-04 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834548', 'tblTempUsageDetail_20' ) start [2025-04-04 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834548', 'tblTempUsageDetail_20' ) end [2025-04-04 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834548', 'tblTempVendorCDR_20' ) start [2025-04-04 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834548', 'tblTempVendorCDR_20' ) end [2025-04-04 18:02:22] Production.INFO: ProcessCDR(1,14834548,1,1,2) [2025-04-04 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834548', 'tblTempUsageDetail_20' ) start [2025-04-04 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834548', 'tblTempUsageDetail_20' ) end [2025-04-04 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:02:25] Production.INFO: ==6629== Releasing lock... [2025-04-04 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:02:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-04 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:03:06 [end_date_ymd] => 2025-04-04 18:03:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:03:06' and `end` < '2025-04-04 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-04 18:03:19] Production.INFO: count ==4859 [2025-04-04 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:03:06 - End Time 2025-04-04 18:03:06 [2025-04-04 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834553', 'tblTempUsageDetail_20' ) start [2025-04-04 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834553', 'tblTempUsageDetail_20' ) end [2025-04-04 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834553', 'tblTempVendorCDR_20' ) start [2025-04-04 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834553', 'tblTempVendorCDR_20' ) end [2025-04-04 18:03:21] Production.INFO: ProcessCDR(1,14834553,1,1,2) [2025-04-04 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834553', 'tblTempUsageDetail_20' ) start [2025-04-04 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834553', 'tblTempUsageDetail_20' ) end [2025-04-04 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:03:25] Production.INFO: ==6747== Releasing lock... [2025-04-04 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:03:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-04 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:04:05 [end_date_ymd] => 2025-04-04 18:04:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:04:05' and `end` < '2025-04-04 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:04:19] Production.INFO: count ==4842 [2025-04-04 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:04:05 - End Time 2025-04-04 18:04:05 [2025-04-04 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834558', 'tblTempUsageDetail_20' ) start [2025-04-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834558', 'tblTempUsageDetail_20' ) end [2025-04-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834558', 'tblTempVendorCDR_20' ) start [2025-04-04 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834558', 'tblTempVendorCDR_20' ) end [2025-04-04 18:04:21] Production.INFO: ProcessCDR(1,14834558,1,1,2) [2025-04-04 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834558', 'tblTempUsageDetail_20' ) start [2025-04-04 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834558', 'tblTempUsageDetail_20' ) end [2025-04-04 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:04:25] Production.INFO: ==6832== Releasing lock... [2025-04-04 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:04:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-04 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:05:06 [end_date_ymd] => 2025-04-04 18:05:06 [RateCDR] => 1 ) [2025-04-04 18: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 15:05:06' and `end` < '2025-04-04 18: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-04 18:05:19] Production.INFO: count ==4808 [2025-04-04 18:05:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:05:06 - End Time 2025-04-04 18:05:06 [2025-04-04 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834563', 'tblTempUsageDetail_20' ) start [2025-04-04 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834563', 'tblTempUsageDetail_20' ) end [2025-04-04 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834563', 'tblTempVendorCDR_20' ) start [2025-04-04 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834563', 'tblTempVendorCDR_20' ) end [2025-04-04 18:05:21] Production.INFO: ProcessCDR(1,14834563,1,1,2) [2025-04-04 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834563', 'tblTempUsageDetail_20' ) start [2025-04-04 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834563', 'tblTempUsageDetail_20' ) end [2025-04-04 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:05:25] Production.INFO: ==6905== Releasing lock... [2025-04-04 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:05:25] Production.INFO: 64 MB #Memory Used# [2025-04-04 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:06:06 [end_date_ymd] => 2025-04-04 18:06:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:06:06' and `end` < '2025-04-04 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-04 18:06:19] Production.INFO: count ==4795 [2025-04-04 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:06:06 - End Time 2025-04-04 18:06:06 [2025-04-04 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834568', 'tblTempUsageDetail_20' ) start [2025-04-04 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834568', 'tblTempUsageDetail_20' ) end [2025-04-04 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834568', 'tblTempVendorCDR_20' ) start [2025-04-04 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834568', 'tblTempVendorCDR_20' ) end [2025-04-04 18:06:22] Production.INFO: ProcessCDR(1,14834568,1,1,2) [2025-04-04 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834568', 'tblTempUsageDetail_20' ) start [2025-04-04 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834568', 'tblTempUsageDetail_20' ) end [2025-04-04 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:06:25] Production.INFO: ==6981== Releasing lock... [2025-04-04 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:06:25] Production.INFO: 64 MB #Memory Used# [2025-04-04 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:07:05 [end_date_ymd] => 2025-04-04 18:07:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:07:05' and `end` < '2025-04-04 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-04 18:07:19] Production.INFO: count ==4771 [2025-04-04 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:07:05 - End Time 2025-04-04 18:07:05 [2025-04-04 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834573', 'tblTempUsageDetail_20' ) start [2025-04-04 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834573', 'tblTempUsageDetail_20' ) end [2025-04-04 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834573', 'tblTempVendorCDR_20' ) start [2025-04-04 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834573', 'tblTempVendorCDR_20' ) end [2025-04-04 18:07:21] Production.INFO: ProcessCDR(1,14834573,1,1,2) [2025-04-04 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834573', 'tblTempUsageDetail_20' ) start [2025-04-04 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834573', 'tblTempUsageDetail_20' ) end [2025-04-04 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:07:25] Production.INFO: ==7061== Releasing lock... [2025-04-04 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:07:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-04 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:08:05 [end_date_ymd] => 2025-04-04 18:08:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:08:05' and `end` < '2025-04-04 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-04 18:08:19] Production.INFO: count ==4738 [2025-04-04 18:08:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:08:05 - End Time 2025-04-04 18:08:05 [2025-04-04 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834578', 'tblTempUsageDetail_20' ) start [2025-04-04 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834578', 'tblTempUsageDetail_20' ) end [2025-04-04 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834578', 'tblTempVendorCDR_20' ) start [2025-04-04 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834578', 'tblTempVendorCDR_20' ) end [2025-04-04 18:08:21] Production.INFO: ProcessCDR(1,14834578,1,1,2) [2025-04-04 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834578', 'tblTempUsageDetail_20' ) start [2025-04-04 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834578', 'tblTempUsageDetail_20' ) end [2025-04-04 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:08:25] Production.INFO: ==7134== Releasing lock... [2025-04-04 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:08:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-04 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:09:05 [end_date_ymd] => 2025-04-04 18:09:05 [RateCDR] => 1 ) [2025-04-04 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:09:05' and `end` < '2025-04-04 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:09:18] Production.INFO: count ==4725 [2025-04-04 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:09:05 - End Time 2025-04-04 18:09:05 [2025-04-04 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834583', 'tblTempUsageDetail_20' ) start [2025-04-04 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834583', 'tblTempUsageDetail_20' ) end [2025-04-04 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834583', 'tblTempVendorCDR_20' ) start [2025-04-04 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834583', 'tblTempVendorCDR_20' ) end [2025-04-04 18:09:21] Production.INFO: ProcessCDR(1,14834583,1,1,2) [2025-04-04 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834583', 'tblTempUsageDetail_20' ) start [2025-04-04 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834583', 'tblTempUsageDetail_20' ) end [2025-04-04 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:09:26] Production.INFO: ==7208== Releasing lock... [2025-04-04 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:09:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-04 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:10:06 [end_date_ymd] => 2025-04-04 18:10:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:10:06' and `end` < '2025-04-04 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-04 18:10:20] Production.INFO: count ==4701 [2025-04-04 18:10:22] Production.ERROR: pbx CDR StartTime 2025-04-04 15:10:06 - End Time 2025-04-04 18:10:06 [2025-04-04 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834589', 'tblTempUsageDetail_20' ) start [2025-04-04 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834589', 'tblTempUsageDetail_20' ) end [2025-04-04 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834589', 'tblTempVendorCDR_20' ) start [2025-04-04 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834589', 'tblTempVendorCDR_20' ) end [2025-04-04 18:10:22] Production.INFO: ProcessCDR(1,14834589,1,1,2) [2025-04-04 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834589', 'tblTempUsageDetail_20' ) start [2025-04-04 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834589', 'tblTempUsageDetail_20' ) end [2025-04-04 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:10:26] Production.INFO: ==7291== Releasing lock... [2025-04-04 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:10:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-04 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:11:05 [end_date_ymd] => 2025-04-04 18:11:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:11:05' and `end` < '2025-04-04 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-04 18:11:18] Production.INFO: count ==4664 [2025-04-04 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:11:05 - End Time 2025-04-04 18:11:05 [2025-04-04 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834594', 'tblTempUsageDetail_20' ) start [2025-04-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834594', 'tblTempUsageDetail_20' ) end [2025-04-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834594', 'tblTempVendorCDR_20' ) start [2025-04-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834594', 'tblTempVendorCDR_20' ) end [2025-04-04 18:11:20] Production.INFO: ProcessCDR(1,14834594,1,1,2) [2025-04-04 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834594', 'tblTempUsageDetail_20' ) start [2025-04-04 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834594', 'tblTempUsageDetail_20' ) end [2025-04-04 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:11:25] Production.INFO: ==7370== Releasing lock... [2025-04-04 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:11:25] Production.INFO: 63 MB #Memory Used# [2025-04-04 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:12:05 [end_date_ymd] => 2025-04-04 18:12:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:12:05' and `end` < '2025-04-04 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-04 18:12:19] Production.INFO: count ==4654 [2025-04-04 18:12:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:12:05 - End Time 2025-04-04 18:12:05 [2025-04-04 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834599', 'tblTempUsageDetail_20' ) start [2025-04-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834599', 'tblTempUsageDetail_20' ) end [2025-04-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834599', 'tblTempVendorCDR_20' ) start [2025-04-04 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834599', 'tblTempVendorCDR_20' ) end [2025-04-04 18:12:21] Production.INFO: ProcessCDR(1,14834599,1,1,2) [2025-04-04 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834599', 'tblTempUsageDetail_20' ) start [2025-04-04 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834599', 'tblTempUsageDetail_20' ) end [2025-04-04 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:12:26] Production.INFO: ==7450== Releasing lock... [2025-04-04 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-04 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:13:05 [end_date_ymd] => 2025-04-04 18:13:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:13:05' and `end` < '2025-04-04 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-04 18:13:19] Production.INFO: count ==4629 [2025-04-04 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:13:05 - End Time 2025-04-04 18:13:05 [2025-04-04 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834604', 'tblTempUsageDetail_20' ) start [2025-04-04 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834604', 'tblTempUsageDetail_20' ) end [2025-04-04 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834604', 'tblTempVendorCDR_20' ) start [2025-04-04 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834604', 'tblTempVendorCDR_20' ) end [2025-04-04 18:13:21] Production.INFO: ProcessCDR(1,14834604,1,1,2) [2025-04-04 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834604', 'tblTempUsageDetail_20' ) start [2025-04-04 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834604', 'tblTempUsageDetail_20' ) end [2025-04-04 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:13:24] Production.INFO: ==7524== Releasing lock... [2025-04-04 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:13:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-04 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:14:06 [end_date_ymd] => 2025-04-04 18:14:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:14:06' and `end` < '2025-04-04 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-04 18:14:19] Production.INFO: count ==4617 [2025-04-04 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:14:06 - End Time 2025-04-04 18:14:06 [2025-04-04 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834609', 'tblTempUsageDetail_20' ) start [2025-04-04 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834609', 'tblTempUsageDetail_20' ) end [2025-04-04 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834609', 'tblTempVendorCDR_20' ) start [2025-04-04 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834609', 'tblTempVendorCDR_20' ) end [2025-04-04 18:14:21] Production.INFO: ProcessCDR(1,14834609,1,1,2) [2025-04-04 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834609', 'tblTempUsageDetail_20' ) start [2025-04-04 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834609', 'tblTempUsageDetail_20' ) end [2025-04-04 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:14:26] Production.INFO: ==7600== Releasing lock... [2025-04-04 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:14:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-04 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:15:05 [end_date_ymd] => 2025-04-04 18:15:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:15:05' and `end` < '2025-04-04 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-04 18:15:19] Production.INFO: count ==4610 [2025-04-04 18:15:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:15:05 - End Time 2025-04-04 18:15:05 [2025-04-04 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834614', 'tblTempUsageDetail_20' ) start [2025-04-04 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834614', 'tblTempUsageDetail_20' ) end [2025-04-04 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834614', 'tblTempVendorCDR_20' ) start [2025-04-04 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834614', 'tblTempVendorCDR_20' ) end [2025-04-04 18:15:21] Production.INFO: ProcessCDR(1,14834614,1,1,2) [2025-04-04 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834614', 'tblTempUsageDetail_20' ) start [2025-04-04 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834614', 'tblTempUsageDetail_20' ) end [2025-04-04 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:15:24] Production.INFO: ==7677== Releasing lock... [2025-04-04 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:15:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-04 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:16:06 [end_date_ymd] => 2025-04-04 18:16:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:16:06' and `end` < '2025-04-04 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-04 18:16:19] Production.INFO: count ==4623 [2025-04-04 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:16:06 - End Time 2025-04-04 18:16:06 [2025-04-04 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834619', 'tblTempUsageDetail_20' ) start [2025-04-04 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834619', 'tblTempUsageDetail_20' ) end [2025-04-04 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834619', 'tblTempVendorCDR_20' ) start [2025-04-04 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834619', 'tblTempVendorCDR_20' ) end [2025-04-04 18:16:21] Production.INFO: ProcessCDR(1,14834619,1,1,2) [2025-04-04 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834619', 'tblTempUsageDetail_20' ) start [2025-04-04 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834619', 'tblTempUsageDetail_20' ) end [2025-04-04 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:16:26] Production.INFO: ==7749== Releasing lock... [2025-04-04 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:16:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-04 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:17:05 [end_date_ymd] => 2025-04-04 18:17:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:17:05' and `end` < '2025-04-04 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-04 18:17:19] Production.INFO: count ==4616 [2025-04-04 18:17:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:17:05 - End Time 2025-04-04 18:17:05 [2025-04-04 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834624', 'tblTempUsageDetail_20' ) start [2025-04-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834624', 'tblTempUsageDetail_20' ) end [2025-04-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834624', 'tblTempVendorCDR_20' ) start [2025-04-04 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834624', 'tblTempVendorCDR_20' ) end [2025-04-04 18:17:21] Production.INFO: ProcessCDR(1,14834624,1,1,2) [2025-04-04 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834624', 'tblTempUsageDetail_20' ) start [2025-04-04 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834624', 'tblTempUsageDetail_20' ) end [2025-04-04 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:17:26] Production.INFO: ==7827== Releasing lock... [2025-04-04 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:17:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-04 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:18:06 [end_date_ymd] => 2025-04-04 18:18:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:18:06' and `end` < '2025-04-04 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-04 18:18:20] Production.INFO: count ==4585 [2025-04-04 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:18:06 - End Time 2025-04-04 18:18:06 [2025-04-04 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834629', 'tblTempUsageDetail_20' ) start [2025-04-04 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834629', 'tblTempUsageDetail_20' ) end [2025-04-04 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834629', 'tblTempVendorCDR_20' ) start [2025-04-04 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834629', 'tblTempVendorCDR_20' ) end [2025-04-04 18:18:21] Production.INFO: ProcessCDR(1,14834629,1,1,2) [2025-04-04 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834629', 'tblTempUsageDetail_20' ) start [2025-04-04 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834629', 'tblTempUsageDetail_20' ) end [2025-04-04 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:18:26] Production.INFO: ==7944== Releasing lock... [2025-04-04 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:18:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-04 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:19:05 [end_date_ymd] => 2025-04-04 18:19:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:19:05' and `end` < '2025-04-04 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-04 18:19:18] Production.INFO: count ==4563 [2025-04-04 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:19:05 - End Time 2025-04-04 18:19:05 [2025-04-04 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834634', 'tblTempUsageDetail_20' ) start [2025-04-04 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834634', 'tblTempUsageDetail_20' ) end [2025-04-04 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834634', 'tblTempVendorCDR_20' ) start [2025-04-04 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834634', 'tblTempVendorCDR_20' ) end [2025-04-04 18:19:20] Production.INFO: ProcessCDR(1,14834634,1,1,2) [2025-04-04 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834634', 'tblTempUsageDetail_20' ) start [2025-04-04 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834634', 'tblTempUsageDetail_20' ) end [2025-04-04 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:19:23] Production.INFO: ==8021== Releasing lock... [2025-04-04 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:19:23] Production.INFO: 62.25 MB #Memory Used# [2025-04-04 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:20:06 [end_date_ymd] => 2025-04-04 18:20:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:20:06' and `end` < '2025-04-04 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-04 18:20:19] Production.INFO: count ==4534 [2025-04-04 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:20:06 - End Time 2025-04-04 18:20:06 [2025-04-04 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834640', 'tblTempUsageDetail_20' ) start [2025-04-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834640', 'tblTempUsageDetail_20' ) end [2025-04-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834640', 'tblTempVendorCDR_20' ) start [2025-04-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834640', 'tblTempVendorCDR_20' ) end [2025-04-04 18:20:21] Production.INFO: ProcessCDR(1,14834640,1,1,2) [2025-04-04 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834640', 'tblTempUsageDetail_20' ) start [2025-04-04 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834640', 'tblTempUsageDetail_20' ) end [2025-04-04 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:20:24] Production.INFO: ==8103== Releasing lock... [2025-04-04 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:20:24] Production.INFO: 62 MB #Memory Used# [2025-04-04 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:21:06 [end_date_ymd] => 2025-04-04 18:21:06 [RateCDR] => 1 ) [2025-04-04 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-04 15:21:06' and `end` < '2025-04-04 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-04 18:21:20] Production.INFO: count ==4458 [2025-04-04 18:21:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:21:06 - End Time 2025-04-04 18:21:06 [2025-04-04 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834645', 'tblTempUsageDetail_20' ) start [2025-04-04 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834645', 'tblTempUsageDetail_20' ) end [2025-04-04 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834645', 'tblTempVendorCDR_20' ) start [2025-04-04 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834645', 'tblTempVendorCDR_20' ) end [2025-04-04 18:21:21] Production.INFO: ProcessCDR(1,14834645,1,1,2) [2025-04-04 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834645', 'tblTempUsageDetail_20' ) start [2025-04-04 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834645', 'tblTempUsageDetail_20' ) end [2025-04-04 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:21:25] Production.INFO: ==8181== Releasing lock... [2025-04-04 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:21:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-04 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:22:05 [end_date_ymd] => 2025-04-04 18:22:05 [RateCDR] => 1 ) [2025-04-04 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:22:05' and `end` < '2025-04-04 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:22:18] Production.INFO: count ==4448 [2025-04-04 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:22:05 - End Time 2025-04-04 18:22:05 [2025-04-04 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834650', 'tblTempUsageDetail_20' ) start [2025-04-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834650', 'tblTempUsageDetail_20' ) end [2025-04-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834650', 'tblTempVendorCDR_20' ) start [2025-04-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834650', 'tblTempVendorCDR_20' ) end [2025-04-04 18:22:20] Production.INFO: ProcessCDR(1,14834650,1,1,2) [2025-04-04 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834650', 'tblTempUsageDetail_20' ) start [2025-04-04 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834650', 'tblTempUsageDetail_20' ) end [2025-04-04 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:22:25] Production.INFO: ==8257== Releasing lock... [2025-04-04 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:22:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-04 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:23:06 [end_date_ymd] => 2025-04-04 18:23:06 [RateCDR] => 1 ) [2025-04-04 18: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-04 15:23:06' and `end` < '2025-04-04 18: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-04 18:23:19] Production.INFO: count ==4432 [2025-04-04 18:23:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:23:06 - End Time 2025-04-04 18:23:06 [2025-04-04 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834655', 'tblTempUsageDetail_20' ) start [2025-04-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834655', 'tblTempUsageDetail_20' ) end [2025-04-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834655', 'tblTempVendorCDR_20' ) start [2025-04-04 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834655', 'tblTempVendorCDR_20' ) end [2025-04-04 18:23:21] Production.INFO: ProcessCDR(1,14834655,1,1,2) [2025-04-04 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834655', 'tblTempUsageDetail_20' ) start [2025-04-04 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834655', 'tblTempUsageDetail_20' ) end [2025-04-04 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:23:24] Production.INFO: ==8334== Releasing lock... [2025-04-04 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:23:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-04 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:24:05 [end_date_ymd] => 2025-04-04 18:24:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:24:05' and `end` < '2025-04-04 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-04 18:24:19] Production.INFO: count ==4425 [2025-04-04 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:24:05 - End Time 2025-04-04 18:24:05 [2025-04-04 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834660', 'tblTempUsageDetail_20' ) start [2025-04-04 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834660', 'tblTempUsageDetail_20' ) end [2025-04-04 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834660', 'tblTempVendorCDR_20' ) start [2025-04-04 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834660', 'tblTempVendorCDR_20' ) end [2025-04-04 18:24:21] Production.INFO: ProcessCDR(1,14834660,1,1,2) [2025-04-04 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834660', 'tblTempUsageDetail_20' ) start [2025-04-04 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834660', 'tblTempUsageDetail_20' ) end [2025-04-04 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:24:24] Production.INFO: ==8413== Releasing lock... [2025-04-04 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:24:24] Production.INFO: 61 MB #Memory Used# [2025-04-04 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:25:06 [end_date_ymd] => 2025-04-04 18:25:06 [RateCDR] => 1 ) [2025-04-04 18: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 15:25:06' and `end` < '2025-04-04 18: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-04 18:25:19] Production.INFO: count ==4385 [2025-04-04 18:25:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:25:06 - End Time 2025-04-04 18:25:06 [2025-04-04 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834665', 'tblTempUsageDetail_20' ) start [2025-04-04 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834665', 'tblTempUsageDetail_20' ) end [2025-04-04 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834665', 'tblTempVendorCDR_20' ) start [2025-04-04 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834665', 'tblTempVendorCDR_20' ) end [2025-04-04 18:25:21] Production.INFO: ProcessCDR(1,14834665,1,1,2) [2025-04-04 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:25:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834665', 'tblTempUsageDetail_20' ) start [2025-04-04 18:25:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834665', 'tblTempUsageDetail_20' ) end [2025-04-04 18:25:46] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:25:46] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:25:53] Production.INFO: ==8489== Releasing lock... [2025-04-04 18:25:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:25:53] Production.INFO: 60.75 MB #Memory Used# [2025-04-04 18:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:26:20 [end_date_ymd] => 2025-04-04 18:26:20 [RateCDR] => 1 ) [2025-04-04 18:26:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:26:20' and `end` < '2025-04-04 18:26:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:26:33] Production.INFO: count ==4368 [2025-04-04 18:27:47] Production.ERROR: pbx CDR StartTime 2025-04-04 15:26:20 - End Time 2025-04-04 18:26:20 [2025-04-04 18:27:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:27:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834670', 'tblTempUsageDetail_20' ) start [2025-04-04 18:27:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834670', 'tblTempUsageDetail_20' ) end [2025-04-04 18:27:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834670', 'tblTempVendorCDR_20' ) start [2025-04-04 18:27:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834670', 'tblTempVendorCDR_20' ) end [2025-04-04 18:27:54] Production.INFO: ProcessCDR(1,14834670,1,1,2) [2025-04-04 18:27:54] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:28:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:28:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834670', 'tblTempUsageDetail_20' ) start [2025-04-04 18:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834670', 'tblTempUsageDetail_20' ) end [2025-04-04 18:28:31] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:28:31] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:28:31] Production.INFO: ==8565== Releasing lock... [2025-04-04 18:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:28:31] Production.INFO: 60.75 MB #Memory Used# [2025-04-04 18:29:22] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:29:22 [end_date_ymd] => 2025-04-04 18:29:22 [RateCDR] => 1 ) [2025-04-04 18:29:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 15:29:22' and `end` < '2025-04-04 18:29:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:29:35] Production.INFO: count ==4343 [2025-04-04 18:30:40] Production.ERROR: pbx CDR StartTime 2025-04-04 15:29:22 - End Time 2025-04-04 18:29:22 [2025-04-04 18:30:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834680', 'tblTempUsageDetail_20' ) start [2025-04-04 18:30:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834680', 'tblTempUsageDetail_20' ) end [2025-04-04 18:30:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834680', 'tblTempVendorCDR_20' ) start [2025-04-04 18:30:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834680', 'tblTempVendorCDR_20' ) end [2025-04-04 18:30:46] Production.INFO: ProcessCDR(1,14834680,1,1,2) [2025-04-04 18:30:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:30:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:30:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834680', 'tblTempUsageDetail_20' ) start [2025-04-04 18:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834680', 'tblTempUsageDetail_20' ) end [2025-04-04 18:31:41] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:31:41] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:31:43] Production.INFO: ==8770== Releasing lock... [2025-04-04 18:31:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:31:43] Production.INFO: 60.5 MB #Memory Used# [2025-04-04 18:32:27] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:32:27 [end_date_ymd] => 2025-04-04 18:32:27 [RateCDR] => 1 ) [2025-04-04 18:32:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 15:32:27' and `end` < '2025-04-04 18:32:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:32:41] Production.INFO: count ==4255 [2025-04-04 18:33:18] Production.ERROR: pbx CDR StartTime 2025-04-04 15:32:27 - End Time 2025-04-04 18:32:27 [2025-04-04 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834692', 'tblTempUsageDetail_20' ) start [2025-04-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834692', 'tblTempUsageDetail_20' ) end [2025-04-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834692', 'tblTempVendorCDR_20' ) start [2025-04-04 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834692', 'tblTempVendorCDR_20' ) end [2025-04-04 18:33:22] Production.INFO: ProcessCDR(1,14834692,1,1,2) [2025-04-04 18:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:33:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:33:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834692', 'tblTempUsageDetail_20' ) start [2025-04-04 18:33:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834692', 'tblTempUsageDetail_20' ) end [2025-04-04 18:33:45] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:33:45] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:33:45] Production.INFO: ==9014== Releasing lock... [2025-04-04 18:33:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:33:45] Production.INFO: 59.75 MB #Memory Used# [2025-04-04 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:34:05 [end_date_ymd] => 2025-04-04 18:34:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:34:05' and `end` < '2025-04-04 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-04 18:34:19] Production.INFO: count ==4172 [2025-04-04 18:34:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:34:05 - End Time 2025-04-04 18:34:05 [2025-04-04 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834701', 'tblTempUsageDetail_20' ) start [2025-04-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834701', 'tblTempUsageDetail_20' ) end [2025-04-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834701', 'tblTempVendorCDR_20' ) start [2025-04-04 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834701', 'tblTempVendorCDR_20' ) end [2025-04-04 18:34:20] Production.INFO: ProcessCDR(1,14834701,1,1,2) [2025-04-04 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834701', 'tblTempUsageDetail_20' ) start [2025-04-04 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834701', 'tblTempUsageDetail_20' ) end [2025-04-04 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:34:25] Production.INFO: ==9232== Releasing lock... [2025-04-04 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:34:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-04 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:35:06 [end_date_ymd] => 2025-04-04 18:35:06 [RateCDR] => 1 ) [2025-04-04 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:35:06' and `end` < '2025-04-04 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:35:19] Production.INFO: count ==4155 [2025-04-04 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:35:06 - End Time 2025-04-04 18:35:06 [2025-04-04 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834706', 'tblTempUsageDetail_20' ) start [2025-04-04 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834706', 'tblTempUsageDetail_20' ) end [2025-04-04 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834706', 'tblTempVendorCDR_20' ) start [2025-04-04 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834706', 'tblTempVendorCDR_20' ) end [2025-04-04 18:35:21] Production.INFO: ProcessCDR(1,14834706,1,1,2) [2025-04-04 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834706', 'tblTempUsageDetail_20' ) start [2025-04-04 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834706', 'tblTempUsageDetail_20' ) end [2025-04-04 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:35:26] Production.INFO: ==9324== Releasing lock... [2025-04-04 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:35:26] Production.INFO: 59 MB #Memory Used# [2025-04-04 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:36:05 [end_date_ymd] => 2025-04-04 18:36:05 [RateCDR] => 1 ) [2025-04-04 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:36:05' and `end` < '2025-04-04 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:36:18] Production.INFO: count ==4151 [2025-04-04 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:36:05 - End Time 2025-04-04 18:36:05 [2025-04-04 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834711', 'tblTempUsageDetail_20' ) start [2025-04-04 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834711', 'tblTempUsageDetail_20' ) end [2025-04-04 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834711', 'tblTempVendorCDR_20' ) start [2025-04-04 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834711', 'tblTempVendorCDR_20' ) end [2025-04-04 18:36:20] Production.INFO: ProcessCDR(1,14834711,1,1,2) [2025-04-04 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834711', 'tblTempUsageDetail_20' ) start [2025-04-04 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834711', 'tblTempUsageDetail_20' ) end [2025-04-04 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:36:25] Production.INFO: ==9394== Releasing lock... [2025-04-04 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:36:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-04 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:37:05 [end_date_ymd] => 2025-04-04 18:37:05 [RateCDR] => 1 ) [2025-04-04 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-04 15:37:05' and `end` < '2025-04-04 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-04 18:37:19] Production.INFO: count ==4133 [2025-04-04 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:37:05 - End Time 2025-04-04 18:37:05 [2025-04-04 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834716', 'tblTempUsageDetail_20' ) start [2025-04-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834716', 'tblTempUsageDetail_20' ) end [2025-04-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834716', 'tblTempVendorCDR_20' ) start [2025-04-04 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834716', 'tblTempVendorCDR_20' ) end [2025-04-04 18:37:20] Production.INFO: ProcessCDR(1,14834716,1,1,2) [2025-04-04 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834716', 'tblTempUsageDetail_20' ) start [2025-04-04 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834716', 'tblTempUsageDetail_20' ) end [2025-04-04 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:37:25] Production.INFO: ==9473== Releasing lock... [2025-04-04 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:37:25] Production.INFO: 59 MB #Memory Used# [2025-04-04 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:38:05 [end_date_ymd] => 2025-04-04 18:38:05 [RateCDR] => 1 ) [2025-04-04 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:38:05' and `end` < '2025-04-04 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:38:18] Production.INFO: count ==4133 [2025-04-04 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:38:05 - End Time 2025-04-04 18:38:05 [2025-04-04 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834721', 'tblTempUsageDetail_20' ) start [2025-04-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834721', 'tblTempUsageDetail_20' ) end [2025-04-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834721', 'tblTempVendorCDR_20' ) start [2025-04-04 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834721', 'tblTempVendorCDR_20' ) end [2025-04-04 18:38:20] Production.INFO: ProcessCDR(1,14834721,1,1,2) [2025-04-04 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834721', 'tblTempUsageDetail_20' ) start [2025-04-04 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834721', 'tblTempUsageDetail_20' ) end [2025-04-04 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:38:25] Production.INFO: ==9549== Releasing lock... [2025-04-04 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:38:25] Production.INFO: 59 MB #Memory Used# [2025-04-04 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:39:05 [end_date_ymd] => 2025-04-04 18:39:05 [RateCDR] => 1 ) [2025-04-04 18: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 15:39:05' and `end` < '2025-04-04 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:39:19] Production.INFO: count ==4111 [2025-04-04 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:39:05 - End Time 2025-04-04 18:39:05 [2025-04-04 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834726', 'tblTempUsageDetail_20' ) start [2025-04-04 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834726', 'tblTempUsageDetail_20' ) end [2025-04-04 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834726', 'tblTempVendorCDR_20' ) start [2025-04-04 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834726', 'tblTempVendorCDR_20' ) end [2025-04-04 18:39:21] Production.INFO: ProcessCDR(1,14834726,1,1,2) [2025-04-04 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834726', 'tblTempUsageDetail_20' ) start [2025-04-04 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834726', 'tblTempUsageDetail_20' ) end [2025-04-04 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:39:26] Production.INFO: ==9627== Releasing lock... [2025-04-04 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:39:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-04 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:40:06 [end_date_ymd] => 2025-04-04 18:40:06 [RateCDR] => 1 ) [2025-04-04 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:40:06' and `end` < '2025-04-04 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:40:19] Production.INFO: count ==4103 [2025-04-04 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:40:06 - End Time 2025-04-04 18:40:06 [2025-04-04 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834732', 'tblTempUsageDetail_20' ) start [2025-04-04 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834732', 'tblTempUsageDetail_20' ) end [2025-04-04 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834732', 'tblTempVendorCDR_20' ) start [2025-04-04 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834732', 'tblTempVendorCDR_20' ) end [2025-04-04 18:40:21] Production.INFO: ProcessCDR(1,14834732,1,1,2) [2025-04-04 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834732', 'tblTempUsageDetail_20' ) start [2025-04-04 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834732', 'tblTempUsageDetail_20' ) end [2025-04-04 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:40:26] Production.INFO: ==9702== Releasing lock... [2025-04-04 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:40:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-04 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:41:05 [end_date_ymd] => 2025-04-04 18:41:05 [RateCDR] => 1 ) [2025-04-04 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:41:05' and `end` < '2025-04-04 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:41:19] Production.INFO: count ==4038 [2025-04-04 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:41:05 - End Time 2025-04-04 18:41:05 [2025-04-04 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834737', 'tblTempUsageDetail_20' ) start [2025-04-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834737', 'tblTempUsageDetail_20' ) end [2025-04-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834737', 'tblTempVendorCDR_20' ) start [2025-04-04 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834737', 'tblTempVendorCDR_20' ) end [2025-04-04 18:41:20] Production.INFO: ProcessCDR(1,14834737,1,1,2) [2025-04-04 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834737', 'tblTempUsageDetail_20' ) start [2025-04-04 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834737', 'tblTempUsageDetail_20' ) end [2025-04-04 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:41:25] Production.INFO: ==9781== Releasing lock... [2025-04-04 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:41:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-04 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:42:05 [end_date_ymd] => 2025-04-04 18:42:05 [RateCDR] => 1 ) [2025-04-04 18: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 15:42:05' and `end` < '2025-04-04 18: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-04 18:42:19] Production.INFO: count ==4037 [2025-04-04 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:42:05 - End Time 2025-04-04 18:42:05 [2025-04-04 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834742', 'tblTempUsageDetail_20' ) start [2025-04-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834742', 'tblTempUsageDetail_20' ) end [2025-04-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834742', 'tblTempVendorCDR_20' ) start [2025-04-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834742', 'tblTempVendorCDR_20' ) end [2025-04-04 18:42:20] Production.INFO: ProcessCDR(1,14834742,1,1,2) [2025-04-04 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834742', 'tblTempUsageDetail_20' ) start [2025-04-04 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834742', 'tblTempUsageDetail_20' ) end [2025-04-04 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:42:23] Production.INFO: ==9860== Releasing lock... [2025-04-04 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:42:23] Production.INFO: 58.5 MB #Memory Used# [2025-04-04 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:43:05 [end_date_ymd] => 2025-04-04 18:43:05 [RateCDR] => 1 ) [2025-04-04 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:43:05' and `end` < '2025-04-04 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:43:19] Production.INFO: count ==4039 [2025-04-04 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:43:05 - End Time 2025-04-04 18:43:05 [2025-04-04 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834747', 'tblTempUsageDetail_20' ) start [2025-04-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834747', 'tblTempUsageDetail_20' ) end [2025-04-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834747', 'tblTempVendorCDR_20' ) start [2025-04-04 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834747', 'tblTempVendorCDR_20' ) end [2025-04-04 18:43:20] Production.INFO: ProcessCDR(1,14834747,1,1,2) [2025-04-04 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834747', 'tblTempUsageDetail_20' ) start [2025-04-04 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834747', 'tblTempUsageDetail_20' ) end [2025-04-04 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:43:25] Production.INFO: ==9940== Releasing lock... [2025-04-04 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:43:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-04 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:44:06 [end_date_ymd] => 2025-04-04 18:44:06 [RateCDR] => 1 ) [2025-04-04 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:44:06' and `end` < '2025-04-04 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:44:19] Production.INFO: count ==4035 [2025-04-04 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:44:06 - End Time 2025-04-04 18:44:06 [2025-04-04 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834752', 'tblTempUsageDetail_20' ) start [2025-04-04 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834752', 'tblTempUsageDetail_20' ) end [2025-04-04 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834752', 'tblTempVendorCDR_20' ) start [2025-04-04 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834752', 'tblTempVendorCDR_20' ) end [2025-04-04 18:44:20] Production.INFO: ProcessCDR(1,14834752,1,1,2) [2025-04-04 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834752', 'tblTempUsageDetail_20' ) start [2025-04-04 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834752', 'tblTempUsageDetail_20' ) end [2025-04-04 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:44:25] Production.INFO: ==10015== Releasing lock... [2025-04-04 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:44:25] Production.INFO: 58 MB #Memory Used# [2025-04-04 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:45:06 [end_date_ymd] => 2025-04-04 18:45:06 [RateCDR] => 1 ) [2025-04-04 18: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-04 15:45:06' and `end` < '2025-04-04 18: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-04 18:45:19] Production.INFO: count ==4016 [2025-04-04 18:45:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:45:06 - End Time 2025-04-04 18:45:06 [2025-04-04 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834757', 'tblTempUsageDetail_20' ) start [2025-04-04 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834757', 'tblTempUsageDetail_20' ) end [2025-04-04 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834757', 'tblTempVendorCDR_20' ) start [2025-04-04 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834757', 'tblTempVendorCDR_20' ) end [2025-04-04 18:45:21] Production.INFO: ProcessCDR(1,14834757,1,1,2) [2025-04-04 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834757', 'tblTempUsageDetail_20' ) start [2025-04-04 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834757', 'tblTempUsageDetail_20' ) end [2025-04-04 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:45:25] Production.INFO: ==10092== Releasing lock... [2025-04-04 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:45:25] Production.INFO: 58 MB #Memory Used# [2025-04-04 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:46:05 [end_date_ymd] => 2025-04-04 18:46:05 [RateCDR] => 1 ) [2025-04-04 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:46:05' and `end` < '2025-04-04 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:46:18] Production.INFO: count ==3986 [2025-04-04 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:46:05 - End Time 2025-04-04 18:46:05 [2025-04-04 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834762', 'tblTempUsageDetail_20' ) start [2025-04-04 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834762', 'tblTempUsageDetail_20' ) end [2025-04-04 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834762', 'tblTempVendorCDR_20' ) start [2025-04-04 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834762', 'tblTempVendorCDR_20' ) end [2025-04-04 18:46:20] Production.INFO: ProcessCDR(1,14834762,1,1,2) [2025-04-04 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834762', 'tblTempUsageDetail_20' ) start [2025-04-04 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834762', 'tblTempUsageDetail_20' ) end [2025-04-04 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:46:23] Production.INFO: ==10170== Releasing lock... [2025-04-04 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:46:23] Production.INFO: 57.75 MB #Memory Used# [2025-04-04 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:47:04 [end_date_ymd] => 2025-04-04 18:47:04 [RateCDR] => 1 ) [2025-04-04 18: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-04 15:47:04' and `end` < '2025-04-04 18: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-04 18:47:17] Production.INFO: count ==3952 [2025-04-04 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 15:47:04 - End Time 2025-04-04 18:47:04 [2025-04-04 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834767', 'tblTempUsageDetail_20' ) start [2025-04-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834767', 'tblTempUsageDetail_20' ) end [2025-04-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834767', 'tblTempVendorCDR_20' ) start [2025-04-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834767', 'tblTempVendorCDR_20' ) end [2025-04-04 18:47:19] Production.INFO: ProcessCDR(1,14834767,1,1,2) [2025-04-04 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834767', 'tblTempUsageDetail_20' ) start [2025-04-04 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834767', 'tblTempUsageDetail_20' ) end [2025-04-04 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:47:22] Production.INFO: ==10244== Releasing lock... [2025-04-04 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:47:22] Production.INFO: 57.5 MB #Memory Used# [2025-04-04 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:48:05 [end_date_ymd] => 2025-04-04 18:48:05 [RateCDR] => 1 ) [2025-04-04 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:48:05' and `end` < '2025-04-04 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:48:19] Production.INFO: count ==3921 [2025-04-04 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:48:05 - End Time 2025-04-04 18:48:05 [2025-04-04 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834772', 'tblTempUsageDetail_20' ) start [2025-04-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834772', 'tblTempUsageDetail_20' ) end [2025-04-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834772', 'tblTempVendorCDR_20' ) start [2025-04-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834772', 'tblTempVendorCDR_20' ) end [2025-04-04 18:48:20] Production.INFO: ProcessCDR(1,14834772,1,1,2) [2025-04-04 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834772', 'tblTempUsageDetail_20' ) start [2025-04-04 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834772', 'tblTempUsageDetail_20' ) end [2025-04-04 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:48:24] Production.INFO: ==10321== Releasing lock... [2025-04-04 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:48:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-04 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:49:05 [end_date_ymd] => 2025-04-04 18:49:05 [RateCDR] => 1 ) [2025-04-04 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:49:05' and `end` < '2025-04-04 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:49:18] Production.INFO: count ==3908 [2025-04-04 18:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 15:49:05 - End Time 2025-04-04 18:49:05 [2025-04-04 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834777', 'tblTempUsageDetail_20' ) start [2025-04-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834777', 'tblTempUsageDetail_20' ) end [2025-04-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834777', 'tblTempVendorCDR_20' ) start [2025-04-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834777', 'tblTempVendorCDR_20' ) end [2025-04-04 18:49:19] Production.INFO: ProcessCDR(1,14834777,1,1,2) [2025-04-04 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834777', 'tblTempUsageDetail_20' ) start [2025-04-04 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834777', 'tblTempUsageDetail_20' ) end [2025-04-04 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:49:23] Production.INFO: ==10435== Releasing lock... [2025-04-04 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:49:23] Production.INFO: 57.25 MB #Memory Used# [2025-04-04 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:50:06 [end_date_ymd] => 2025-04-04 18:50:06 [RateCDR] => 1 ) [2025-04-04 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:50:06' and `end` < '2025-04-04 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:50:19] Production.INFO: count ==3897 [2025-04-04 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-04 15:50:06 - End Time 2025-04-04 18:50:06 [2025-04-04 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834782', 'tblTempUsageDetail_20' ) start [2025-04-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834782', 'tblTempUsageDetail_20' ) end [2025-04-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834782', 'tblTempVendorCDR_20' ) start [2025-04-04 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834782', 'tblTempVendorCDR_20' ) end [2025-04-04 18:50:21] Production.INFO: ProcessCDR(1,14834782,1,1,2) [2025-04-04 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834782', 'tblTempUsageDetail_20' ) start [2025-04-04 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834782', 'tblTempUsageDetail_20' ) end [2025-04-04 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:50:25] Production.INFO: ==10515== Releasing lock... [2025-04-04 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:50:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-04 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:51:05 [end_date_ymd] => 2025-04-04 18:51:05 [RateCDR] => 1 ) [2025-04-04 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:51:05' and `end` < '2025-04-04 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:51:19] Production.INFO: count ==3767 [2025-04-04 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:51:05 - End Time 2025-04-04 18:51:05 [2025-04-04 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834788', 'tblTempUsageDetail_20' ) start [2025-04-04 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834788', 'tblTempUsageDetail_20' ) end [2025-04-04 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834788', 'tblTempVendorCDR_20' ) start [2025-04-04 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834788', 'tblTempVendorCDR_20' ) end [2025-04-04 18:51:20] Production.INFO: ProcessCDR(1,14834788,1,1,2) [2025-04-04 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834788', 'tblTempUsageDetail_20' ) start [2025-04-04 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834788', 'tblTempUsageDetail_20' ) end [2025-04-04 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:51:23] Production.INFO: ==10595== Releasing lock... [2025-04-04 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:51:23] Production.INFO: 56.75 MB #Memory Used# [2025-04-04 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:52:05 [end_date_ymd] => 2025-04-04 18:52:05 [RateCDR] => 1 ) [2025-04-04 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:52:05' and `end` < '2025-04-04 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:52:18] Production.INFO: count ==3761 [2025-04-04 18:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 15:52:05 - End Time 2025-04-04 18:52:05 [2025-04-04 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834793', 'tblTempUsageDetail_20' ) start [2025-04-04 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834793', 'tblTempUsageDetail_20' ) end [2025-04-04 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834793', 'tblTempVendorCDR_20' ) start [2025-04-04 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834793', 'tblTempVendorCDR_20' ) end [2025-04-04 18:52:20] Production.INFO: ProcessCDR(1,14834793,1,1,2) [2025-04-04 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834793', 'tblTempUsageDetail_20' ) start [2025-04-04 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834793', 'tblTempUsageDetail_20' ) end [2025-04-04 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:52:23] Production.INFO: ==10670== Releasing lock... [2025-04-04 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:52:23] Production.INFO: 56.5 MB #Memory Used# [2025-04-04 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:53:05 [end_date_ymd] => 2025-04-04 18:53:05 [RateCDR] => 1 ) [2025-04-04 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:53:05' and `end` < '2025-04-04 18: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-04 18:53:18] Production.INFO: count ==3764 [2025-04-04 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:53:05 - End Time 2025-04-04 18:53:05 [2025-04-04 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834798', 'tblTempUsageDetail_20' ) start [2025-04-04 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834798', 'tblTempUsageDetail_20' ) end [2025-04-04 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834798', 'tblTempVendorCDR_20' ) start [2025-04-04 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834798', 'tblTempVendorCDR_20' ) end [2025-04-04 18:53:20] Production.INFO: ProcessCDR(1,14834798,1,1,2) [2025-04-04 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834798', 'tblTempUsageDetail_20' ) start [2025-04-04 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834798', 'tblTempUsageDetail_20' ) end [2025-04-04 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:53:23] Production.INFO: ==10746== Releasing lock... [2025-04-04 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:53:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-04 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:54:05 [end_date_ymd] => 2025-04-04 18:54:05 [RateCDR] => 1 ) [2025-04-04 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:54:05' and `end` < '2025-04-04 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:54:18] Production.INFO: count ==3757 [2025-04-04 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-04 15:54:05 - End Time 2025-04-04 18:54:05 [2025-04-04 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834803', 'tblTempUsageDetail_20' ) start [2025-04-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834803', 'tblTempUsageDetail_20' ) end [2025-04-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834803', 'tblTempVendorCDR_20' ) start [2025-04-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834803', 'tblTempVendorCDR_20' ) end [2025-04-04 18:54:19] Production.INFO: ProcessCDR(1,14834803,1,1,2) [2025-04-04 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834803', 'tblTempUsageDetail_20' ) start [2025-04-04 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834803', 'tblTempUsageDetail_20' ) end [2025-04-04 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:54:23] Production.INFO: ==10819== Releasing lock... [2025-04-04 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:54:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-04 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:55:06 [end_date_ymd] => 2025-04-04 18:55:06 [RateCDR] => 1 ) [2025-04-04 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:55:06' and `end` < '2025-04-04 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:55:19] Production.INFO: count ==3744 [2025-04-04 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:55:06 - End Time 2025-04-04 18:55:06 [2025-04-04 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834808', 'tblTempUsageDetail_20' ) start [2025-04-04 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834808', 'tblTempUsageDetail_20' ) end [2025-04-04 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834808', 'tblTempVendorCDR_20' ) start [2025-04-04 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834808', 'tblTempVendorCDR_20' ) end [2025-04-04 18:55:20] Production.INFO: ProcessCDR(1,14834808,1,1,2) [2025-04-04 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834808', 'tblTempUsageDetail_20' ) start [2025-04-04 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834808', 'tblTempUsageDetail_20' ) end [2025-04-04 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:55:24] Production.INFO: ==10896== Releasing lock... [2025-04-04 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:55:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-04 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:56:05 [end_date_ymd] => 2025-04-04 18:56:05 [RateCDR] => 1 ) [2025-04-04 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:56:05' and `end` < '2025-04-04 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:56:19] Production.INFO: count ==3718 [2025-04-04 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:56:05 - End Time 2025-04-04 18:56:05 [2025-04-04 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834813', 'tblTempUsageDetail_20' ) start [2025-04-04 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834813', 'tblTempUsageDetail_20' ) end [2025-04-04 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834813', 'tblTempVendorCDR_20' ) start [2025-04-04 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834813', 'tblTempVendorCDR_20' ) end [2025-04-04 18:56:20] Production.INFO: ProcessCDR(1,14834813,1,1,2) [2025-04-04 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834813', 'tblTempUsageDetail_20' ) start [2025-04-04 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834813', 'tblTempUsageDetail_20' ) end [2025-04-04 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:56:25] Production.INFO: ==10973== Releasing lock... [2025-04-04 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:56:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-04 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:57:06 [end_date_ymd] => 2025-04-04 18:57:06 [RateCDR] => 1 ) [2025-04-04 18: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-04 15:57:06' and `end` < '2025-04-04 18: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-04 18:57:19] Production.INFO: count ==3682 [2025-04-04 18:57:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:57:06 - End Time 2025-04-04 18:57:06 [2025-04-04 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834818', 'tblTempUsageDetail_20' ) start [2025-04-04 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834818', 'tblTempUsageDetail_20' ) end [2025-04-04 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834818', 'tblTempVendorCDR_20' ) start [2025-04-04 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834818', 'tblTempVendorCDR_20' ) end [2025-04-04 18:57:20] Production.INFO: ProcessCDR(1,14834818,1,1,2) [2025-04-04 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834818', 'tblTempUsageDetail_20' ) start [2025-04-04 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834818', 'tblTempUsageDetail_20' ) end [2025-04-04 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:57:24] Production.INFO: ==11047== Releasing lock... [2025-04-04 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:57:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-04 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:58:05 [end_date_ymd] => 2025-04-04 18:58:05 [RateCDR] => 1 ) [2025-04-04 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:58:05' and `end` < '2025-04-04 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:58:18] Production.INFO: count ==3664 [2025-04-04 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:58:05 - End Time 2025-04-04 18:58:05 [2025-04-04 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834823', 'tblTempUsageDetail_20' ) start [2025-04-04 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834823', 'tblTempUsageDetail_20' ) end [2025-04-04 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834823', 'tblTempVendorCDR_20' ) start [2025-04-04 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834823', 'tblTempVendorCDR_20' ) end [2025-04-04 18:58:20] Production.INFO: ProcessCDR(1,14834823,1,1,2) [2025-04-04 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834823', 'tblTempUsageDetail_20' ) start [2025-04-04 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834823', 'tblTempUsageDetail_20' ) end [2025-04-04 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:58:25] Production.INFO: ==11120== Releasing lock... [2025-04-04 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:58:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-04 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 15:59:05 [end_date_ymd] => 2025-04-04 18:59:05 [RateCDR] => 1 ) [2025-04-04 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 15:59:05' and `end` < '2025-04-04 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 18:59:18] Production.INFO: count ==3651 [2025-04-04 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-04 15:59:05 - End Time 2025-04-04 18:59:05 [2025-04-04 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834828', 'tblTempUsageDetail_20' ) start [2025-04-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834828', 'tblTempUsageDetail_20' ) end [2025-04-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834828', 'tblTempVendorCDR_20' ) start [2025-04-04 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834828', 'tblTempVendorCDR_20' ) end [2025-04-04 18:59:20] Production.INFO: ProcessCDR(1,14834828,1,1,2) [2025-04-04 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834828', 'tblTempUsageDetail_20' ) start [2025-04-04 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834828', 'tblTempUsageDetail_20' ) end [2025-04-04 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 18:59:23] Production.INFO: ==11194== Releasing lock... [2025-04-04 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 18:59:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-04 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:00:05 [end_date_ymd] => 2025-04-04 19:00:05 [RateCDR] => 1 ) [2025-04-04 19: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-04 16:00:05' and `end` < '2025-04-04 19: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-04 19:00:19] Production.INFO: count ==3650 [2025-04-04 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:00:05 - End Time 2025-04-04 19:00:05 [2025-04-04 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834834', 'tblTempUsageDetail_20' ) start [2025-04-04 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834834', 'tblTempUsageDetail_20' ) end [2025-04-04 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834834', 'tblTempVendorCDR_20' ) start [2025-04-04 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834834', 'tblTempVendorCDR_20' ) end [2025-04-04 19:00:20] Production.INFO: ProcessCDR(1,14834834,1,1,2) [2025-04-04 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834834', 'tblTempUsageDetail_20' ) start [2025-04-04 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834834', 'tblTempUsageDetail_20' ) end [2025-04-04 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:00:26] Production.INFO: ==11271== Releasing lock... [2025-04-04 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:00:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-04 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:01:05 [end_date_ymd] => 2025-04-04 19:01:05 [RateCDR] => 1 ) [2025-04-04 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:01:05' and `end` < '2025-04-04 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:01:19] Production.INFO: count ==3663 [2025-04-04 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:01:05 - End Time 2025-04-04 19:01:05 [2025-04-04 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834839', 'tblTempUsageDetail_20' ) start [2025-04-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834839', 'tblTempUsageDetail_20' ) end [2025-04-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834839', 'tblTempVendorCDR_20' ) start [2025-04-04 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834839', 'tblTempVendorCDR_20' ) end [2025-04-04 19:01:20] Production.INFO: ProcessCDR(1,14834839,1,1,2) [2025-04-04 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834839', 'tblTempUsageDetail_20' ) start [2025-04-04 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834839', 'tblTempUsageDetail_20' ) end [2025-04-04 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:01:25] Production.INFO: ==11442== Releasing lock... [2025-04-04 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:01:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-04 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:02:05 [end_date_ymd] => 2025-04-04 19:02:05 [RateCDR] => 1 ) [2025-04-04 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:02:05' and `end` < '2025-04-04 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:02:19] Production.INFO: count ==3653 [2025-04-04 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:02:05 - End Time 2025-04-04 19:02:05 [2025-04-04 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834844', 'tblTempUsageDetail_20' ) start [2025-04-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834844', 'tblTempUsageDetail_20' ) end [2025-04-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834844', 'tblTempVendorCDR_20' ) start [2025-04-04 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834844', 'tblTempVendorCDR_20' ) end [2025-04-04 19:02:20] Production.INFO: ProcessCDR(1,14834844,1,1,2) [2025-04-04 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834844', 'tblTempUsageDetail_20' ) start [2025-04-04 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834844', 'tblTempUsageDetail_20' ) end [2025-04-04 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:02:24] Production.INFO: ==11523== Releasing lock... [2025-04-04 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:02:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-04 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:03:05 [end_date_ymd] => 2025-04-04 19:03:05 [RateCDR] => 1 ) [2025-04-04 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:03:05' and `end` < '2025-04-04 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:03:19] Production.INFO: count ==3650 [2025-04-04 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:03:05 - End Time 2025-04-04 19:03:05 [2025-04-04 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834849', 'tblTempUsageDetail_20' ) start [2025-04-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834849', 'tblTempUsageDetail_20' ) end [2025-04-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834849', 'tblTempVendorCDR_20' ) start [2025-04-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834849', 'tblTempVendorCDR_20' ) end [2025-04-04 19:03:20] Production.INFO: ProcessCDR(1,14834849,1,1,2) [2025-04-04 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834849', 'tblTempUsageDetail_20' ) start [2025-04-04 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834849', 'tblTempUsageDetail_20' ) end [2025-04-04 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:03:23] Production.INFO: ==11598== Releasing lock... [2025-04-04 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:03:23] Production.INFO: 55.75 MB #Memory Used# [2025-04-04 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:04:05 [end_date_ymd] => 2025-04-04 19:04:05 [RateCDR] => 1 ) [2025-04-04 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:04:05' and `end` < '2025-04-04 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:04:19] Production.INFO: count ==3639 [2025-04-04 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:04:05 - End Time 2025-04-04 19:04:05 [2025-04-04 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834854', 'tblTempUsageDetail_20' ) start [2025-04-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834854', 'tblTempUsageDetail_20' ) end [2025-04-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834854', 'tblTempVendorCDR_20' ) start [2025-04-04 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834854', 'tblTempVendorCDR_20' ) end [2025-04-04 19:04:20] Production.INFO: ProcessCDR(1,14834854,1,1,2) [2025-04-04 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834854', 'tblTempUsageDetail_20' ) start [2025-04-04 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834854', 'tblTempUsageDetail_20' ) end [2025-04-04 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:04:24] Production.INFO: ==11711== Releasing lock... [2025-04-04 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:04:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-04 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:05:05 [end_date_ymd] => 2025-04-04 19:05:05 [RateCDR] => 1 ) [2025-04-04 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:05:05' and `end` < '2025-04-04 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:05:18] Production.INFO: count ==3629 [2025-04-04 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:05:05 - End Time 2025-04-04 19:05:05 [2025-04-04 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834859', 'tblTempUsageDetail_20' ) start [2025-04-04 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834859', 'tblTempUsageDetail_20' ) end [2025-04-04 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834859', 'tblTempVendorCDR_20' ) start [2025-04-04 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834859', 'tblTempVendorCDR_20' ) end [2025-04-04 19:05:20] Production.INFO: ProcessCDR(1,14834859,1,1,2) [2025-04-04 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834859', 'tblTempUsageDetail_20' ) start [2025-04-04 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834859', 'tblTempUsageDetail_20' ) end [2025-04-04 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:05:23] Production.INFO: ==11862== Releasing lock... [2025-04-04 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:05:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-04 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:06:05 [end_date_ymd] => 2025-04-04 19:06:05 [RateCDR] => 1 ) [2025-04-04 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:06:05' and `end` < '2025-04-04 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:06:19] Production.INFO: count ==3643 [2025-04-04 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:06:05 - End Time 2025-04-04 19:06:05 [2025-04-04 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834864', 'tblTempUsageDetail_20' ) start [2025-04-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834864', 'tblTempUsageDetail_20' ) end [2025-04-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834864', 'tblTempVendorCDR_20' ) start [2025-04-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834864', 'tblTempVendorCDR_20' ) end [2025-04-04 19:06:20] Production.INFO: ProcessCDR(1,14834864,1,1,2) [2025-04-04 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834864', 'tblTempUsageDetail_20' ) start [2025-04-04 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834864', 'tblTempUsageDetail_20' ) end [2025-04-04 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:06:23] Production.INFO: ==11936== Releasing lock... [2025-04-04 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:06:23] Production.INFO: 56 MB #Memory Used# [2025-04-04 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:07:05 [end_date_ymd] => 2025-04-04 19:07:05 [RateCDR] => 1 ) [2025-04-04 19: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 16:07:05' and `end` < '2025-04-04 19: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-04 19:07:18] Production.INFO: count ==3636 [2025-04-04 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:07:05 - End Time 2025-04-04 19:07:05 [2025-04-04 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834869', 'tblTempUsageDetail_20' ) start [2025-04-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834869', 'tblTempUsageDetail_20' ) end [2025-04-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834869', 'tblTempVendorCDR_20' ) start [2025-04-04 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834869', 'tblTempVendorCDR_20' ) end [2025-04-04 19:07:20] Production.INFO: ProcessCDR(1,14834869,1,1,2) [2025-04-04 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834869', 'tblTempUsageDetail_20' ) start [2025-04-04 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834869', 'tblTempUsageDetail_20' ) end [2025-04-04 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:07:23] Production.INFO: ==12009== Releasing lock... [2025-04-04 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:07:23] Production.INFO: 55.5 MB #Memory Used# [2025-04-04 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:08:06 [end_date_ymd] => 2025-04-04 19:08:06 [RateCDR] => 1 ) [2025-04-04 19: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 16:08:06' and `end` < '2025-04-04 19: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-04 19:08:19] Production.INFO: count ==3616 [2025-04-04 19:08:21] Production.ERROR: pbx CDR StartTime 2025-04-04 16:08:06 - End Time 2025-04-04 19:08:06 [2025-04-04 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834874', 'tblTempUsageDetail_20' ) start [2025-04-04 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834874', 'tblTempUsageDetail_20' ) end [2025-04-04 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834874', 'tblTempVendorCDR_20' ) start [2025-04-04 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834874', 'tblTempVendorCDR_20' ) end [2025-04-04 19:08:21] Production.INFO: ProcessCDR(1,14834874,1,1,2) [2025-04-04 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834874', 'tblTempUsageDetail_20' ) start [2025-04-04 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834874', 'tblTempUsageDetail_20' ) end [2025-04-04 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:08:24] Production.INFO: ==12160== Releasing lock... [2025-04-04 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:08:24] Production.INFO: 55 MB #Memory Used# [2025-04-04 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:09:05 [end_date_ymd] => 2025-04-04 19:09:05 [RateCDR] => 1 ) [2025-04-04 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:09:05' and `end` < '2025-04-04 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:09:18] Production.INFO: count ==3609 [2025-04-04 19:09:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:09:05 - End Time 2025-04-04 19:09:05 [2025-04-04 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834879', 'tblTempUsageDetail_20' ) start [2025-04-04 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834879', 'tblTempUsageDetail_20' ) end [2025-04-04 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834879', 'tblTempVendorCDR_20' ) start [2025-04-04 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834879', 'tblTempVendorCDR_20' ) end [2025-04-04 19:09:20] Production.INFO: ProcessCDR(1,14834879,1,1,2) [2025-04-04 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834879', 'tblTempUsageDetail_20' ) start [2025-04-04 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834879', 'tblTempUsageDetail_20' ) end [2025-04-04 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:09:23] Production.INFO: ==12235== Releasing lock... [2025-04-04 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:09:23] Production.INFO: 55.5 MB #Memory Used# [2025-04-04 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:10:06 [end_date_ymd] => 2025-04-04 19:10:06 [RateCDR] => 1 ) [2025-04-04 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:10:06' and `end` < '2025-04-04 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:10:20] Production.INFO: count ==3561 [2025-04-04 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-04 16:10:06 - End Time 2025-04-04 19:10:06 [2025-04-04 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834885', 'tblTempUsageDetail_20' ) start [2025-04-04 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834885', 'tblTempUsageDetail_20' ) end [2025-04-04 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834885', 'tblTempVendorCDR_20' ) start [2025-04-04 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834885', 'tblTempVendorCDR_20' ) end [2025-04-04 19:10:21] Production.INFO: ProcessCDR(1,14834885,1,1,2) [2025-04-04 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834885', 'tblTempUsageDetail_20' ) start [2025-04-04 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834885', 'tblTempUsageDetail_20' ) end [2025-04-04 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:10:24] Production.INFO: ==12312== Releasing lock... [2025-04-04 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:10:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-04 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:11:05 [end_date_ymd] => 2025-04-04 19:11:05 [RateCDR] => 1 ) [2025-04-04 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:11:05' and `end` < '2025-04-04 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:11:18] Production.INFO: count ==3473 [2025-04-04 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:11:05 - End Time 2025-04-04 19:11:05 [2025-04-04 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834890', 'tblTempUsageDetail_20' ) start [2025-04-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834890', 'tblTempUsageDetail_20' ) end [2025-04-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834890', 'tblTempVendorCDR_20' ) start [2025-04-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834890', 'tblTempVendorCDR_20' ) end [2025-04-04 19:11:19] Production.INFO: ProcessCDR(1,14834890,1,1,2) [2025-04-04 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834890', 'tblTempUsageDetail_20' ) start [2025-04-04 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834890', 'tblTempUsageDetail_20' ) end [2025-04-04 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:11:23] Production.INFO: ==12385== Releasing lock... [2025-04-04 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:11:23] Production.INFO: 54.25 MB #Memory Used# [2025-04-04 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:12:05 [end_date_ymd] => 2025-04-04 19:12:05 [RateCDR] => 1 ) [2025-04-04 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:12:05' and `end` < '2025-04-04 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:12:19] Production.INFO: count ==3464 [2025-04-04 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:12:05 - End Time 2025-04-04 19:12:05 [2025-04-04 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834895', 'tblTempUsageDetail_20' ) start [2025-04-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834895', 'tblTempUsageDetail_20' ) end [2025-04-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834895', 'tblTempVendorCDR_20' ) start [2025-04-04 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834895', 'tblTempVendorCDR_20' ) end [2025-04-04 19:12:20] Production.INFO: ProcessCDR(1,14834895,1,1,2) [2025-04-04 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834895', 'tblTempUsageDetail_20' ) start [2025-04-04 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834895', 'tblTempUsageDetail_20' ) end [2025-04-04 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:12:25] Production.INFO: ==12540== Releasing lock... [2025-04-04 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:12:25] Production.INFO: 55 MB #Memory Used# [2025-04-04 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:13:05 [end_date_ymd] => 2025-04-04 19:13:05 [RateCDR] => 1 ) [2025-04-04 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:13:05' and `end` < '2025-04-04 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:13:18] Production.INFO: count ==3430 [2025-04-04 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:13:05 - End Time 2025-04-04 19:13:05 [2025-04-04 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834900', 'tblTempUsageDetail_20' ) start [2025-04-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834900', 'tblTempUsageDetail_20' ) end [2025-04-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834900', 'tblTempVendorCDR_20' ) start [2025-04-04 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834900', 'tblTempVendorCDR_20' ) end [2025-04-04 19:13:19] Production.INFO: ProcessCDR(1,14834900,1,1,2) [2025-04-04 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834900', 'tblTempUsageDetail_20' ) start [2025-04-04 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834900', 'tblTempUsageDetail_20' ) end [2025-04-04 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:13:23] Production.INFO: ==12620== Releasing lock... [2025-04-04 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:13:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-04 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:14:05 [end_date_ymd] => 2025-04-04 19:14:05 [RateCDR] => 1 ) [2025-04-04 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:14:05' and `end` < '2025-04-04 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:14:19] Production.INFO: count ==3429 [2025-04-04 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:14:05 - End Time 2025-04-04 19:14:05 [2025-04-04 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834905', 'tblTempUsageDetail_20' ) start [2025-04-04 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834905', 'tblTempUsageDetail_20' ) end [2025-04-04 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834905', 'tblTempVendorCDR_20' ) start [2025-04-04 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834905', 'tblTempVendorCDR_20' ) end [2025-04-04 19:14:20] Production.INFO: ProcessCDR(1,14834905,1,1,2) [2025-04-04 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834905', 'tblTempUsageDetail_20' ) start [2025-04-04 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834905', 'tblTempUsageDetail_20' ) end [2025-04-04 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:14:25] Production.INFO: ==12694== Releasing lock... [2025-04-04 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:14:25] Production.INFO: 54 MB #Memory Used# [2025-04-04 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:15:04 [end_date_ymd] => 2025-04-04 19:15:04 [RateCDR] => 1 ) [2025-04-04 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:15:04' and `end` < '2025-04-04 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:15:17] Production.INFO: count ==3413 [2025-04-04 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:15:04 - End Time 2025-04-04 19:15:04 [2025-04-04 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834910', 'tblTempUsageDetail_20' ) start [2025-04-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834910', 'tblTempUsageDetail_20' ) end [2025-04-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834910', 'tblTempVendorCDR_20' ) start [2025-04-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834910', 'tblTempVendorCDR_20' ) end [2025-04-04 19:15:19] Production.INFO: ProcessCDR(1,14834910,1,1,2) [2025-04-04 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834910', 'tblTempUsageDetail_20' ) start [2025-04-04 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834910', 'tblTempUsageDetail_20' ) end [2025-04-04 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:15:23] Production.INFO: ==12850== Releasing lock... [2025-04-04 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:15:23] Production.INFO: 54.5 MB #Memory Used# [2025-04-04 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:16:05 [end_date_ymd] => 2025-04-04 19:16:05 [RateCDR] => 1 ) [2025-04-04 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:16:05' and `end` < '2025-04-04 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:16:19] Production.INFO: count ==3407 [2025-04-04 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:16:05 - End Time 2025-04-04 19:16:05 [2025-04-04 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834915', 'tblTempUsageDetail_20' ) start [2025-04-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834915', 'tblTempUsageDetail_20' ) end [2025-04-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834915', 'tblTempVendorCDR_20' ) start [2025-04-04 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834915', 'tblTempVendorCDR_20' ) end [2025-04-04 19:16:20] Production.INFO: ProcessCDR(1,14834915,1,1,2) [2025-04-04 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834915', 'tblTempUsageDetail_20' ) start [2025-04-04 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834915', 'tblTempUsageDetail_20' ) end [2025-04-04 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:16:23] Production.INFO: ==12924== Releasing lock... [2025-04-04 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:16:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-04 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:17:05 [end_date_ymd] => 2025-04-04 19:17:05 [RateCDR] => 1 ) [2025-04-04 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:17:05' and `end` < '2025-04-04 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:17:18] Production.INFO: count ==3389 [2025-04-04 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:17:05 - End Time 2025-04-04 19:17:05 [2025-04-04 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834920', 'tblTempUsageDetail_20' ) start [2025-04-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834920', 'tblTempUsageDetail_20' ) end [2025-04-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834920', 'tblTempVendorCDR_20' ) start [2025-04-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834920', 'tblTempVendorCDR_20' ) end [2025-04-04 19:17:19] Production.INFO: ProcessCDR(1,14834920,1,1,2) [2025-04-04 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834920', 'tblTempUsageDetail_20' ) start [2025-04-04 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834920', 'tblTempUsageDetail_20' ) end [2025-04-04 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:17:23] Production.INFO: ==13002== Releasing lock... [2025-04-04 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:17:23] Production.INFO: 54.25 MB #Memory Used# [2025-04-04 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:18:05 [end_date_ymd] => 2025-04-04 19:18:05 [RateCDR] => 1 ) [2025-04-04 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:18:05' and `end` < '2025-04-04 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:18:19] Production.INFO: count ==3382 [2025-04-04 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:18:05 - End Time 2025-04-04 19:18:05 [2025-04-04 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834925', 'tblTempUsageDetail_20' ) start [2025-04-04 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834925', 'tblTempUsageDetail_20' ) end [2025-04-04 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834925', 'tblTempVendorCDR_20' ) start [2025-04-04 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834925', 'tblTempVendorCDR_20' ) end [2025-04-04 19:18:20] Production.INFO: ProcessCDR(1,14834925,1,1,2) [2025-04-04 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834925', 'tblTempUsageDetail_20' ) start [2025-04-04 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834925', 'tblTempUsageDetail_20' ) end [2025-04-04 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:18:23] Production.INFO: ==13079== Releasing lock... [2025-04-04 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:18:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-04 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:19:06 [end_date_ymd] => 2025-04-04 19:19:06 [RateCDR] => 1 ) [2025-04-04 19: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-04 16:19:06' and `end` < '2025-04-04 19: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-04 19:19:20] Production.INFO: count ==3363 [2025-04-04 19:19:21] Production.ERROR: pbx CDR StartTime 2025-04-04 16:19:06 - End Time 2025-04-04 19:19:06 [2025-04-04 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834930', 'tblTempUsageDetail_20' ) start [2025-04-04 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834930', 'tblTempUsageDetail_20' ) end [2025-04-04 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834930', 'tblTempVendorCDR_20' ) start [2025-04-04 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834930', 'tblTempVendorCDR_20' ) end [2025-04-04 19:19:21] Production.INFO: ProcessCDR(1,14834930,1,1,2) [2025-04-04 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834930', 'tblTempUsageDetail_20' ) start [2025-04-04 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834930', 'tblTempUsageDetail_20' ) end [2025-04-04 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:19:24] Production.INFO: ==13161== Releasing lock... [2025-04-04 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:19:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-04 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:20:05 [end_date_ymd] => 2025-04-04 19:20:05 [RateCDR] => 1 ) [2025-04-04 19: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-04 16:20:05' and `end` < '2025-04-04 19: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-04 19:20:19] Production.INFO: count ==3353 [2025-04-04 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:20:05 - End Time 2025-04-04 19:20:05 [2025-04-04 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834935', 'tblTempUsageDetail_20' ) start [2025-04-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834935', 'tblTempUsageDetail_20' ) end [2025-04-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834935', 'tblTempVendorCDR_20' ) start [2025-04-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834935', 'tblTempVendorCDR_20' ) end [2025-04-04 19:20:20] Production.INFO: ProcessCDR(1,14834935,1,1,2) [2025-04-04 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834935', 'tblTempUsageDetail_20' ) start [2025-04-04 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834935', 'tblTempUsageDetail_20' ) end [2025-04-04 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:20:23] Production.INFO: ==13281== Releasing lock... [2025-04-04 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:20:23] Production.INFO: 53 MB #Memory Used# [2025-04-04 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:21:05 [end_date_ymd] => 2025-04-04 19:21:05 [RateCDR] => 1 ) [2025-04-04 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:21:05' and `end` < '2025-04-04 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:21:19] Production.INFO: count ==3289 [2025-04-04 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:21:05 - End Time 2025-04-04 19:21:05 [2025-04-04 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834941', 'tblTempUsageDetail_20' ) start [2025-04-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834941', 'tblTempUsageDetail_20' ) end [2025-04-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834941', 'tblTempVendorCDR_20' ) start [2025-04-04 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834941', 'tblTempVendorCDR_20' ) end [2025-04-04 19:21:20] Production.INFO: ProcessCDR(1,14834941,1,1,2) [2025-04-04 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834941', 'tblTempUsageDetail_20' ) start [2025-04-04 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834941', 'tblTempUsageDetail_20' ) end [2025-04-04 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:21:25] Production.INFO: ==13366== Releasing lock... [2025-04-04 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:21:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-04 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:22:05 [end_date_ymd] => 2025-04-04 19:22:05 [RateCDR] => 1 ) [2025-04-04 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:22:05' and `end` < '2025-04-04 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:22:19] Production.INFO: count ==3281 [2025-04-04 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:22:05 - End Time 2025-04-04 19:22:05 [2025-04-04 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834946', 'tblTempUsageDetail_20' ) start [2025-04-04 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834946', 'tblTempUsageDetail_20' ) end [2025-04-04 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834946', 'tblTempVendorCDR_20' ) start [2025-04-04 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834946', 'tblTempVendorCDR_20' ) end [2025-04-04 19:22:20] Production.INFO: ProcessCDR(1,14834946,1,1,2) [2025-04-04 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834946', 'tblTempUsageDetail_20' ) start [2025-04-04 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834946', 'tblTempUsageDetail_20' ) end [2025-04-04 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:22:23] Production.INFO: ==13452== Releasing lock... [2025-04-04 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:22:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-04 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:23:05 [end_date_ymd] => 2025-04-04 19:23:05 [RateCDR] => 1 ) [2025-04-04 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:23:05' and `end` < '2025-04-04 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:23:19] Production.INFO: count ==3274 [2025-04-04 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:23:05 - End Time 2025-04-04 19:23:05 [2025-04-04 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834951', 'tblTempUsageDetail_20' ) start [2025-04-04 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834951', 'tblTempUsageDetail_20' ) end [2025-04-04 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834951', 'tblTempVendorCDR_20' ) start [2025-04-04 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834951', 'tblTempVendorCDR_20' ) end [2025-04-04 19:23:20] Production.INFO: ProcessCDR(1,14834951,1,1,2) [2025-04-04 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834951', 'tblTempUsageDetail_20' ) start [2025-04-04 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834951', 'tblTempUsageDetail_20' ) end [2025-04-04 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:23:23] Production.INFO: ==13525== Releasing lock... [2025-04-04 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:23:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-04 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:24:05 [end_date_ymd] => 2025-04-04 19:24:05 [RateCDR] => 1 ) [2025-04-04 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:24:05' and `end` < '2025-04-04 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:24:18] Production.INFO: count ==3280 [2025-04-04 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:24:05 - End Time 2025-04-04 19:24:05 [2025-04-04 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834956', 'tblTempUsageDetail_20' ) start [2025-04-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834956', 'tblTempUsageDetail_20' ) end [2025-04-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834956', 'tblTempVendorCDR_20' ) start [2025-04-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834956', 'tblTempVendorCDR_20' ) end [2025-04-04 19:24:19] Production.INFO: ProcessCDR(1,14834956,1,1,2) [2025-04-04 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834956', 'tblTempUsageDetail_20' ) start [2025-04-04 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834956', 'tblTempUsageDetail_20' ) end [2025-04-04 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:24:23] Production.INFO: ==13610== Releasing lock... [2025-04-04 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:24:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-04 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:25:05 [end_date_ymd] => 2025-04-04 19:25:05 [RateCDR] => 1 ) [2025-04-04 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:25:05' and `end` < '2025-04-04 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:25:19] Production.INFO: count ==3273 [2025-04-04 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:25:05 - End Time 2025-04-04 19:25:05 [2025-04-04 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834961', 'tblTempUsageDetail_20' ) start [2025-04-04 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834961', 'tblTempUsageDetail_20' ) end [2025-04-04 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834961', 'tblTempVendorCDR_20' ) start [2025-04-04 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834961', 'tblTempVendorCDR_20' ) end [2025-04-04 19:25:20] Production.INFO: ProcessCDR(1,14834961,1,1,2) [2025-04-04 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834961', 'tblTempUsageDetail_20' ) start [2025-04-04 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834961', 'tblTempUsageDetail_20' ) end [2025-04-04 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:25:25] Production.INFO: ==13688== Releasing lock... [2025-04-04 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:25:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-04 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:26:05 [end_date_ymd] => 2025-04-04 19:26:05 [RateCDR] => 1 ) [2025-04-04 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:26:05' and `end` < '2025-04-04 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:26:18] Production.INFO: count ==3248 [2025-04-04 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:26:05 - End Time 2025-04-04 19:26:05 [2025-04-04 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834966', 'tblTempUsageDetail_20' ) start [2025-04-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834966', 'tblTempUsageDetail_20' ) end [2025-04-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834966', 'tblTempVendorCDR_20' ) start [2025-04-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834966', 'tblTempVendorCDR_20' ) end [2025-04-04 19:26:19] Production.INFO: ProcessCDR(1,14834966,1,1,2) [2025-04-04 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834966', 'tblTempUsageDetail_20' ) start [2025-04-04 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834966', 'tblTempUsageDetail_20' ) end [2025-04-04 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:26:23] Production.INFO: ==13767== Releasing lock... [2025-04-04 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:26:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-04 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:27:05 [end_date_ymd] => 2025-04-04 19:27:05 [RateCDR] => 1 ) [2025-04-04 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:27:05' and `end` < '2025-04-04 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:27:19] Production.INFO: count ==3212 [2025-04-04 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:27:05 - End Time 2025-04-04 19:27:05 [2025-04-04 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834971', 'tblTempUsageDetail_20' ) start [2025-04-04 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834971', 'tblTempUsageDetail_20' ) end [2025-04-04 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834971', 'tblTempVendorCDR_20' ) start [2025-04-04 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834971', 'tblTempVendorCDR_20' ) end [2025-04-04 19:27:20] Production.INFO: ProcessCDR(1,14834971,1,1,2) [2025-04-04 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834971', 'tblTempUsageDetail_20' ) start [2025-04-04 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834971', 'tblTempUsageDetail_20' ) end [2025-04-04 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:27:23] Production.INFO: ==13843== Releasing lock... [2025-04-04 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:27:23] Production.INFO: 52 MB #Memory Used# [2025-04-04 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:28:06 [end_date_ymd] => 2025-04-04 19:28:06 [RateCDR] => 1 ) [2025-04-04 19: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 16:28:06' and `end` < '2025-04-04 19: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-04 19:28:19] Production.INFO: count ==3202 [2025-04-04 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:28:06 - End Time 2025-04-04 19:28:06 [2025-04-04 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834976', 'tblTempUsageDetail_20' ) start [2025-04-04 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834976', 'tblTempUsageDetail_20' ) end [2025-04-04 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834976', 'tblTempVendorCDR_20' ) start [2025-04-04 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834976', 'tblTempVendorCDR_20' ) end [2025-04-04 19:28:20] Production.INFO: ProcessCDR(1,14834976,1,1,2) [2025-04-04 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834976', 'tblTempUsageDetail_20' ) start [2025-04-04 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834976', 'tblTempUsageDetail_20' ) end [2025-04-04 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:28:23] Production.INFO: ==13926== Releasing lock... [2025-04-04 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:28:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-04 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:29:05 [end_date_ymd] => 2025-04-04 19:29:05 [RateCDR] => 1 ) [2025-04-04 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:29:05' and `end` < '2025-04-04 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:29:18] Production.INFO: count ==3199 [2025-04-04 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:29:05 - End Time 2025-04-04 19:29:05 [2025-04-04 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834981', 'tblTempUsageDetail_20' ) start [2025-04-04 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834981', 'tblTempUsageDetail_20' ) end [2025-04-04 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834981', 'tblTempVendorCDR_20' ) start [2025-04-04 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834981', 'tblTempVendorCDR_20' ) end [2025-04-04 19:29:20] Production.INFO: ProcessCDR(1,14834981,1,1,2) [2025-04-04 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834981', 'tblTempUsageDetail_20' ) start [2025-04-04 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834981', 'tblTempUsageDetail_20' ) end [2025-04-04 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:29:24] Production.INFO: ==14006== Releasing lock... [2025-04-04 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:29:24] Production.INFO: 51.75 MB #Memory Used# [2025-04-04 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:30:07 [end_date_ymd] => 2025-04-04 19:30:07 [RateCDR] => 1 ) [2025-04-04 19:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:30:07' and `end` < '2025-04-04 19:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:30:20] Production.INFO: count ==3191 [2025-04-04 19:30:21] Production.ERROR: pbx CDR StartTime 2025-04-04 16:30:07 - End Time 2025-04-04 19:30:07 [2025-04-04 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834987', 'tblTempUsageDetail_20' ) start [2025-04-04 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834987', 'tblTempUsageDetail_20' ) end [2025-04-04 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834987', 'tblTempVendorCDR_20' ) start [2025-04-04 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834987', 'tblTempVendorCDR_20' ) end [2025-04-04 19:30:21] Production.INFO: ProcessCDR(1,14834987,1,1,2) [2025-04-04 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834987', 'tblTempUsageDetail_20' ) start [2025-04-04 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834987', 'tblTempUsageDetail_20' ) end [2025-04-04 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:30:26] Production.INFO: ==14093== Releasing lock... [2025-04-04 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:30:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-04 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:31:05 [end_date_ymd] => 2025-04-04 19:31:05 [RateCDR] => 1 ) [2025-04-04 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:31:05' and `end` < '2025-04-04 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:31:19] Production.INFO: count ==3163 [2025-04-04 19:31:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:31:05 - End Time 2025-04-04 19:31:05 [2025-04-04 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834992', 'tblTempUsageDetail_20' ) start [2025-04-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834992', 'tblTempUsageDetail_20' ) end [2025-04-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834992', 'tblTempVendorCDR_20' ) start [2025-04-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834992', 'tblTempVendorCDR_20' ) end [2025-04-04 19:31:20] Production.INFO: ProcessCDR(1,14834992,1,1,2) [2025-04-04 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834992', 'tblTempUsageDetail_20' ) start [2025-04-04 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834992', 'tblTempUsageDetail_20' ) end [2025-04-04 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:31:23] Production.INFO: ==14173== Releasing lock... [2025-04-04 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:31:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-04 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:32:06 [end_date_ymd] => 2025-04-04 19:32:06 [RateCDR] => 1 ) [2025-04-04 19: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 16:32:06' and `end` < '2025-04-04 19: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-04 19:32:19] Production.INFO: count ==3161 [2025-04-04 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:32:06 - End Time 2025-04-04 19:32:06 [2025-04-04 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834997', 'tblTempUsageDetail_20' ) start [2025-04-04 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14834997', 'tblTempUsageDetail_20' ) end [2025-04-04 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834997', 'tblTempVendorCDR_20' ) start [2025-04-04 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14834997', 'tblTempVendorCDR_20' ) end [2025-04-04 19:32:20] Production.INFO: ProcessCDR(1,14834997,1,1,2) [2025-04-04 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14834997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14834997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14834997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14834997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834997', 'tblTempUsageDetail_20' ) start [2025-04-04 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14834997', 'tblTempUsageDetail_20' ) end [2025-04-04 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:32:24] Production.INFO: ==14255== Releasing lock... [2025-04-04 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:32:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-04 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:33:05 [end_date_ymd] => 2025-04-04 19:33:05 [RateCDR] => 1 ) [2025-04-04 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:33:05' and `end` < '2025-04-04 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:33:18] Production.INFO: count ==3126 [2025-04-04 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:33:05 - End Time 2025-04-04 19:33:05 [2025-04-04 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835002', 'tblTempUsageDetail_20' ) start [2025-04-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835002', 'tblTempUsageDetail_20' ) end [2025-04-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835002', 'tblTempVendorCDR_20' ) start [2025-04-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835002', 'tblTempVendorCDR_20' ) end [2025-04-04 19:33:19] Production.INFO: ProcessCDR(1,14835002,1,1,2) [2025-04-04 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835002', 'tblTempUsageDetail_20' ) start [2025-04-04 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835002', 'tblTempUsageDetail_20' ) end [2025-04-04 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:33:22] Production.INFO: ==14334== Releasing lock... [2025-04-04 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:33:22] Production.INFO: 51.25 MB #Memory Used# [2025-04-04 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:34:05 [end_date_ymd] => 2025-04-04 19:34:05 [RateCDR] => 1 ) [2025-04-04 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:34:05' and `end` < '2025-04-04 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:34:18] Production.INFO: count ==3112 [2025-04-04 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:34:05 - End Time 2025-04-04 19:34:05 [2025-04-04 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835007', 'tblTempUsageDetail_20' ) start [2025-04-04 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835007', 'tblTempUsageDetail_20' ) end [2025-04-04 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835007', 'tblTempVendorCDR_20' ) start [2025-04-04 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835007', 'tblTempVendorCDR_20' ) end [2025-04-04 19:34:19] Production.INFO: ProcessCDR(1,14835007,1,1,2) [2025-04-04 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835007', 'tblTempUsageDetail_20' ) start [2025-04-04 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835007', 'tblTempUsageDetail_20' ) end [2025-04-04 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:34:23] Production.INFO: ==14423== Releasing lock... [2025-04-04 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:34:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-04 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:35:05 [end_date_ymd] => 2025-04-04 19:35:05 [RateCDR] => 1 ) [2025-04-04 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:35:05' and `end` < '2025-04-04 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:35:18] Production.INFO: count ==3112 [2025-04-04 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:35:05 - End Time 2025-04-04 19:35:05 [2025-04-04 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835012', 'tblTempUsageDetail_20' ) start [2025-04-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835012', 'tblTempUsageDetail_20' ) end [2025-04-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835012', 'tblTempVendorCDR_20' ) start [2025-04-04 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835012', 'tblTempVendorCDR_20' ) end [2025-04-04 19:35:19] Production.INFO: ProcessCDR(1,14835012,1,1,2) [2025-04-04 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835012', 'tblTempUsageDetail_20' ) start [2025-04-04 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835012', 'tblTempUsageDetail_20' ) end [2025-04-04 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:35:24] Production.INFO: ==14544== Releasing lock... [2025-04-04 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:35:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-04 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:36:06 [end_date_ymd] => 2025-04-04 19:36:06 [RateCDR] => 1 ) [2025-04-04 19: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-04 16:36:06' and `end` < '2025-04-04 19: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-04 19:36:19] Production.INFO: count ==3098 [2025-04-04 19:36:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:36:06 - End Time 2025-04-04 19:36:06 [2025-04-04 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835017', 'tblTempUsageDetail_20' ) start [2025-04-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835017', 'tblTempUsageDetail_20' ) end [2025-04-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835017', 'tblTempVendorCDR_20' ) start [2025-04-04 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835017', 'tblTempVendorCDR_20' ) end [2025-04-04 19:36:20] Production.INFO: ProcessCDR(1,14835017,1,1,2) [2025-04-04 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835017', 'tblTempUsageDetail_20' ) start [2025-04-04 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835017', 'tblTempUsageDetail_20' ) end [2025-04-04 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:36:25] Production.INFO: ==14629== Releasing lock... [2025-04-04 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:36:25] Production.INFO: 51 MB #Memory Used# [2025-04-04 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:37:05 [end_date_ymd] => 2025-04-04 19:37:05 [RateCDR] => 1 ) [2025-04-04 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:37:05' and `end` < '2025-04-04 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:37:18] Production.INFO: count ==3077 [2025-04-04 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:37:05 - End Time 2025-04-04 19:37:05 [2025-04-04 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835022', 'tblTempUsageDetail_20' ) start [2025-04-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835022', 'tblTempUsageDetail_20' ) end [2025-04-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835022', 'tblTempVendorCDR_20' ) start [2025-04-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835022', 'tblTempVendorCDR_20' ) end [2025-04-04 19:37:19] Production.INFO: ProcessCDR(1,14835022,1,1,2) [2025-04-04 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835022', 'tblTempUsageDetail_20' ) start [2025-04-04 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835022', 'tblTempUsageDetail_20' ) end [2025-04-04 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:37:24] Production.INFO: ==14715== Releasing lock... [2025-04-04 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:37:24] Production.INFO: 51 MB #Memory Used# [2025-04-04 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:38:06 [end_date_ymd] => 2025-04-04 19:38:06 [RateCDR] => 1 ) [2025-04-04 19: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 16:38:06' and `end` < '2025-04-04 19: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-04 19:38:19] Production.INFO: count ==3055 [2025-04-04 19:38:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:38:06 - End Time 2025-04-04 19:38:06 [2025-04-04 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835027', 'tblTempUsageDetail_20' ) start [2025-04-04 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835027', 'tblTempUsageDetail_20' ) end [2025-04-04 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835027', 'tblTempVendorCDR_20' ) start [2025-04-04 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835027', 'tblTempVendorCDR_20' ) end [2025-04-04 19:38:20] Production.INFO: ProcessCDR(1,14835027,1,1,2) [2025-04-04 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835027', 'tblTempUsageDetail_20' ) start [2025-04-04 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835027', 'tblTempUsageDetail_20' ) end [2025-04-04 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:38:23] Production.INFO: ==14806== Releasing lock... [2025-04-04 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:38:23] Production.INFO: 51 MB #Memory Used# [2025-04-04 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:39:05 [end_date_ymd] => 2025-04-04 19:39:05 [RateCDR] => 1 ) [2025-04-04 19: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 16:39:05' and `end` < '2025-04-04 19: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-04 19:39:18] Production.INFO: count ==3047 [2025-04-04 19:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:39:05 - End Time 2025-04-04 19:39:05 [2025-04-04 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835032', 'tblTempUsageDetail_20' ) start [2025-04-04 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835032', 'tblTempUsageDetail_20' ) end [2025-04-04 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835032', 'tblTempVendorCDR_20' ) start [2025-04-04 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835032', 'tblTempVendorCDR_20' ) end [2025-04-04 19:39:19] Production.INFO: ProcessCDR(1,14835032,1,1,2) [2025-04-04 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835032', 'tblTempUsageDetail_20' ) start [2025-04-04 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835032', 'tblTempUsageDetail_20' ) end [2025-04-04 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:39:23] Production.INFO: ==14891== Releasing lock... [2025-04-04 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:39:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-04 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:40:06 [end_date_ymd] => 2025-04-04 19:40:06 [RateCDR] => 1 ) [2025-04-04 19: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 16:40:06' and `end` < '2025-04-04 19: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-04 19:40:19] Production.INFO: count ==3036 [2025-04-04 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:40:06 - End Time 2025-04-04 19:40:06 [2025-04-04 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835038', 'tblTempUsageDetail_20' ) start [2025-04-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835038', 'tblTempUsageDetail_20' ) end [2025-04-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835038', 'tblTempVendorCDR_20' ) start [2025-04-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835038', 'tblTempVendorCDR_20' ) end [2025-04-04 19:40:20] Production.INFO: ProcessCDR(1,14835038,1,1,2) [2025-04-04 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835038', 'tblTempUsageDetail_20' ) start [2025-04-04 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835038', 'tblTempUsageDetail_20' ) end [2025-04-04 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:40:25] Production.INFO: ==14982== Releasing lock... [2025-04-04 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:40:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-04 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:41:05 [end_date_ymd] => 2025-04-04 19:41:05 [RateCDR] => 1 ) [2025-04-04 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:41:05' and `end` < '2025-04-04 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:41:18] Production.INFO: count ==2979 [2025-04-04 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:41:05 - End Time 2025-04-04 19:41:05 [2025-04-04 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835043', 'tblTempUsageDetail_20' ) start [2025-04-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835043', 'tblTempUsageDetail_20' ) end [2025-04-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835043', 'tblTempVendorCDR_20' ) start [2025-04-04 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835043', 'tblTempVendorCDR_20' ) end [2025-04-04 19:41:19] Production.INFO: ProcessCDR(1,14835043,1,1,2) [2025-04-04 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835043', 'tblTempUsageDetail_20' ) start [2025-04-04 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835043', 'tblTempUsageDetail_20' ) end [2025-04-04 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:41:23] Production.INFO: ==15080== Releasing lock... [2025-04-04 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:41:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-04 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:42:06 [end_date_ymd] => 2025-04-04 19:42:06 [RateCDR] => 1 ) [2025-04-04 19: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 16:42:06' and `end` < '2025-04-04 19: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-04 19:42:19] Production.INFO: count ==2971 [2025-04-04 19:42:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:42:06 - End Time 2025-04-04 19:42:06 [2025-04-04 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835048', 'tblTempUsageDetail_20' ) start [2025-04-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835048', 'tblTempUsageDetail_20' ) end [2025-04-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835048', 'tblTempVendorCDR_20' ) start [2025-04-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835048', 'tblTempVendorCDR_20' ) end [2025-04-04 19:42:20] Production.INFO: ProcessCDR(1,14835048,1,1,2) [2025-04-04 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835048', 'tblTempUsageDetail_20' ) start [2025-04-04 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835048', 'tblTempUsageDetail_20' ) end [2025-04-04 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:42:25] Production.INFO: ==15164== Releasing lock... [2025-04-04 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:42:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-04 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:43:05 [end_date_ymd] => 2025-04-04 19:43:05 [RateCDR] => 1 ) [2025-04-04 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:43:05' and `end` < '2025-04-04 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:43:19] Production.INFO: count ==2962 [2025-04-04 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:43:05 - End Time 2025-04-04 19:43:05 [2025-04-04 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835053', 'tblTempUsageDetail_20' ) start [2025-04-04 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835053', 'tblTempUsageDetail_20' ) end [2025-04-04 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835053', 'tblTempVendorCDR_20' ) start [2025-04-04 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835053', 'tblTempVendorCDR_20' ) end [2025-04-04 19:43:19] Production.INFO: ProcessCDR(1,14835053,1,1,2) [2025-04-04 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835053', 'tblTempUsageDetail_20' ) start [2025-04-04 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835053', 'tblTempUsageDetail_20' ) end [2025-04-04 19:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:43:25] Production.INFO: ==15252== Releasing lock... [2025-04-04 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:43:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-04 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:44:05 [end_date_ymd] => 2025-04-04 19:44:05 [RateCDR] => 1 ) [2025-04-04 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:44:05' and `end` < '2025-04-04 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:44:19] Production.INFO: count ==2948 [2025-04-04 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:44:05 - End Time 2025-04-04 19:44:05 [2025-04-04 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835058', 'tblTempUsageDetail_20' ) start [2025-04-04 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835058', 'tblTempUsageDetail_20' ) end [2025-04-04 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835058', 'tblTempVendorCDR_20' ) start [2025-04-04 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835058', 'tblTempVendorCDR_20' ) end [2025-04-04 19:44:20] Production.INFO: ProcessCDR(1,14835058,1,1,2) [2025-04-04 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835058', 'tblTempUsageDetail_20' ) start [2025-04-04 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835058', 'tblTempUsageDetail_20' ) end [2025-04-04 19:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:44:25] Production.INFO: ==15327== Releasing lock... [2025-04-04 19:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:44:25] Production.INFO: 50 MB #Memory Used# [2025-04-04 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:45:05 [end_date_ymd] => 2025-04-04 19:45:05 [RateCDR] => 1 ) [2025-04-04 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:45:05' and `end` < '2025-04-04 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:45:18] Production.INFO: count ==2935 [2025-04-04 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:45:05 - End Time 2025-04-04 19:45:05 [2025-04-04 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835063', 'tblTempUsageDetail_20' ) start [2025-04-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835063', 'tblTempUsageDetail_20' ) end [2025-04-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835063', 'tblTempVendorCDR_20' ) start [2025-04-04 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835063', 'tblTempVendorCDR_20' ) end [2025-04-04 19:45:19] Production.INFO: ProcessCDR(1,14835063,1,1,2) [2025-04-04 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835063', 'tblTempUsageDetail_20' ) start [2025-04-04 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835063', 'tblTempUsageDetail_20' ) end [2025-04-04 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:45:25] Production.INFO: ==15414== Releasing lock... [2025-04-04 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:45:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-04 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:46:05 [end_date_ymd] => 2025-04-04 19:46:05 [RateCDR] => 1 ) [2025-04-04 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:46:05' and `end` < '2025-04-04 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:46:18] Production.INFO: count ==2929 [2025-04-04 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:46:05 - End Time 2025-04-04 19:46:05 [2025-04-04 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835068', 'tblTempUsageDetail_20' ) start [2025-04-04 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835068', 'tblTempUsageDetail_20' ) end [2025-04-04 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835068', 'tblTempVendorCDR_20' ) start [2025-04-04 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835068', 'tblTempVendorCDR_20' ) end [2025-04-04 19:46:19] Production.INFO: ProcessCDR(1,14835068,1,1,2) [2025-04-04 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835068', 'tblTempUsageDetail_20' ) start [2025-04-04 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835068', 'tblTempUsageDetail_20' ) end [2025-04-04 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:46:23] Production.INFO: ==15498== Releasing lock... [2025-04-04 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:46:23] Production.INFO: 50 MB #Memory Used# [2025-04-04 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:47:05 [end_date_ymd] => 2025-04-04 19:47:05 [RateCDR] => 1 ) [2025-04-04 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:47:05' and `end` < '2025-04-04 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:47:19] Production.INFO: count ==2913 [2025-04-04 19:47:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:47:05 - End Time 2025-04-04 19:47:05 [2025-04-04 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835073', 'tblTempUsageDetail_20' ) start [2025-04-04 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835073', 'tblTempUsageDetail_20' ) end [2025-04-04 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835073', 'tblTempVendorCDR_20' ) start [2025-04-04 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835073', 'tblTempVendorCDR_20' ) end [2025-04-04 19:47:20] Production.INFO: ProcessCDR(1,14835073,1,1,2) [2025-04-04 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835073', 'tblTempUsageDetail_20' ) start [2025-04-04 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835073', 'tblTempUsageDetail_20' ) end [2025-04-04 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:47:25] Production.INFO: ==15576== Releasing lock... [2025-04-04 19:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:47:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-04 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:48:05 [end_date_ymd] => 2025-04-04 19:48:05 [RateCDR] => 1 ) [2025-04-04 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:48:05' and `end` < '2025-04-04 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:48:19] Production.INFO: count ==2910 [2025-04-04 19:48:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:48:05 - End Time 2025-04-04 19:48:05 [2025-04-04 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835078', 'tblTempUsageDetail_20' ) start [2025-04-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835078', 'tblTempUsageDetail_20' ) end [2025-04-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835078', 'tblTempVendorCDR_20' ) start [2025-04-04 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835078', 'tblTempVendorCDR_20' ) end [2025-04-04 19:48:20] Production.INFO: ProcessCDR(1,14835078,1,1,2) [2025-04-04 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835078', 'tblTempUsageDetail_20' ) start [2025-04-04 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835078', 'tblTempUsageDetail_20' ) end [2025-04-04 19:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:48:25] Production.INFO: ==15659== Releasing lock... [2025-04-04 19:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:48:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-04 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:49:05 [end_date_ymd] => 2025-04-04 19:49:05 [RateCDR] => 1 ) [2025-04-04 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:49:05' and `end` < '2025-04-04 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:49:18] Production.INFO: count ==2885 [2025-04-04 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:49:05 - End Time 2025-04-04 19:49:05 [2025-04-04 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835083', 'tblTempUsageDetail_20' ) start [2025-04-04 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835083', 'tblTempUsageDetail_20' ) end [2025-04-04 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835083', 'tblTempVendorCDR_20' ) start [2025-04-04 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835083', 'tblTempVendorCDR_20' ) end [2025-04-04 19:49:19] Production.INFO: ProcessCDR(1,14835083,1,1,2) [2025-04-04 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835083', 'tblTempUsageDetail_20' ) start [2025-04-04 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835083', 'tblTempUsageDetail_20' ) end [2025-04-04 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:49:24] Production.INFO: ==15741== Releasing lock... [2025-04-04 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:49:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-04 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:50:06 [end_date_ymd] => 2025-04-04 19:50:06 [RateCDR] => 1 ) [2025-04-04 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:50:06' and `end` < '2025-04-04 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:50:19] Production.INFO: count ==2866 [2025-04-04 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:50:06 - End Time 2025-04-04 19:50:06 [2025-04-04 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835089', 'tblTempUsageDetail_20' ) start [2025-04-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835089', 'tblTempUsageDetail_20' ) end [2025-04-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835089', 'tblTempVendorCDR_20' ) start [2025-04-04 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835089', 'tblTempVendorCDR_20' ) end [2025-04-04 19:50:20] Production.INFO: ProcessCDR(1,14835089,1,1,2) [2025-04-04 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835089', 'tblTempUsageDetail_20' ) start [2025-04-04 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835089', 'tblTempUsageDetail_20' ) end [2025-04-04 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:50:25] Production.INFO: ==15828== Releasing lock... [2025-04-04 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:50:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-04 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:51:04 [end_date_ymd] => 2025-04-04 19:51:04 [RateCDR] => 1 ) [2025-04-04 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:51:04' and `end` < '2025-04-04 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:51:18] Production.INFO: count ==2804 [2025-04-04 19:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 16:51:04 - End Time 2025-04-04 19:51:04 [2025-04-04 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835094', 'tblTempUsageDetail_20' ) start [2025-04-04 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835094', 'tblTempUsageDetail_20' ) end [2025-04-04 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835094', 'tblTempVendorCDR_20' ) start [2025-04-04 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835094', 'tblTempVendorCDR_20' ) end [2025-04-04 19:51:19] Production.INFO: ProcessCDR(1,14835094,1,1,2) [2025-04-04 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835094', 'tblTempUsageDetail_20' ) start [2025-04-04 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835094', 'tblTempUsageDetail_20' ) end [2025-04-04 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:51:24] Production.INFO: ==15945== Releasing lock... [2025-04-04 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:51:24] Production.INFO: 49 MB #Memory Used# [2025-04-04 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:52:06 [end_date_ymd] => 2025-04-04 19:52:06 [RateCDR] => 1 ) [2025-04-04 19: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-04 16:52:06' and `end` < '2025-04-04 19: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-04 19:52:19] Production.INFO: count ==2783 [2025-04-04 19:52:20] Production.ERROR: pbx CDR StartTime 2025-04-04 16:52:06 - End Time 2025-04-04 19:52:06 [2025-04-04 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835099', 'tblTempUsageDetail_20' ) start [2025-04-04 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835099', 'tblTempUsageDetail_20' ) end [2025-04-04 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835099', 'tblTempVendorCDR_20' ) start [2025-04-04 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835099', 'tblTempVendorCDR_20' ) end [2025-04-04 19:52:20] Production.INFO: ProcessCDR(1,14835099,1,1,2) [2025-04-04 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835099', 'tblTempUsageDetail_20' ) start [2025-04-04 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835099', 'tblTempUsageDetail_20' ) end [2025-04-04 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:52:23] Production.INFO: ==16028== Releasing lock... [2025-04-04 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:52:23] Production.INFO: 49 MB #Memory Used# [2025-04-04 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:53:05 [end_date_ymd] => 2025-04-04 19:53:05 [RateCDR] => 1 ) [2025-04-04 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:53:05' and `end` < '2025-04-04 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:53:18] Production.INFO: count ==2772 [2025-04-04 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:53:05 - End Time 2025-04-04 19:53:05 [2025-04-04 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835104', 'tblTempUsageDetail_20' ) start [2025-04-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835104', 'tblTempUsageDetail_20' ) end [2025-04-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835104', 'tblTempVendorCDR_20' ) start [2025-04-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835104', 'tblTempVendorCDR_20' ) end [2025-04-04 19:53:19] Production.INFO: ProcessCDR(1,14835104,1,1,2) [2025-04-04 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835104', 'tblTempUsageDetail_20' ) start [2025-04-04 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835104', 'tblTempUsageDetail_20' ) end [2025-04-04 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:53:24] Production.INFO: ==16109== Releasing lock... [2025-04-04 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:53:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-04 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:54:05 [end_date_ymd] => 2025-04-04 19:54:05 [RateCDR] => 1 ) [2025-04-04 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:54:05' and `end` < '2025-04-04 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:54:18] Production.INFO: count ==2758 [2025-04-04 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:54:05 - End Time 2025-04-04 19:54:05 [2025-04-04 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835109', 'tblTempUsageDetail_20' ) start [2025-04-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835109', 'tblTempUsageDetail_20' ) end [2025-04-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835109', 'tblTempVendorCDR_20' ) start [2025-04-04 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835109', 'tblTempVendorCDR_20' ) end [2025-04-04 19:54:19] Production.INFO: ProcessCDR(1,14835109,1,1,2) [2025-04-04 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835109', 'tblTempUsageDetail_20' ) start [2025-04-04 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835109', 'tblTempUsageDetail_20' ) end [2025-04-04 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:54:24] Production.INFO: ==16192== Releasing lock... [2025-04-04 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:54:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-04 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:55:05 [end_date_ymd] => 2025-04-04 19:55:05 [RateCDR] => 1 ) [2025-04-04 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:55:05' and `end` < '2025-04-04 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:55:18] Production.INFO: count ==2724 [2025-04-04 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:55:05 - End Time 2025-04-04 19:55:05 [2025-04-04 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835114', 'tblTempUsageDetail_20' ) start [2025-04-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835114', 'tblTempUsageDetail_20' ) end [2025-04-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835114', 'tblTempVendorCDR_20' ) start [2025-04-04 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835114', 'tblTempVendorCDR_20' ) end [2025-04-04 19:55:19] Production.INFO: ProcessCDR(1,14835114,1,1,2) [2025-04-04 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835114', 'tblTempUsageDetail_20' ) start [2025-04-04 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835114', 'tblTempUsageDetail_20' ) end [2025-04-04 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:55:24] Production.INFO: ==16274== Releasing lock... [2025-04-04 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:55:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-04 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:56:05 [end_date_ymd] => 2025-04-04 19:56:05 [RateCDR] => 1 ) [2025-04-04 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:56:05' and `end` < '2025-04-04 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:56:19] Production.INFO: count ==2726 [2025-04-04 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:56:05 - End Time 2025-04-04 19:56:05 [2025-04-04 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835119', 'tblTempUsageDetail_20' ) start [2025-04-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835119', 'tblTempUsageDetail_20' ) end [2025-04-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835119', 'tblTempVendorCDR_20' ) start [2025-04-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835119', 'tblTempVendorCDR_20' ) end [2025-04-04 19:56:19] Production.INFO: ProcessCDR(1,14835119,1,1,2) [2025-04-04 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835119', 'tblTempUsageDetail_20' ) start [2025-04-04 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835119', 'tblTempUsageDetail_20' ) end [2025-04-04 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:56:24] Production.INFO: ==16357== Releasing lock... [2025-04-04 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:56:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-04 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:57:05 [end_date_ymd] => 2025-04-04 19:57:05 [RateCDR] => 1 ) [2025-04-04 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:57:05' and `end` < '2025-04-04 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:57:18] Production.INFO: count ==2701 [2025-04-04 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-04 16:57:05 - End Time 2025-04-04 19:57:05 [2025-04-04 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835124', 'tblTempUsageDetail_20' ) start [2025-04-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835124', 'tblTempUsageDetail_20' ) end [2025-04-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835124', 'tblTempVendorCDR_20' ) start [2025-04-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835124', 'tblTempVendorCDR_20' ) end [2025-04-04 19:57:19] Production.INFO: ProcessCDR(1,14835124,1,1,2) [2025-04-04 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835124', 'tblTempUsageDetail_20' ) start [2025-04-04 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835124', 'tblTempUsageDetail_20' ) end [2025-04-04 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:57:22] Production.INFO: ==16432== Releasing lock... [2025-04-04 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:57:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-04 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:58:05 [end_date_ymd] => 2025-04-04 19:58:05 [RateCDR] => 1 ) [2025-04-04 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:58:05' and `end` < '2025-04-04 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:58:18] Production.INFO: count ==2684 [2025-04-04 19:58:18] Production.ERROR: pbx CDR StartTime 2025-04-04 16:58:05 - End Time 2025-04-04 19:58:05 [2025-04-04 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835129', 'tblTempUsageDetail_20' ) start [2025-04-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835129', 'tblTempUsageDetail_20' ) end [2025-04-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835129', 'tblTempVendorCDR_20' ) start [2025-04-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835129', 'tblTempVendorCDR_20' ) end [2025-04-04 19:58:19] Production.INFO: ProcessCDR(1,14835129,1,1,2) [2025-04-04 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835129', 'tblTempUsageDetail_20' ) start [2025-04-04 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835129', 'tblTempUsageDetail_20' ) end [2025-04-04 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:58:23] Production.INFO: ==16516== Releasing lock... [2025-04-04 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:58:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-04 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 16:59:05 [end_date_ymd] => 2025-04-04 19:59:05 [RateCDR] => 1 ) [2025-04-04 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 16:59:05' and `end` < '2025-04-04 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 19:59:18] Production.INFO: count ==2667 [2025-04-04 19:59:18] Production.ERROR: pbx CDR StartTime 2025-04-04 16:59:05 - End Time 2025-04-04 19:59:05 [2025-04-04 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835134', 'tblTempUsageDetail_20' ) start [2025-04-04 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835134', 'tblTempUsageDetail_20' ) end [2025-04-04 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835134', 'tblTempVendorCDR_20' ) start [2025-04-04 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835134', 'tblTempVendorCDR_20' ) end [2025-04-04 19:59:19] Production.INFO: ProcessCDR(1,14835134,1,1,2) [2025-04-04 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835134', 'tblTempUsageDetail_20' ) start [2025-04-04 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835134', 'tblTempUsageDetail_20' ) end [2025-04-04 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 19:59:24] Production.INFO: ==16598== Releasing lock... [2025-04-04 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 19:59:24] Production.INFO: 48 MB #Memory Used# [2025-04-04 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:00:05 [end_date_ymd] => 2025-04-04 20:00:05 [RateCDR] => 1 ) [2025-04-04 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:00:05' and `end` < '2025-04-04 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:00:18] Production.INFO: count ==2660 [2025-04-04 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:00:05 - End Time 2025-04-04 20:00:05 [2025-04-04 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835140', 'tblTempUsageDetail_20' ) start [2025-04-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835140', 'tblTempUsageDetail_20' ) end [2025-04-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835140', 'tblTempVendorCDR_20' ) start [2025-04-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835140', 'tblTempVendorCDR_20' ) end [2025-04-04 20:00:19] Production.INFO: ProcessCDR(1,14835140,1,1,2) [2025-04-04 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835140', 'tblTempUsageDetail_20' ) start [2025-04-04 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835140', 'tblTempUsageDetail_20' ) end [2025-04-04 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:00:23] Production.INFO: ==16682== Releasing lock... [2025-04-04 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:00:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-04 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:01:05 [end_date_ymd] => 2025-04-04 20:01:05 [RateCDR] => 1 ) [2025-04-04 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:01:05' and `end` < '2025-04-04 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:01:18] Production.INFO: count ==2630 [2025-04-04 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:01:05 - End Time 2025-04-04 20:01:05 [2025-04-04 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835145', 'tblTempUsageDetail_20' ) start [2025-04-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835145', 'tblTempUsageDetail_20' ) end [2025-04-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835145', 'tblTempVendorCDR_20' ) start [2025-04-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835145', 'tblTempVendorCDR_20' ) end [2025-04-04 20:01:19] Production.INFO: ProcessCDR(1,14835145,1,1,2) [2025-04-04 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835145', 'tblTempUsageDetail_20' ) start [2025-04-04 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835145', 'tblTempUsageDetail_20' ) end [2025-04-04 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:01:23] Production.INFO: ==16821== Releasing lock... [2025-04-04 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:01:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-04 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:02:05 [end_date_ymd] => 2025-04-04 20:02:05 [RateCDR] => 1 ) [2025-04-04 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:02:05' and `end` < '2025-04-04 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:02:18] Production.INFO: count ==2628 [2025-04-04 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:02:05 - End Time 2025-04-04 20:02:05 [2025-04-04 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835150', 'tblTempUsageDetail_20' ) start [2025-04-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835150', 'tblTempUsageDetail_20' ) end [2025-04-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835150', 'tblTempVendorCDR_20' ) start [2025-04-04 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835150', 'tblTempVendorCDR_20' ) end [2025-04-04 20:02:19] Production.INFO: ProcessCDR(1,14835150,1,1,2) [2025-04-04 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835150', 'tblTempUsageDetail_20' ) start [2025-04-04 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835150', 'tblTempUsageDetail_20' ) end [2025-04-04 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:02:23] Production.INFO: ==16898== Releasing lock... [2025-04-04 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:02:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-04 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:03:05 [end_date_ymd] => 2025-04-04 20:03:05 [RateCDR] => 1 ) [2025-04-04 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:03:05' and `end` < '2025-04-04 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:03:18] Production.INFO: count ==2636 [2025-04-04 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:03:05 - End Time 2025-04-04 20:03:05 [2025-04-04 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835155', 'tblTempUsageDetail_20' ) start [2025-04-04 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835155', 'tblTempUsageDetail_20' ) end [2025-04-04 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835155', 'tblTempVendorCDR_20' ) start [2025-04-04 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835155', 'tblTempVendorCDR_20' ) end [2025-04-04 20:03:19] Production.INFO: ProcessCDR(1,14835155,1,1,2) [2025-04-04 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835155', 'tblTempUsageDetail_20' ) start [2025-04-04 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835155', 'tblTempUsageDetail_20' ) end [2025-04-04 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:03:22] Production.INFO: ==16978== Releasing lock... [2025-04-04 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:03:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-04 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:04:05 [end_date_ymd] => 2025-04-04 20:04:05 [RateCDR] => 1 ) [2025-04-04 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:04:05' and `end` < '2025-04-04 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:04:18] Production.INFO: count ==2606 [2025-04-04 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:04:05 - End Time 2025-04-04 20:04:05 [2025-04-04 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835160', 'tblTempUsageDetail_20' ) start [2025-04-04 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835160', 'tblTempUsageDetail_20' ) end [2025-04-04 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835160', 'tblTempVendorCDR_20' ) start [2025-04-04 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835160', 'tblTempVendorCDR_20' ) end [2025-04-04 20:04:19] Production.INFO: ProcessCDR(1,14835160,1,1,2) [2025-04-04 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835160', 'tblTempUsageDetail_20' ) start [2025-04-04 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835160', 'tblTempUsageDetail_20' ) end [2025-04-04 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:04:24] Production.INFO: ==17059== Releasing lock... [2025-04-04 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:04:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-04 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:05:05 [end_date_ymd] => 2025-04-04 20:05:05 [RateCDR] => 1 ) [2025-04-04 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:05:05' and `end` < '2025-04-04 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:05:18] Production.INFO: count ==2619 [2025-04-04 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:05:05 - End Time 2025-04-04 20:05:05 [2025-04-04 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835165', 'tblTempUsageDetail_20' ) start [2025-04-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835165', 'tblTempUsageDetail_20' ) end [2025-04-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835165', 'tblTempVendorCDR_20' ) start [2025-04-04 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835165', 'tblTempVendorCDR_20' ) end [2025-04-04 20:05:19] Production.INFO: ProcessCDR(1,14835165,1,1,2) [2025-04-04 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835165', 'tblTempUsageDetail_20' ) start [2025-04-04 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835165', 'tblTempUsageDetail_20' ) end [2025-04-04 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:05:24] Production.INFO: ==17139== Releasing lock... [2025-04-04 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:05:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-04 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:06:06 [end_date_ymd] => 2025-04-04 20:06:06 [RateCDR] => 1 ) [2025-04-04 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:06:06' and `end` < '2025-04-04 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:06:19] Production.INFO: count ==2572 [2025-04-04 20:06:20] Production.ERROR: pbx CDR StartTime 2025-04-04 17:06:06 - End Time 2025-04-04 20:06:06 [2025-04-04 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835170', 'tblTempUsageDetail_20' ) start [2025-04-04 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835170', 'tblTempUsageDetail_20' ) end [2025-04-04 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835170', 'tblTempVendorCDR_20' ) start [2025-04-04 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835170', 'tblTempVendorCDR_20' ) end [2025-04-04 20:06:20] Production.INFO: ProcessCDR(1,14835170,1,1,2) [2025-04-04 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835170', 'tblTempUsageDetail_20' ) start [2025-04-04 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835170', 'tblTempUsageDetail_20' ) end [2025-04-04 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:06:23] Production.INFO: ==17256== Releasing lock... [2025-04-04 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:06:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:07:05 [end_date_ymd] => 2025-04-04 20:07:05 [RateCDR] => 1 ) [2025-04-04 20: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-04 17:07:05' and `end` < '2025-04-04 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:07:18] Production.INFO: count ==2571 [2025-04-04 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:07:05 - End Time 2025-04-04 20:07:05 [2025-04-04 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835175', 'tblTempUsageDetail_20' ) start [2025-04-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835175', 'tblTempUsageDetail_20' ) end [2025-04-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835175', 'tblTempVendorCDR_20' ) start [2025-04-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835175', 'tblTempVendorCDR_20' ) end [2025-04-04 20:07:19] Production.INFO: ProcessCDR(1,14835175,1,1,2) [2025-04-04 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835175', 'tblTempUsageDetail_20' ) start [2025-04-04 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835175', 'tblTempUsageDetail_20' ) end [2025-04-04 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:07:24] Production.INFO: ==17336== Releasing lock... [2025-04-04 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:07:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:08:06 [end_date_ymd] => 2025-04-04 20:08:06 [RateCDR] => 1 ) [2025-04-04 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:08:06' and `end` < '2025-04-04 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:08:19] Production.INFO: count ==2565 [2025-04-04 20:08:20] Production.ERROR: pbx CDR StartTime 2025-04-04 17:08:06 - End Time 2025-04-04 20:08:06 [2025-04-04 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835180', 'tblTempUsageDetail_20' ) start [2025-04-04 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835180', 'tblTempUsageDetail_20' ) end [2025-04-04 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835180', 'tblTempVendorCDR_20' ) start [2025-04-04 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835180', 'tblTempVendorCDR_20' ) end [2025-04-04 20:08:20] Production.INFO: ProcessCDR(1,14835180,1,1,2) [2025-04-04 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835180', 'tblTempUsageDetail_20' ) start [2025-04-04 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835180', 'tblTempUsageDetail_20' ) end [2025-04-04 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:08:25] Production.INFO: ==17422== Releasing lock... [2025-04-04 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:08:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:09:05 [end_date_ymd] => 2025-04-04 20:09:05 [RateCDR] => 1 ) [2025-04-04 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:09:05' and `end` < '2025-04-04 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:09:18] Production.INFO: count ==2567 [2025-04-04 20:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 17:09:05 - End Time 2025-04-04 20:09:05 [2025-04-04 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835185', 'tblTempUsageDetail_20' ) start [2025-04-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835185', 'tblTempUsageDetail_20' ) end [2025-04-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835185', 'tblTempVendorCDR_20' ) start [2025-04-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835185', 'tblTempVendorCDR_20' ) end [2025-04-04 20:09:18] Production.INFO: ProcessCDR(1,14835185,1,1,2) [2025-04-04 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835185', 'tblTempUsageDetail_20' ) start [2025-04-04 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835185', 'tblTempUsageDetail_20' ) end [2025-04-04 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:09:22] Production.INFO: ==17496== Releasing lock... [2025-04-04 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:09:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:10:07 [end_date_ymd] => 2025-04-04 20:10:07 [RateCDR] => 1 ) [2025-04-04 20:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:10:07' and `end` < '2025-04-04 20:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:10:20] Production.INFO: count ==2569 [2025-04-04 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-04 17:10:07 - End Time 2025-04-04 20:10:07 [2025-04-04 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835191', 'tblTempUsageDetail_20' ) start [2025-04-04 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835191', 'tblTempUsageDetail_20' ) end [2025-04-04 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835191', 'tblTempVendorCDR_20' ) start [2025-04-04 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835191', 'tblTempVendorCDR_20' ) end [2025-04-04 20:10:21] Production.INFO: ProcessCDR(1,14835191,1,1,2) [2025-04-04 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835191', 'tblTempUsageDetail_20' ) start [2025-04-04 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835191', 'tblTempUsageDetail_20' ) end [2025-04-04 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:10:24] Production.INFO: ==17597== Releasing lock... [2025-04-04 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:10:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:11:05 [end_date_ymd] => 2025-04-04 20:11:05 [RateCDR] => 1 ) [2025-04-04 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:11:05' and `end` < '2025-04-04 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:11:19] Production.INFO: count ==2545 [2025-04-04 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:11:05 - End Time 2025-04-04 20:11:05 [2025-04-04 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835196', 'tblTempUsageDetail_20' ) start [2025-04-04 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835196', 'tblTempUsageDetail_20' ) end [2025-04-04 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835196', 'tblTempVendorCDR_20' ) start [2025-04-04 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835196', 'tblTempVendorCDR_20' ) end [2025-04-04 20:11:19] Production.INFO: ProcessCDR(1,14835196,1,1,2) [2025-04-04 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835196', 'tblTempUsageDetail_20' ) start [2025-04-04 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835196', 'tblTempUsageDetail_20' ) end [2025-04-04 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:11:23] Production.INFO: ==17700== Releasing lock... [2025-04-04 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:11:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:12:06 [end_date_ymd] => 2025-04-04 20:12:06 [RateCDR] => 1 ) [2025-04-04 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:12:06' and `end` < '2025-04-04 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:12:19] Production.INFO: count ==2546 [2025-04-04 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:12:06 - End Time 2025-04-04 20:12:06 [2025-04-04 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835201', 'tblTempUsageDetail_20' ) start [2025-04-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835201', 'tblTempUsageDetail_20' ) end [2025-04-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835201', 'tblTempVendorCDR_20' ) start [2025-04-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835201', 'tblTempVendorCDR_20' ) end [2025-04-04 20:12:19] Production.INFO: ProcessCDR(1,14835201,1,1,2) [2025-04-04 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835201', 'tblTempUsageDetail_20' ) start [2025-04-04 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835201', 'tblTempUsageDetail_20' ) end [2025-04-04 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:12:24] Production.INFO: ==17806== Releasing lock... [2025-04-04 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:12:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:13:05 [end_date_ymd] => 2025-04-04 20:13:05 [RateCDR] => 1 ) [2025-04-04 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:13:05' and `end` < '2025-04-04 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:13:18] Production.INFO: count ==2547 [2025-04-04 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:13:05 - End Time 2025-04-04 20:13:05 [2025-04-04 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835206', 'tblTempUsageDetail_20' ) start [2025-04-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835206', 'tblTempUsageDetail_20' ) end [2025-04-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835206', 'tblTempVendorCDR_20' ) start [2025-04-04 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835206', 'tblTempVendorCDR_20' ) end [2025-04-04 20:13:19] Production.INFO: ProcessCDR(1,14835206,1,1,2) [2025-04-04 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835206', 'tblTempUsageDetail_20' ) start [2025-04-04 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835206', 'tblTempUsageDetail_20' ) end [2025-04-04 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:13:22] Production.INFO: ==17909== Releasing lock... [2025-04-04 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:13:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-04 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:14:06 [end_date_ymd] => 2025-04-04 20:14:06 [RateCDR] => 1 ) [2025-04-04 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:14:06' and `end` < '2025-04-04 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:14:19] Production.INFO: count ==2538 [2025-04-04 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:14:06 - End Time 2025-04-04 20:14:06 [2025-04-04 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835211', 'tblTempUsageDetail_20' ) start [2025-04-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835211', 'tblTempUsageDetail_20' ) end [2025-04-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835211', 'tblTempVendorCDR_20' ) start [2025-04-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835211', 'tblTempVendorCDR_20' ) end [2025-04-04 20:14:19] Production.INFO: ProcessCDR(1,14835211,1,1,2) [2025-04-04 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835211', 'tblTempUsageDetail_20' ) start [2025-04-04 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835211', 'tblTempUsageDetail_20' ) end [2025-04-04 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:14:24] Production.INFO: ==17993== Releasing lock... [2025-04-04 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:14:24] Production.INFO: 47 MB #Memory Used# [2025-04-04 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:15:05 [end_date_ymd] => 2025-04-04 20:15:05 [RateCDR] => 1 ) [2025-04-04 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:15:05' and `end` < '2025-04-04 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:15:18] Production.INFO: count ==2529 [2025-04-04 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:15:05 - End Time 2025-04-04 20:15:05 [2025-04-04 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835216', 'tblTempUsageDetail_20' ) start [2025-04-04 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835216', 'tblTempUsageDetail_20' ) end [2025-04-04 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835216', 'tblTempVendorCDR_20' ) start [2025-04-04 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835216', 'tblTempVendorCDR_20' ) end [2025-04-04 20:15:19] Production.INFO: ProcessCDR(1,14835216,1,1,2) [2025-04-04 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835216', 'tblTempUsageDetail_20' ) start [2025-04-04 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835216', 'tblTempUsageDetail_20' ) end [2025-04-04 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:15:23] Production.INFO: ==18069== Releasing lock... [2025-04-04 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:15:23] Production.INFO: 47 MB #Memory Used# [2025-04-04 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:16:05 [end_date_ymd] => 2025-04-04 20:16:05 [RateCDR] => 1 ) [2025-04-04 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:16:05' and `end` < '2025-04-04 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:16:18] Production.INFO: count ==2502 [2025-04-04 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:16:05 - End Time 2025-04-04 20:16:05 [2025-04-04 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835221', 'tblTempUsageDetail_20' ) start [2025-04-04 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835221', 'tblTempUsageDetail_20' ) end [2025-04-04 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835221', 'tblTempVendorCDR_20' ) start [2025-04-04 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835221', 'tblTempVendorCDR_20' ) end [2025-04-04 20:16:19] Production.INFO: ProcessCDR(1,14835221,1,1,2) [2025-04-04 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835221', 'tblTempUsageDetail_20' ) start [2025-04-04 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835221', 'tblTempUsageDetail_20' ) end [2025-04-04 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:16:24] Production.INFO: ==18146== Releasing lock... [2025-04-04 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:16:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-04 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:17:05 [end_date_ymd] => 2025-04-04 20:17:05 [RateCDR] => 1 ) [2025-04-04 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:17:05' and `end` < '2025-04-04 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:17:18] Production.INFO: count ==2506 [2025-04-04 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:17:05 - End Time 2025-04-04 20:17:05 [2025-04-04 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835226', 'tblTempUsageDetail_20' ) start [2025-04-04 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835226', 'tblTempUsageDetail_20' ) end [2025-04-04 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835226', 'tblTempVendorCDR_20' ) start [2025-04-04 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835226', 'tblTempVendorCDR_20' ) end [2025-04-04 20:17:19] Production.INFO: ProcessCDR(1,14835226,1,1,2) [2025-04-04 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835226', 'tblTempUsageDetail_20' ) start [2025-04-04 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835226', 'tblTempUsageDetail_20' ) end [2025-04-04 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:17:22] Production.INFO: ==18225== Releasing lock... [2025-04-04 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:17:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-04 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:18:05 [end_date_ymd] => 2025-04-04 20:18:05 [RateCDR] => 1 ) [2025-04-04 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:18:05' and `end` < '2025-04-04 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:18:18] Production.INFO: count ==2506 [2025-04-04 20:18:18] Production.ERROR: pbx CDR StartTime 2025-04-04 17:18:05 - End Time 2025-04-04 20:18:05 [2025-04-04 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835231', 'tblTempUsageDetail_20' ) start [2025-04-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835231', 'tblTempUsageDetail_20' ) end [2025-04-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835231', 'tblTempVendorCDR_20' ) start [2025-04-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835231', 'tblTempVendorCDR_20' ) end [2025-04-04 20:18:18] Production.INFO: ProcessCDR(1,14835231,1,1,2) [2025-04-04 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835231', 'tblTempUsageDetail_20' ) start [2025-04-04 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835231', 'tblTempUsageDetail_20' ) end [2025-04-04 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:18:22] Production.INFO: ==18300== Releasing lock... [2025-04-04 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:18:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-04 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:19:05 [end_date_ymd] => 2025-04-04 20:19:05 [RateCDR] => 1 ) [2025-04-04 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:19:05' and `end` < '2025-04-04 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:19:18] Production.INFO: count ==2504 [2025-04-04 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:19:05 - End Time 2025-04-04 20:19:05 [2025-04-04 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835236', 'tblTempUsageDetail_20' ) start [2025-04-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835236', 'tblTempUsageDetail_20' ) end [2025-04-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835236', 'tblTempVendorCDR_20' ) start [2025-04-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835236', 'tblTempVendorCDR_20' ) end [2025-04-04 20:19:19] Production.INFO: ProcessCDR(1,14835236,1,1,2) [2025-04-04 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835236', 'tblTempUsageDetail_20' ) start [2025-04-04 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835236', 'tblTempUsageDetail_20' ) end [2025-04-04 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:19:24] Production.INFO: ==18382== Releasing lock... [2025-04-04 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:19:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-04 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:20:06 [end_date_ymd] => 2025-04-04 20:20:06 [RateCDR] => 1 ) [2025-04-04 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:20:06' and `end` < '2025-04-04 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:20:19] Production.INFO: count ==2477 [2025-04-04 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-04 17:20:06 - End Time 2025-04-04 20:20:06 [2025-04-04 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835242', 'tblTempUsageDetail_20' ) start [2025-04-04 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835242', 'tblTempUsageDetail_20' ) end [2025-04-04 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835242', 'tblTempVendorCDR_20' ) start [2025-04-04 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835242', 'tblTempVendorCDR_20' ) end [2025-04-04 20:20:20] Production.INFO: ProcessCDR(1,14835242,1,1,2) [2025-04-04 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835242', 'tblTempUsageDetail_20' ) start [2025-04-04 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835242', 'tblTempUsageDetail_20' ) end [2025-04-04 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:20:25] Production.INFO: ==18467== Releasing lock... [2025-04-04 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:20:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-04 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:21:06 [end_date_ymd] => 2025-04-04 20:21:06 [RateCDR] => 1 ) [2025-04-04 20: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-04 17:21:06' and `end` < '2025-04-04 20: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-04 20:21:19] Production.INFO: count ==2388 [2025-04-04 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:21:06 - End Time 2025-04-04 20:21:06 [2025-04-04 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835247', 'tblTempUsageDetail_20' ) start [2025-04-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835247', 'tblTempUsageDetail_20' ) end [2025-04-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835247', 'tblTempVendorCDR_20' ) start [2025-04-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835247', 'tblTempVendorCDR_20' ) end [2025-04-04 20:21:19] Production.INFO: ProcessCDR(1,14835247,1,1,2) [2025-04-04 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835247', 'tblTempUsageDetail_20' ) start [2025-04-04 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835247', 'tblTempUsageDetail_20' ) end [2025-04-04 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:21:24] Production.INFO: ==18547== Releasing lock... [2025-04-04 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:21:24] Production.INFO: 46 MB #Memory Used# [2025-04-04 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:22:05 [end_date_ymd] => 2025-04-04 20:22:05 [RateCDR] => 1 ) [2025-04-04 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:22:05' and `end` < '2025-04-04 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:22:18] Production.INFO: count ==2389 [2025-04-04 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:22:05 - End Time 2025-04-04 20:22:05 [2025-04-04 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835252', 'tblTempUsageDetail_20' ) start [2025-04-04 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835252', 'tblTempUsageDetail_20' ) end [2025-04-04 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835252', 'tblTempVendorCDR_20' ) start [2025-04-04 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835252', 'tblTempVendorCDR_20' ) end [2025-04-04 20:22:19] Production.INFO: ProcessCDR(1,14835252,1,1,2) [2025-04-04 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835252', 'tblTempUsageDetail_20' ) start [2025-04-04 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835252', 'tblTempUsageDetail_20' ) end [2025-04-04 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:22:22] Production.INFO: ==18661== Releasing lock... [2025-04-04 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:22:22] Production.INFO: 46 MB #Memory Used# [2025-04-04 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:23:05 [end_date_ymd] => 2025-04-04 20:23:05 [RateCDR] => 1 ) [2025-04-04 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:23:05' and `end` < '2025-04-04 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:23:18] Production.INFO: count ==2371 [2025-04-04 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:23:05 - End Time 2025-04-04 20:23:05 [2025-04-04 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835257', 'tblTempUsageDetail_20' ) start [2025-04-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835257', 'tblTempUsageDetail_20' ) end [2025-04-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835257', 'tblTempVendorCDR_20' ) start [2025-04-04 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835257', 'tblTempVendorCDR_20' ) end [2025-04-04 20:23:19] Production.INFO: ProcessCDR(1,14835257,1,1,2) [2025-04-04 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835257', 'tblTempUsageDetail_20' ) start [2025-04-04 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835257', 'tblTempUsageDetail_20' ) end [2025-04-04 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:23:22] Production.INFO: ==18738== Releasing lock... [2025-04-04 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:23:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-04 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:24:05 [end_date_ymd] => 2025-04-04 20:24:05 [RateCDR] => 1 ) [2025-04-04 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:24:05' and `end` < '2025-04-04 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:24:18] Production.INFO: count ==2371 [2025-04-04 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:24:05 - End Time 2025-04-04 20:24:05 [2025-04-04 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835262', 'tblTempUsageDetail_20' ) start [2025-04-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835262', 'tblTempUsageDetail_20' ) end [2025-04-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835262', 'tblTempVendorCDR_20' ) start [2025-04-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835262', 'tblTempVendorCDR_20' ) end [2025-04-04 20:24:19] Production.INFO: ProcessCDR(1,14835262,1,1,2) [2025-04-04 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835262', 'tblTempUsageDetail_20' ) start [2025-04-04 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835262', 'tblTempUsageDetail_20' ) end [2025-04-04 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:24:22] Production.INFO: ==18815== Releasing lock... [2025-04-04 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:24:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-04 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:25:06 [end_date_ymd] => 2025-04-04 20:25:06 [RateCDR] => 1 ) [2025-04-04 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:25:06' and `end` < '2025-04-04 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:25:19] Production.INFO: count ==2386 [2025-04-04 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:25:06 - End Time 2025-04-04 20:25:06 [2025-04-04 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835267', 'tblTempUsageDetail_20' ) start [2025-04-04 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835267', 'tblTempUsageDetail_20' ) end [2025-04-04 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835267', 'tblTempVendorCDR_20' ) start [2025-04-04 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835267', 'tblTempVendorCDR_20' ) end [2025-04-04 20:25:20] Production.INFO: ProcessCDR(1,14835267,1,1,2) [2025-04-04 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835267', 'tblTempUsageDetail_20' ) start [2025-04-04 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835267', 'tblTempUsageDetail_20' ) end [2025-04-04 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:25:23] Production.INFO: ==18896== Releasing lock... [2025-04-04 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:25:23] Production.INFO: 46 MB #Memory Used# [2025-04-04 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:26:05 [end_date_ymd] => 2025-04-04 20:26:05 [RateCDR] => 1 ) [2025-04-04 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:26:05' and `end` < '2025-04-04 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:26:18] Production.INFO: count ==2391 [2025-04-04 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:26:05 - End Time 2025-04-04 20:26:05 [2025-04-04 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835272', 'tblTempUsageDetail_20' ) start [2025-04-04 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835272', 'tblTempUsageDetail_20' ) end [2025-04-04 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835272', 'tblTempVendorCDR_20' ) start [2025-04-04 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835272', 'tblTempVendorCDR_20' ) end [2025-04-04 20:26:19] Production.INFO: ProcessCDR(1,14835272,1,1,2) [2025-04-04 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835272', 'tblTempUsageDetail_20' ) start [2025-04-04 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835272', 'tblTempUsageDetail_20' ) end [2025-04-04 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:26:24] Production.INFO: ==18973== Releasing lock... [2025-04-04 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:26:24] Production.INFO: 46 MB #Memory Used# [2025-04-04 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:27:05 [end_date_ymd] => 2025-04-04 20:27:05 [RateCDR] => 1 ) [2025-04-04 20: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 17:27:05' and `end` < '2025-04-04 20: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-04 20:27:18] Production.INFO: count ==2379 [2025-04-04 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:27:05 - End Time 2025-04-04 20:27:05 [2025-04-04 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835277', 'tblTempUsageDetail_20' ) start [2025-04-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835277', 'tblTempUsageDetail_20' ) end [2025-04-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835277', 'tblTempVendorCDR_20' ) start [2025-04-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835277', 'tblTempVendorCDR_20' ) end [2025-04-04 20:27:19] Production.INFO: ProcessCDR(1,14835277,1,1,2) [2025-04-04 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835277', 'tblTempUsageDetail_20' ) start [2025-04-04 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835277', 'tblTempUsageDetail_20' ) end [2025-04-04 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:27:22] Production.INFO: ==19050== Releasing lock... [2025-04-04 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:27:22] Production.INFO: 46 MB #Memory Used# [2025-04-04 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:28:05 [end_date_ymd] => 2025-04-04 20:28:05 [RateCDR] => 1 ) [2025-04-04 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:28:05' and `end` < '2025-04-04 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:28:18] Production.INFO: count ==2366 [2025-04-04 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:28:05 - End Time 2025-04-04 20:28:05 [2025-04-04 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835282', 'tblTempUsageDetail_20' ) start [2025-04-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835282', 'tblTempUsageDetail_20' ) end [2025-04-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835282', 'tblTempVendorCDR_20' ) start [2025-04-04 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835282', 'tblTempVendorCDR_20' ) end [2025-04-04 20:28:19] Production.INFO: ProcessCDR(1,14835282,1,1,2) [2025-04-04 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835282', 'tblTempUsageDetail_20' ) start [2025-04-04 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835282', 'tblTempUsageDetail_20' ) end [2025-04-04 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:28:24] Production.INFO: ==19132== Releasing lock... [2025-04-04 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:28:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-04 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:29:05 [end_date_ymd] => 2025-04-04 20:29:05 [RateCDR] => 1 ) [2025-04-04 20: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 17:29:05' and `end` < '2025-04-04 20: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-04 20:29:19] Production.INFO: count ==2353 [2025-04-04 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:29:05 - End Time 2025-04-04 20:29:05 [2025-04-04 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835287', 'tblTempUsageDetail_20' ) start [2025-04-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835287', 'tblTempUsageDetail_20' ) end [2025-04-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835287', 'tblTempVendorCDR_20' ) start [2025-04-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835287', 'tblTempVendorCDR_20' ) end [2025-04-04 20:29:19] Production.INFO: ProcessCDR(1,14835287,1,1,2) [2025-04-04 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835287', 'tblTempUsageDetail_20' ) start [2025-04-04 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835287', 'tblTempUsageDetail_20' ) end [2025-04-04 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:29:23] Production.INFO: ==19212== Releasing lock... [2025-04-04 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:29:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-04 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:30:06 [end_date_ymd] => 2025-04-04 20:30:06 [RateCDR] => 1 ) [2025-04-04 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:30:06' and `end` < '2025-04-04 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:30:18] Production.INFO: count ==2344 [2025-04-04 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:30:06 - End Time 2025-04-04 20:30:06 [2025-04-04 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835293', 'tblTempUsageDetail_20' ) start [2025-04-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835293', 'tblTempUsageDetail_20' ) end [2025-04-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835293', 'tblTempVendorCDR_20' ) start [2025-04-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835293', 'tblTempVendorCDR_20' ) end [2025-04-04 20:30:19] Production.INFO: ProcessCDR(1,14835293,1,1,2) [2025-04-04 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835293', 'tblTempUsageDetail_20' ) start [2025-04-04 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835293', 'tblTempUsageDetail_20' ) end [2025-04-04 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:30:24] Production.INFO: ==19289== Releasing lock... [2025-04-04 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:30:24] Production.INFO: 46 MB #Memory Used# [2025-04-04 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:31:05 [end_date_ymd] => 2025-04-04 20:31:05 [RateCDR] => 1 ) [2025-04-04 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:31:05' and `end` < '2025-04-04 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:31:18] Production.INFO: count ==2268 [2025-04-04 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:31:05 - End Time 2025-04-04 20:31:05 [2025-04-04 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835298', 'tblTempUsageDetail_20' ) start [2025-04-04 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835298', 'tblTempUsageDetail_20' ) end [2025-04-04 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835298', 'tblTempVendorCDR_20' ) start [2025-04-04 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835298', 'tblTempVendorCDR_20' ) end [2025-04-04 20:31:19] Production.INFO: ProcessCDR(1,14835298,1,1,2) [2025-04-04 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835298', 'tblTempUsageDetail_20' ) start [2025-04-04 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835298', 'tblTempUsageDetail_20' ) end [2025-04-04 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:31:24] Production.INFO: ==19368== Releasing lock... [2025-04-04 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:31:24] Production.INFO: 45 MB #Memory Used# [2025-04-04 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:32:06 [end_date_ymd] => 2025-04-04 20:32:06 [RateCDR] => 1 ) [2025-04-04 20: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 17:32:06' and `end` < '2025-04-04 20: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-04 20:32:19] Production.INFO: count ==2263 [2025-04-04 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:32:06 - End Time 2025-04-04 20:32:06 [2025-04-04 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835303', 'tblTempUsageDetail_20' ) start [2025-04-04 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835303', 'tblTempUsageDetail_20' ) end [2025-04-04 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835303', 'tblTempVendorCDR_20' ) start [2025-04-04 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835303', 'tblTempVendorCDR_20' ) end [2025-04-04 20:32:19] Production.INFO: ProcessCDR(1,14835303,1,1,2) [2025-04-04 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835303', 'tblTempUsageDetail_20' ) start [2025-04-04 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835303', 'tblTempUsageDetail_20' ) end [2025-04-04 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:32:23] Production.INFO: ==19445== Releasing lock... [2025-04-04 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:32:23] Production.INFO: 45 MB #Memory Used# [2025-04-04 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:33:05 [end_date_ymd] => 2025-04-04 20:33:05 [RateCDR] => 1 ) [2025-04-04 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:33:05' and `end` < '2025-04-04 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:33:18] Production.INFO: count ==2265 [2025-04-04 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:33:05 - End Time 2025-04-04 20:33:05 [2025-04-04 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835308', 'tblTempUsageDetail_20' ) start [2025-04-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835308', 'tblTempUsageDetail_20' ) end [2025-04-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835308', 'tblTempVendorCDR_20' ) start [2025-04-04 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835308', 'tblTempVendorCDR_20' ) end [2025-04-04 20:33:19] Production.INFO: ProcessCDR(1,14835308,1,1,2) [2025-04-04 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835308', 'tblTempUsageDetail_20' ) start [2025-04-04 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835308', 'tblTempUsageDetail_20' ) end [2025-04-04 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:33:24] Production.INFO: ==19521== Releasing lock... [2025-04-04 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:33:24] Production.INFO: 45 MB #Memory Used# [2025-04-04 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:34:06 [end_date_ymd] => 2025-04-04 20:34:06 [RateCDR] => 1 ) [2025-04-04 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:34:06' and `end` < '2025-04-04 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:34:19] Production.INFO: count ==2252 [2025-04-04 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:34:06 - End Time 2025-04-04 20:34:06 [2025-04-04 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835313', 'tblTempUsageDetail_20' ) start [2025-04-04 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835313', 'tblTempUsageDetail_20' ) end [2025-04-04 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835313', 'tblTempVendorCDR_20' ) start [2025-04-04 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835313', 'tblTempVendorCDR_20' ) end [2025-04-04 20:34:19] Production.INFO: ProcessCDR(1,14835313,1,1,2) [2025-04-04 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835313', 'tblTempUsageDetail_20' ) start [2025-04-04 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835313', 'tblTempUsageDetail_20' ) end [2025-04-04 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:34:23] Production.INFO: ==19596== Releasing lock... [2025-04-04 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:34:23] Production.INFO: 45 MB #Memory Used# [2025-04-04 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:35:05 [end_date_ymd] => 2025-04-04 20:35:05 [RateCDR] => 1 ) [2025-04-04 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:35:05' and `end` < '2025-04-04 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:35:18] Production.INFO: count ==2257 [2025-04-04 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-04 17:35:05 - End Time 2025-04-04 20:35:05 [2025-04-04 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835318', 'tblTempUsageDetail_20' ) start [2025-04-04 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835318', 'tblTempUsageDetail_20' ) end [2025-04-04 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835318', 'tblTempVendorCDR_20' ) start [2025-04-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835318', 'tblTempVendorCDR_20' ) end [2025-04-04 20:35:19] Production.INFO: ProcessCDR(1,14835318,1,1,2) [2025-04-04 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835318', 'tblTempUsageDetail_20' ) start [2025-04-04 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835318', 'tblTempUsageDetail_20' ) end [2025-04-04 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:35:22] Production.INFO: ==19667== Releasing lock... [2025-04-04 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:35:22] Production.INFO: 45 MB #Memory Used# [2025-04-04 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:36:06 [end_date_ymd] => 2025-04-04 20:36:06 [RateCDR] => 1 ) [2025-04-04 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:36:06' and `end` < '2025-04-04 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:36:19] Production.INFO: count ==2247 [2025-04-04 20:36:20] Production.ERROR: pbx CDR StartTime 2025-04-04 17:36:06 - End Time 2025-04-04 20:36:06 [2025-04-04 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835323', 'tblTempUsageDetail_20' ) start [2025-04-04 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835323', 'tblTempUsageDetail_20' ) end [2025-04-04 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835323', 'tblTempVendorCDR_20' ) start [2025-04-04 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835323', 'tblTempVendorCDR_20' ) end [2025-04-04 20:36:20] Production.INFO: ProcessCDR(1,14835323,1,1,2) [2025-04-04 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835323', 'tblTempUsageDetail_20' ) start [2025-04-04 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835323', 'tblTempUsageDetail_20' ) end [2025-04-04 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:36:23] Production.INFO: ==19740== Releasing lock... [2025-04-04 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:36:23] Production.INFO: 45 MB #Memory Used# [2025-04-04 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:37:05 [end_date_ymd] => 2025-04-04 20:37:05 [RateCDR] => 1 ) [2025-04-04 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:37:05' and `end` < '2025-04-04 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:37:18] Production.INFO: count ==2245 [2025-04-04 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:37:05 - End Time 2025-04-04 20:37:05 [2025-04-04 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835328', 'tblTempUsageDetail_20' ) start [2025-04-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835328', 'tblTempUsageDetail_20' ) end [2025-04-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835328', 'tblTempVendorCDR_20' ) start [2025-04-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835328', 'tblTempVendorCDR_20' ) end [2025-04-04 20:37:19] Production.INFO: ProcessCDR(1,14835328,1,1,2) [2025-04-04 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835328', 'tblTempUsageDetail_20' ) start [2025-04-04 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835328', 'tblTempUsageDetail_20' ) end [2025-04-04 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:37:22] Production.INFO: ==19852== Releasing lock... [2025-04-04 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:37:22] Production.INFO: 45 MB #Memory Used# [2025-04-04 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:38:06 [end_date_ymd] => 2025-04-04 20:38:06 [RateCDR] => 1 ) [2025-04-04 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:38:06' and `end` < '2025-04-04 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:38:19] Production.INFO: count ==2235 [2025-04-04 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:38:06 - End Time 2025-04-04 20:38:06 [2025-04-04 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835333', 'tblTempUsageDetail_20' ) start [2025-04-04 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835333', 'tblTempUsageDetail_20' ) end [2025-04-04 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835333', 'tblTempVendorCDR_20' ) start [2025-04-04 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835333', 'tblTempVendorCDR_20' ) end [2025-04-04 20:38:19] Production.INFO: ProcessCDR(1,14835333,1,1,2) [2025-04-04 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835333', 'tblTempUsageDetail_20' ) start [2025-04-04 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835333', 'tblTempUsageDetail_20' ) end [2025-04-04 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:38:22] Production.INFO: ==19925== Releasing lock... [2025-04-04 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:38:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-04 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:39:05 [end_date_ymd] => 2025-04-04 20:39:05 [RateCDR] => 1 ) [2025-04-04 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:39:05' and `end` < '2025-04-04 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:39:18] Production.INFO: count ==2223 [2025-04-04 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:39:05 - End Time 2025-04-04 20:39:05 [2025-04-04 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835338', 'tblTempUsageDetail_20' ) start [2025-04-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835338', 'tblTempUsageDetail_20' ) end [2025-04-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835338', 'tblTempVendorCDR_20' ) start [2025-04-04 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835338', 'tblTempVendorCDR_20' ) end [2025-04-04 20:39:19] Production.INFO: ProcessCDR(1,14835338,1,1,2) [2025-04-04 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835338', 'tblTempUsageDetail_20' ) start [2025-04-04 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835338', 'tblTempUsageDetail_20' ) end [2025-04-04 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:39:22] Production.INFO: ==19999== Releasing lock... [2025-04-04 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:39:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-04 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:40:06 [end_date_ymd] => 2025-04-04 20:40:06 [RateCDR] => 1 ) [2025-04-04 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:40:06' and `end` < '2025-04-04 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:40:19] Production.INFO: count ==2204 [2025-04-04 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-04 17:40:06 - End Time 2025-04-04 20:40:06 [2025-04-04 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835344', 'tblTempUsageDetail_20' ) start [2025-04-04 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835344', 'tblTempUsageDetail_20' ) end [2025-04-04 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835344', 'tblTempVendorCDR_20' ) start [2025-04-04 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835344', 'tblTempVendorCDR_20' ) end [2025-04-04 20:40:20] Production.INFO: ProcessCDR(1,14835344,1,1,2) [2025-04-04 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835344', 'tblTempUsageDetail_20' ) start [2025-04-04 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835344', 'tblTempUsageDetail_20' ) end [2025-04-04 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:40:23] Production.INFO: ==20073== Releasing lock... [2025-04-04 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:40:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-04 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:41:05 [end_date_ymd] => 2025-04-04 20:41:05 [RateCDR] => 1 ) [2025-04-04 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:41:05' and `end` < '2025-04-04 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:41:18] Production.INFO: count ==2171 [2025-04-04 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 17:41:05 - End Time 2025-04-04 20:41:05 [2025-04-04 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835349', 'tblTempUsageDetail_20' ) start [2025-04-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835349', 'tblTempUsageDetail_20' ) end [2025-04-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835349', 'tblTempVendorCDR_20' ) start [2025-04-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835349', 'tblTempVendorCDR_20' ) end [2025-04-04 20:41:18] Production.INFO: ProcessCDR(1,14835349,1,1,2) [2025-04-04 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835349', 'tblTempUsageDetail_20' ) start [2025-04-04 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835349', 'tblTempUsageDetail_20' ) end [2025-04-04 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:41:22] Production.INFO: ==20147== Releasing lock... [2025-04-04 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:41:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-04 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:42:06 [end_date_ymd] => 2025-04-04 20:42:06 [RateCDR] => 1 ) [2025-04-04 20: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 17:42:06' and `end` < '2025-04-04 20: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-04 20:42:19] Production.INFO: count ==2168 [2025-04-04 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:42:06 - End Time 2025-04-04 20:42:06 [2025-04-04 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835354', 'tblTempUsageDetail_20' ) start [2025-04-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835354', 'tblTempUsageDetail_20' ) end [2025-04-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835354', 'tblTempVendorCDR_20' ) start [2025-04-04 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835354', 'tblTempVendorCDR_20' ) end [2025-04-04 20:42:19] Production.INFO: ProcessCDR(1,14835354,1,1,2) [2025-04-04 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835354', 'tblTempUsageDetail_20' ) start [2025-04-04 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835354', 'tblTempUsageDetail_20' ) end [2025-04-04 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:42:23] Production.INFO: ==20218== Releasing lock... [2025-04-04 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:42:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:43:05 [end_date_ymd] => 2025-04-04 20:43:05 [RateCDR] => 1 ) [2025-04-04 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:43:05' and `end` < '2025-04-04 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:43:18] Production.INFO: count ==2166 [2025-04-04 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:43:05 - End Time 2025-04-04 20:43:05 [2025-04-04 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835359', 'tblTempUsageDetail_20' ) start [2025-04-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835359', 'tblTempUsageDetail_20' ) end [2025-04-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835359', 'tblTempVendorCDR_20' ) start [2025-04-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835359', 'tblTempVendorCDR_20' ) end [2025-04-04 20:43:19] Production.INFO: ProcessCDR(1,14835359,1,1,2) [2025-04-04 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835359', 'tblTempUsageDetail_20' ) start [2025-04-04 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835359', 'tblTempUsageDetail_20' ) end [2025-04-04 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:43:22] Production.INFO: ==20292== Releasing lock... [2025-04-04 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:43:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:44:05 [end_date_ymd] => 2025-04-04 20:44:05 [RateCDR] => 1 ) [2025-04-04 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:44:05' and `end` < '2025-04-04 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:44:18] Production.INFO: count ==2148 [2025-04-04 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:44:05 - End Time 2025-04-04 20:44:05 [2025-04-04 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835364', 'tblTempUsageDetail_20' ) start [2025-04-04 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835364', 'tblTempUsageDetail_20' ) end [2025-04-04 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835364', 'tblTempVendorCDR_20' ) start [2025-04-04 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835364', 'tblTempVendorCDR_20' ) end [2025-04-04 20:44:19] Production.INFO: ProcessCDR(1,14835364,1,1,2) [2025-04-04 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835364', 'tblTempUsageDetail_20' ) start [2025-04-04 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835364', 'tblTempUsageDetail_20' ) end [2025-04-04 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:44:23] Production.INFO: ==20366== Releasing lock... [2025-04-04 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:44:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:45:05 [end_date_ymd] => 2025-04-04 20:45:05 [RateCDR] => 1 ) [2025-04-04 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:45:05' and `end` < '2025-04-04 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:45:18] Production.INFO: count ==2141 [2025-04-04 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:45:05 - End Time 2025-04-04 20:45:05 [2025-04-04 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835369', 'tblTempUsageDetail_20' ) start [2025-04-04 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835369', 'tblTempUsageDetail_20' ) end [2025-04-04 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835369', 'tblTempVendorCDR_20' ) start [2025-04-04 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835369', 'tblTempVendorCDR_20' ) end [2025-04-04 20:45:19] Production.INFO: ProcessCDR(1,14835369,1,1,2) [2025-04-04 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835369', 'tblTempUsageDetail_20' ) start [2025-04-04 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835369', 'tblTempUsageDetail_20' ) end [2025-04-04 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:45:22] Production.INFO: ==20436== Releasing lock... [2025-04-04 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:45:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:46:06 [end_date_ymd] => 2025-04-04 20:46:06 [RateCDR] => 1 ) [2025-04-04 20: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-04 17:46:06' and `end` < '2025-04-04 20: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-04 20:46:19] Production.INFO: count ==2138 [2025-04-04 20:46:20] Production.ERROR: pbx CDR StartTime 2025-04-04 17:46:06 - End Time 2025-04-04 20:46:06 [2025-04-04 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835374', 'tblTempUsageDetail_20' ) start [2025-04-04 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835374', 'tblTempUsageDetail_20' ) end [2025-04-04 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835374', 'tblTempVendorCDR_20' ) start [2025-04-04 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835374', 'tblTempVendorCDR_20' ) end [2025-04-04 20:46:20] Production.INFO: ProcessCDR(1,14835374,1,1,2) [2025-04-04 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835374', 'tblTempUsageDetail_20' ) start [2025-04-04 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835374', 'tblTempUsageDetail_20' ) end [2025-04-04 20:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:46:25] Production.INFO: ==20509== Releasing lock... [2025-04-04 20:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:46:25] Production.INFO: 44 MB #Memory Used# [2025-04-04 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:47:05 [end_date_ymd] => 2025-04-04 20:47:05 [RateCDR] => 1 ) [2025-04-04 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:47:05' and `end` < '2025-04-04 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:47:18] Production.INFO: count ==2140 [2025-04-04 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:47:05 - End Time 2025-04-04 20:47:05 [2025-04-04 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835379', 'tblTempUsageDetail_20' ) start [2025-04-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835379', 'tblTempUsageDetail_20' ) end [2025-04-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835379', 'tblTempVendorCDR_20' ) start [2025-04-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835379', 'tblTempVendorCDR_20' ) end [2025-04-04 20:47:19] Production.INFO: ProcessCDR(1,14835379,1,1,2) [2025-04-04 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835379', 'tblTempUsageDetail_20' ) start [2025-04-04 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835379', 'tblTempUsageDetail_20' ) end [2025-04-04 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:47:24] Production.INFO: ==20578== Releasing lock... [2025-04-04 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:47:24] Production.INFO: 44 MB #Memory Used# [2025-04-04 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:48:06 [end_date_ymd] => 2025-04-04 20:48:06 [RateCDR] => 1 ) [2025-04-04 20: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-04 17:48:06' and `end` < '2025-04-04 20: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-04 20:48:19] Production.INFO: count ==2141 [2025-04-04 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:48:06 - End Time 2025-04-04 20:48:06 [2025-04-04 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835384', 'tblTempUsageDetail_20' ) start [2025-04-04 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835384', 'tblTempUsageDetail_20' ) end [2025-04-04 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835384', 'tblTempVendorCDR_20' ) start [2025-04-04 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835384', 'tblTempVendorCDR_20' ) end [2025-04-04 20:48:20] Production.INFO: ProcessCDR(1,14835384,1,1,2) [2025-04-04 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835384', 'tblTempUsageDetail_20' ) start [2025-04-04 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835384', 'tblTempUsageDetail_20' ) end [2025-04-04 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:48:25] Production.INFO: ==20649== Releasing lock... [2025-04-04 20:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:48:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:49:05 [end_date_ymd] => 2025-04-04 20:49:05 [RateCDR] => 1 ) [2025-04-04 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:49:05' and `end` < '2025-04-04 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:49:18] Production.INFO: count ==2144 [2025-04-04 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:49:05 - End Time 2025-04-04 20:49:05 [2025-04-04 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835389', 'tblTempUsageDetail_20' ) start [2025-04-04 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835389', 'tblTempUsageDetail_20' ) end [2025-04-04 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835389', 'tblTempVendorCDR_20' ) start [2025-04-04 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835389', 'tblTempVendorCDR_20' ) end [2025-04-04 20:49:19] Production.INFO: ProcessCDR(1,14835389,1,1,2) [2025-04-04 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835389', 'tblTempUsageDetail_20' ) start [2025-04-04 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835389', 'tblTempUsageDetail_20' ) end [2025-04-04 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:49:24] Production.INFO: ==20720== Releasing lock... [2025-04-04 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:49:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:50:06 [end_date_ymd] => 2025-04-04 20:50:06 [RateCDR] => 1 ) [2025-04-04 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:50:06' and `end` < '2025-04-04 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:50:19] Production.INFO: count ==2149 [2025-04-04 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:50:06 - End Time 2025-04-04 20:50:06 [2025-04-04 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835395', 'tblTempUsageDetail_20' ) start [2025-04-04 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835395', 'tblTempUsageDetail_20' ) end [2025-04-04 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835395', 'tblTempVendorCDR_20' ) start [2025-04-04 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835395', 'tblTempVendorCDR_20' ) end [2025-04-04 20:50:20] Production.INFO: ProcessCDR(1,14835395,1,1,2) [2025-04-04 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835395', 'tblTempUsageDetail_20' ) start [2025-04-04 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835395', 'tblTempUsageDetail_20' ) end [2025-04-04 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:50:25] Production.INFO: ==20795== Releasing lock... [2025-04-04 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:50:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:51:05 [end_date_ymd] => 2025-04-04 20:51:05 [RateCDR] => 1 ) [2025-04-04 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:51:05' and `end` < '2025-04-04 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:51:18] Production.INFO: count ==2134 [2025-04-04 20:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 17:51:05 - End Time 2025-04-04 20:51:05 [2025-04-04 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835400', 'tblTempUsageDetail_20' ) start [2025-04-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835400', 'tblTempUsageDetail_20' ) end [2025-04-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835400', 'tblTempVendorCDR_20' ) start [2025-04-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835400', 'tblTempVendorCDR_20' ) end [2025-04-04 20:51:18] Production.INFO: ProcessCDR(1,14835400,1,1,2) [2025-04-04 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835400', 'tblTempUsageDetail_20' ) start [2025-04-04 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835400', 'tblTempUsageDetail_20' ) end [2025-04-04 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:51:23] Production.INFO: ==20865== Releasing lock... [2025-04-04 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:51:23] Production.INFO: 44 MB #Memory Used# [2025-04-04 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:52:06 [end_date_ymd] => 2025-04-04 20:52:06 [RateCDR] => 1 ) [2025-04-04 20: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-04 17:52:06' and `end` < '2025-04-04 20: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-04 20:52:19] Production.INFO: count ==2112 [2025-04-04 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:52:06 - End Time 2025-04-04 20:52:06 [2025-04-04 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835405', 'tblTempUsageDetail_20' ) start [2025-04-04 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835405', 'tblTempUsageDetail_20' ) end [2025-04-04 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835405', 'tblTempVendorCDR_20' ) start [2025-04-04 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835405', 'tblTempVendorCDR_20' ) end [2025-04-04 20:52:19] Production.INFO: ProcessCDR(1,14835405,1,1,2) [2025-04-04 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835405', 'tblTempUsageDetail_20' ) start [2025-04-04 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835405', 'tblTempUsageDetail_20' ) end [2025-04-04 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:52:23] Production.INFO: ==20966== Releasing lock... [2025-04-04 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:52:23] Production.INFO: 44 MB #Memory Used# [2025-04-04 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:53:06 [end_date_ymd] => 2025-04-04 20:53:06 [RateCDR] => 1 ) [2025-04-04 20: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 17:53:06' and `end` < '2025-04-04 20: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-04 20:53:19] Production.INFO: count ==2115 [2025-04-04 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:53:06 - End Time 2025-04-04 20:53:06 [2025-04-04 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835410', 'tblTempUsageDetail_20' ) start [2025-04-04 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835410', 'tblTempUsageDetail_20' ) end [2025-04-04 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835410', 'tblTempVendorCDR_20' ) start [2025-04-04 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835410', 'tblTempVendorCDR_20' ) end [2025-04-04 20:53:19] Production.INFO: ProcessCDR(1,14835410,1,1,2) [2025-04-04 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835410', 'tblTempUsageDetail_20' ) start [2025-04-04 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835410', 'tblTempUsageDetail_20' ) end [2025-04-04 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:53:23] Production.INFO: ==21045== Releasing lock... [2025-04-04 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:53:23] Production.INFO: 44 MB #Memory Used# [2025-04-04 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:54:05 [end_date_ymd] => 2025-04-04 20:54:05 [RateCDR] => 1 ) [2025-04-04 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:54:05' and `end` < '2025-04-04 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:54:18] Production.INFO: count ==2109 [2025-04-04 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-04 17:54:05 - End Time 2025-04-04 20:54:05 [2025-04-04 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835415', 'tblTempUsageDetail_20' ) start [2025-04-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835415', 'tblTempUsageDetail_20' ) end [2025-04-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835415', 'tblTempVendorCDR_20' ) start [2025-04-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835415', 'tblTempVendorCDR_20' ) end [2025-04-04 20:54:18] Production.INFO: ProcessCDR(1,14835415,1,1,2) [2025-04-04 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835415', 'tblTempUsageDetail_20' ) start [2025-04-04 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835415', 'tblTempUsageDetail_20' ) end [2025-04-04 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:54:24] Production.INFO: ==21117== Releasing lock... [2025-04-04 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:54:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-04 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:55:05 [end_date_ymd] => 2025-04-04 20:55:05 [RateCDR] => 1 ) [2025-04-04 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:55:05' and `end` < '2025-04-04 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:55:18] Production.INFO: count ==2092 [2025-04-04 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:55:05 - End Time 2025-04-04 20:55:05 [2025-04-04 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835420', 'tblTempUsageDetail_20' ) start [2025-04-04 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835420', 'tblTempUsageDetail_20' ) end [2025-04-04 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835420', 'tblTempVendorCDR_20' ) start [2025-04-04 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835420', 'tblTempVendorCDR_20' ) end [2025-04-04 20:55:19] Production.INFO: ProcessCDR(1,14835420,1,1,2) [2025-04-04 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835420', 'tblTempUsageDetail_20' ) start [2025-04-04 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835420', 'tblTempUsageDetail_20' ) end [2025-04-04 20:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:55:24] Production.INFO: ==21188== Releasing lock... [2025-04-04 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:55:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-04 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:56:06 [end_date_ymd] => 2025-04-04 20:56:06 [RateCDR] => 1 ) [2025-04-04 20: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 17:56:06' and `end` < '2025-04-04 20: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-04 20:56:19] Production.INFO: count ==2095 [2025-04-04 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:56:06 - End Time 2025-04-04 20:56:06 [2025-04-04 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835425', 'tblTempUsageDetail_20' ) start [2025-04-04 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835425', 'tblTempUsageDetail_20' ) end [2025-04-04 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835425', 'tblTempVendorCDR_20' ) start [2025-04-04 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835425', 'tblTempVendorCDR_20' ) end [2025-04-04 20:56:19] Production.INFO: ProcessCDR(1,14835425,1,1,2) [2025-04-04 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835425', 'tblTempUsageDetail_20' ) start [2025-04-04 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835425', 'tblTempUsageDetail_20' ) end [2025-04-04 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:56:25] Production.INFO: ==21260== Releasing lock... [2025-04-04 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:56:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-04 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:57:05 [end_date_ymd] => 2025-04-04 20:57:05 [RateCDR] => 1 ) [2025-04-04 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:57:05' and `end` < '2025-04-04 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:57:18] Production.INFO: count ==2102 [2025-04-04 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:57:05 - End Time 2025-04-04 20:57:05 [2025-04-04 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835430', 'tblTempUsageDetail_20' ) start [2025-04-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835430', 'tblTempUsageDetail_20' ) end [2025-04-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835430', 'tblTempVendorCDR_20' ) start [2025-04-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835430', 'tblTempVendorCDR_20' ) end [2025-04-04 20:57:19] Production.INFO: ProcessCDR(1,14835430,1,1,2) [2025-04-04 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835430', 'tblTempUsageDetail_20' ) start [2025-04-04 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835430', 'tblTempUsageDetail_20' ) end [2025-04-04 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:57:24] Production.INFO: ==21331== Releasing lock... [2025-04-04 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:57:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-04 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:58:05 [end_date_ymd] => 2025-04-04 20:58:05 [RateCDR] => 1 ) [2025-04-04 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:58:05' and `end` < '2025-04-04 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:58:18] Production.INFO: count ==2102 [2025-04-04 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:58:05 - End Time 2025-04-04 20:58:05 [2025-04-04 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835435', 'tblTempUsageDetail_20' ) start [2025-04-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835435', 'tblTempUsageDetail_20' ) end [2025-04-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835435', 'tblTempVendorCDR_20' ) start [2025-04-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835435', 'tblTempVendorCDR_20' ) end [2025-04-04 20:58:19] Production.INFO: ProcessCDR(1,14835435,1,1,2) [2025-04-04 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835435', 'tblTempUsageDetail_20' ) start [2025-04-04 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835435', 'tblTempUsageDetail_20' ) end [2025-04-04 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:58:23] Production.INFO: ==21406== Releasing lock... [2025-04-04 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:58:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-04 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 17:59:05 [end_date_ymd] => 2025-04-04 20:59:05 [RateCDR] => 1 ) [2025-04-04 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 17:59:05' and `end` < '2025-04-04 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 20:59:18] Production.INFO: count ==2096 [2025-04-04 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 17:59:05 - End Time 2025-04-04 20:59:05 [2025-04-04 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835440', 'tblTempUsageDetail_20' ) start [2025-04-04 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835440', 'tblTempUsageDetail_20' ) end [2025-04-04 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835440', 'tblTempVendorCDR_20' ) start [2025-04-04 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835440', 'tblTempVendorCDR_20' ) end [2025-04-04 20:59:19] Production.INFO: ProcessCDR(1,14835440,1,1,2) [2025-04-04 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835440', 'tblTempUsageDetail_20' ) start [2025-04-04 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835440', 'tblTempUsageDetail_20' ) end [2025-04-04 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 20:59:24] Production.INFO: ==21480== Releasing lock... [2025-04-04 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 20:59:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-04 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:00:06 [end_date_ymd] => 2025-04-04 21:00:06 [RateCDR] => 1 ) [2025-04-04 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:00:06' and `end` < '2025-04-04 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:00:19] Production.INFO: count ==2086 [2025-04-04 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 18:00:06 - End Time 2025-04-04 21:00:06 [2025-04-04 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835446', 'tblTempUsageDetail_20' ) start [2025-04-04 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835446', 'tblTempUsageDetail_20' ) end [2025-04-04 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835446', 'tblTempVendorCDR_20' ) start [2025-04-04 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835446', 'tblTempVendorCDR_20' ) end [2025-04-04 21:00:20] Production.INFO: ProcessCDR(1,14835446,1,1,2) [2025-04-04 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835446', 'tblTempUsageDetail_20' ) start [2025-04-04 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835446', 'tblTempUsageDetail_20' ) end [2025-04-04 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:00:25] Production.INFO: ==21553== Releasing lock... [2025-04-04 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:00:25] Production.INFO: 44 MB #Memory Used# [2025-04-04 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:01:05 [end_date_ymd] => 2025-04-04 21:01:05 [RateCDR] => 1 ) [2025-04-04 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:01:05' and `end` < '2025-04-04 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:01:18] Production.INFO: count ==2037 [2025-04-04 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:01:05 - End Time 2025-04-04 21:01:05 [2025-04-04 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835451', 'tblTempUsageDetail_20' ) start [2025-04-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835451', 'tblTempUsageDetail_20' ) end [2025-04-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835451', 'tblTempVendorCDR_20' ) start [2025-04-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835451', 'tblTempVendorCDR_20' ) end [2025-04-04 21:01:19] Production.INFO: ProcessCDR(1,14835451,1,1,2) [2025-04-04 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835451', 'tblTempUsageDetail_20' ) start [2025-04-04 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835451', 'tblTempUsageDetail_20' ) end [2025-04-04 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:01:24] Production.INFO: ==21638== Releasing lock... [2025-04-04 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:01:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:02:05 [end_date_ymd] => 2025-04-04 21:02:05 [RateCDR] => 1 ) [2025-04-04 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:02:05' and `end` < '2025-04-04 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:02:18] Production.INFO: count ==2046 [2025-04-04 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:02:05 - End Time 2025-04-04 21:02:05 [2025-04-04 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835456', 'tblTempUsageDetail_20' ) start [2025-04-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835456', 'tblTempUsageDetail_20' ) end [2025-04-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835456', 'tblTempVendorCDR_20' ) start [2025-04-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835456', 'tblTempVendorCDR_20' ) end [2025-04-04 21:02:19] Production.INFO: ProcessCDR(1,14835456,1,1,2) [2025-04-04 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835456', 'tblTempUsageDetail_20' ) start [2025-04-04 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835456', 'tblTempUsageDetail_20' ) end [2025-04-04 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:02:23] Production.INFO: ==21713== Releasing lock... [2025-04-04 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:02:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:03:06 [end_date_ymd] => 2025-04-04 21:03:06 [RateCDR] => 1 ) [2025-04-04 21: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 18:03:06' and `end` < '2025-04-04 21: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-04 21:03:19] Production.INFO: count ==2050 [2025-04-04 21:03:20] Production.ERROR: pbx CDR StartTime 2025-04-04 18:03:06 - End Time 2025-04-04 21:03:06 [2025-04-04 21:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835461', 'tblTempUsageDetail_20' ) start [2025-04-04 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835461', 'tblTempUsageDetail_20' ) end [2025-04-04 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835461', 'tblTempVendorCDR_20' ) start [2025-04-04 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835461', 'tblTempVendorCDR_20' ) end [2025-04-04 21:03:20] Production.INFO: ProcessCDR(1,14835461,1,1,2) [2025-04-04 21:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835461', 'tblTempUsageDetail_20' ) start [2025-04-04 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835461', 'tblTempUsageDetail_20' ) end [2025-04-04 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:03:23] Production.INFO: ==21786== Releasing lock... [2025-04-04 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:03:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:04:05 [end_date_ymd] => 2025-04-04 21:04:05 [RateCDR] => 1 ) [2025-04-04 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:04:05' and `end` < '2025-04-04 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:04:18] Production.INFO: count ==2042 [2025-04-04 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:04:05 - End Time 2025-04-04 21:04:05 [2025-04-04 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835466', 'tblTempUsageDetail_20' ) start [2025-04-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835466', 'tblTempUsageDetail_20' ) end [2025-04-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835466', 'tblTempVendorCDR_20' ) start [2025-04-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835466', 'tblTempVendorCDR_20' ) end [2025-04-04 21:04:19] Production.INFO: ProcessCDR(1,14835466,1,1,2) [2025-04-04 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835466', 'tblTempUsageDetail_20' ) start [2025-04-04 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835466', 'tblTempUsageDetail_20' ) end [2025-04-04 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:04:22] Production.INFO: ==21856== Releasing lock... [2025-04-04 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:04:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:05:05 [end_date_ymd] => 2025-04-04 21:05:05 [RateCDR] => 1 ) [2025-04-04 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:05:05' and `end` < '2025-04-04 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:05:18] Production.INFO: count ==2045 [2025-04-04 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:05:05 - End Time 2025-04-04 21:05:05 [2025-04-04 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835471', 'tblTempUsageDetail_20' ) start [2025-04-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835471', 'tblTempUsageDetail_20' ) end [2025-04-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835471', 'tblTempVendorCDR_20' ) start [2025-04-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835471', 'tblTempVendorCDR_20' ) end [2025-04-04 21:05:18] Production.INFO: ProcessCDR(1,14835471,1,1,2) [2025-04-04 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835471', 'tblTempUsageDetail_20' ) start [2025-04-04 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835471', 'tblTempUsageDetail_20' ) end [2025-04-04 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:05:23] Production.INFO: ==21925== Releasing lock... [2025-04-04 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:05:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:06:05 [end_date_ymd] => 2025-04-04 21:06:05 [RateCDR] => 1 ) [2025-04-04 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:06:05' and `end` < '2025-04-04 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:06:18] Production.INFO: count ==2039 [2025-04-04 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:06:05 - End Time 2025-04-04 21:06:05 [2025-04-04 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835476', 'tblTempUsageDetail_20' ) start [2025-04-04 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835476', 'tblTempUsageDetail_20' ) end [2025-04-04 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835476', 'tblTempVendorCDR_20' ) start [2025-04-04 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835476', 'tblTempVendorCDR_20' ) end [2025-04-04 21:06:19] Production.INFO: ProcessCDR(1,14835476,1,1,2) [2025-04-04 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835476', 'tblTempUsageDetail_20' ) start [2025-04-04 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835476', 'tblTempUsageDetail_20' ) end [2025-04-04 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:06:22] Production.INFO: ==21999== Releasing lock... [2025-04-04 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:06:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:07:06 [end_date_ymd] => 2025-04-04 21:07:06 [RateCDR] => 1 ) [2025-04-04 21: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-04 18:07:06' and `end` < '2025-04-04 21: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-04 21:07:19] Production.INFO: count ==2026 [2025-04-04 21:07:20] Production.ERROR: pbx CDR StartTime 2025-04-04 18:07:06 - End Time 2025-04-04 21:07:06 [2025-04-04 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835481', 'tblTempUsageDetail_20' ) start [2025-04-04 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835481', 'tblTempUsageDetail_20' ) end [2025-04-04 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835481', 'tblTempVendorCDR_20' ) start [2025-04-04 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835481', 'tblTempVendorCDR_20' ) end [2025-04-04 21:07:20] Production.INFO: ProcessCDR(1,14835481,1,1,2) [2025-04-04 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835481', 'tblTempUsageDetail_20' ) start [2025-04-04 21:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835481', 'tblTempUsageDetail_20' ) end [2025-04-04 21:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:07:25] Production.INFO: ==22075== Releasing lock... [2025-04-04 21:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:07:25] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:08:05 [end_date_ymd] => 2025-04-04 21:08:05 [RateCDR] => 1 ) [2025-04-04 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:08:05' and `end` < '2025-04-04 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:08:18] Production.INFO: count ==2022 [2025-04-04 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:08:05 - End Time 2025-04-04 21:08:05 [2025-04-04 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835486', 'tblTempUsageDetail_20' ) start [2025-04-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835486', 'tblTempUsageDetail_20' ) end [2025-04-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835486', 'tblTempVendorCDR_20' ) start [2025-04-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835486', 'tblTempVendorCDR_20' ) end [2025-04-04 21:08:19] Production.INFO: ProcessCDR(1,14835486,1,1,2) [2025-04-04 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835486', 'tblTempUsageDetail_20' ) start [2025-04-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835486', 'tblTempUsageDetail_20' ) end [2025-04-04 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:08:22] Production.INFO: ==22190== Releasing lock... [2025-04-04 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:08:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:09:06 [end_date_ymd] => 2025-04-04 21:09:06 [RateCDR] => 1 ) [2025-04-04 21: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-04 18:09:06' and `end` < '2025-04-04 21: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-04 21:09:19] Production.INFO: count ==2027 [2025-04-04 21:09:20] Production.ERROR: pbx CDR StartTime 2025-04-04 18:09:06 - End Time 2025-04-04 21:09:06 [2025-04-04 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835491', 'tblTempUsageDetail_20' ) start [2025-04-04 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835491', 'tblTempUsageDetail_20' ) end [2025-04-04 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835491', 'tblTempVendorCDR_20' ) start [2025-04-04 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835491', 'tblTempVendorCDR_20' ) end [2025-04-04 21:09:20] Production.INFO: ProcessCDR(1,14835491,1,1,2) [2025-04-04 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835491', 'tblTempUsageDetail_20' ) start [2025-04-04 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835491', 'tblTempUsageDetail_20' ) end [2025-04-04 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:09:23] Production.INFO: ==22265== Releasing lock... [2025-04-04 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:09:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:10:06 [end_date_ymd] => 2025-04-04 21:10:06 [RateCDR] => 1 ) [2025-04-04 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:10:06' and `end` < '2025-04-04 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:10:19] Production.INFO: count ==2035 [2025-04-04 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:10:06 - End Time 2025-04-04 21:10:06 [2025-04-04 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835496', 'tblTempUsageDetail_20' ) start [2025-04-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835496', 'tblTempUsageDetail_20' ) end [2025-04-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835496', 'tblTempVendorCDR_20' ) start [2025-04-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835496', 'tblTempVendorCDR_20' ) end [2025-04-04 21:10:19] Production.INFO: ProcessCDR(1,14835496,1,1,2) [2025-04-04 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835496', 'tblTempUsageDetail_20' ) start [2025-04-04 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835496', 'tblTempUsageDetail_20' ) end [2025-04-04 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:10:23] Production.INFO: ==22344== Releasing lock... [2025-04-04 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:10:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:11:05 [end_date_ymd] => 2025-04-04 21:11:05 [RateCDR] => 1 ) [2025-04-04 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:11:05' and `end` < '2025-04-04 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:11:18] Production.INFO: count ==2045 [2025-04-04 21:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:11:05 - End Time 2025-04-04 21:11:05 [2025-04-04 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835502', 'tblTempUsageDetail_20' ) start [2025-04-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835502', 'tblTempUsageDetail_20' ) end [2025-04-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835502', 'tblTempVendorCDR_20' ) start [2025-04-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835502', 'tblTempVendorCDR_20' ) end [2025-04-04 21:11:19] Production.INFO: ProcessCDR(1,14835502,1,1,2) [2025-04-04 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835502', 'tblTempUsageDetail_20' ) start [2025-04-04 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835502', 'tblTempUsageDetail_20' ) end [2025-04-04 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:11:23] Production.INFO: ==22422== Releasing lock... [2025-04-04 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:11:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-04 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:12:05 [end_date_ymd] => 2025-04-04 21:12:05 [RateCDR] => 1 ) [2025-04-04 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:12:05' and `end` < '2025-04-04 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:12:18] Production.INFO: count ==2052 [2025-04-04 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:12:05 - End Time 2025-04-04 21:12:05 [2025-04-04 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835507', 'tblTempUsageDetail_20' ) start [2025-04-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835507', 'tblTempUsageDetail_20' ) end [2025-04-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835507', 'tblTempVendorCDR_20' ) start [2025-04-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835507', 'tblTempVendorCDR_20' ) end [2025-04-04 21:12:18] Production.INFO: ProcessCDR(1,14835507,1,1,2) [2025-04-04 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835507', 'tblTempUsageDetail_20' ) start [2025-04-04 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835507', 'tblTempUsageDetail_20' ) end [2025-04-04 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:12:22] Production.INFO: ==22498== Releasing lock... [2025-04-04 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:12:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-04 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:13:05 [end_date_ymd] => 2025-04-04 21:13:05 [RateCDR] => 1 ) [2025-04-04 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:13:05' and `end` < '2025-04-04 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:13:18] Production.INFO: count ==2050 [2025-04-04 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:13:05 - End Time 2025-04-04 21:13:05 [2025-04-04 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835512', 'tblTempUsageDetail_20' ) start [2025-04-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835512', 'tblTempUsageDetail_20' ) end [2025-04-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835512', 'tblTempVendorCDR_20' ) start [2025-04-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835512', 'tblTempVendorCDR_20' ) end [2025-04-04 21:13:19] Production.INFO: ProcessCDR(1,14835512,1,1,2) [2025-04-04 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835512', 'tblTempUsageDetail_20' ) start [2025-04-04 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835512', 'tblTempUsageDetail_20' ) end [2025-04-04 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:13:24] Production.INFO: ==22577== Releasing lock... [2025-04-04 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:13:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:14:05 [end_date_ymd] => 2025-04-04 21:14:05 [RateCDR] => 1 ) [2025-04-04 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:14:05' and `end` < '2025-04-04 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:14:18] Production.INFO: count ==2047 [2025-04-04 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:14:05 - End Time 2025-04-04 21:14:05 [2025-04-04 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835517', 'tblTempUsageDetail_20' ) start [2025-04-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835517', 'tblTempUsageDetail_20' ) end [2025-04-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835517', 'tblTempVendorCDR_20' ) start [2025-04-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835517', 'tblTempVendorCDR_20' ) end [2025-04-04 21:14:19] Production.INFO: ProcessCDR(1,14835517,1,1,2) [2025-04-04 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835517', 'tblTempUsageDetail_20' ) start [2025-04-04 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835517', 'tblTempUsageDetail_20' ) end [2025-04-04 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:14:23] Production.INFO: ==22654== Releasing lock... [2025-04-04 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:14:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-04 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:15:06 [end_date_ymd] => 2025-04-04 21:15:06 [RateCDR] => 1 ) [2025-04-04 21: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-04 18:15:06' and `end` < '2025-04-04 21: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-04 21:15:19] Production.INFO: count ==2046 [2025-04-04 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:15:06 - End Time 2025-04-04 21:15:06 [2025-04-04 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835522', 'tblTempUsageDetail_20' ) start [2025-04-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835522', 'tblTempUsageDetail_20' ) end [2025-04-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835522', 'tblTempVendorCDR_20' ) start [2025-04-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835522', 'tblTempVendorCDR_20' ) end [2025-04-04 21:15:19] Production.INFO: ProcessCDR(1,14835522,1,1,2) [2025-04-04 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835522', 'tblTempUsageDetail_20' ) start [2025-04-04 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835522', 'tblTempUsageDetail_20' ) end [2025-04-04 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:15:23] Production.INFO: ==22733== Releasing lock... [2025-04-04 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:15:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:16:05 [end_date_ymd] => 2025-04-04 21:16:05 [RateCDR] => 1 ) [2025-04-04 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:16:05' and `end` < '2025-04-04 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:16:18] Production.INFO: count ==2031 [2025-04-04 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:16:05 - End Time 2025-04-04 21:16:05 [2025-04-04 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835527', 'tblTempUsageDetail_20' ) start [2025-04-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835527', 'tblTempUsageDetail_20' ) end [2025-04-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835527', 'tblTempVendorCDR_20' ) start [2025-04-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835527', 'tblTempVendorCDR_20' ) end [2025-04-04 21:16:18] Production.INFO: ProcessCDR(1,14835527,1,1,2) [2025-04-04 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835527', 'tblTempUsageDetail_20' ) start [2025-04-04 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835527', 'tblTempUsageDetail_20' ) end [2025-04-04 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:16:23] Production.INFO: ==22807== Releasing lock... [2025-04-04 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:16:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:17:06 [end_date_ymd] => 2025-04-04 21:17:06 [RateCDR] => 1 ) [2025-04-04 21: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 18:17:06' and `end` < '2025-04-04 21: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-04 21:17:19] Production.INFO: count ==2031 [2025-04-04 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:17:06 - End Time 2025-04-04 21:17:06 [2025-04-04 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835532', 'tblTempUsageDetail_20' ) start [2025-04-04 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835532', 'tblTempUsageDetail_20' ) end [2025-04-04 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835532', 'tblTempVendorCDR_20' ) start [2025-04-04 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835532', 'tblTempVendorCDR_20' ) end [2025-04-04 21:17:19] Production.INFO: ProcessCDR(1,14835532,1,1,2) [2025-04-04 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835532', 'tblTempUsageDetail_20' ) start [2025-04-04 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835532', 'tblTempUsageDetail_20' ) end [2025-04-04 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:17:24] Production.INFO: ==22881== Releasing lock... [2025-04-04 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:17:24] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:18:05 [end_date_ymd] => 2025-04-04 21:18:05 [RateCDR] => 1 ) [2025-04-04 21: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 18:18:05' and `end` < '2025-04-04 21: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-04 21:18:18] Production.INFO: count ==2035 [2025-04-04 21:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:18:05 - End Time 2025-04-04 21:18:05 [2025-04-04 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835537', 'tblTempUsageDetail_20' ) start [2025-04-04 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835537', 'tblTempUsageDetail_20' ) end [2025-04-04 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835537', 'tblTempVendorCDR_20' ) start [2025-04-04 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835537', 'tblTempVendorCDR_20' ) end [2025-04-04 21:18:19] Production.INFO: ProcessCDR(1,14835537,1,1,2) [2025-04-04 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835537', 'tblTempUsageDetail_20' ) start [2025-04-04 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835537', 'tblTempUsageDetail_20' ) end [2025-04-04 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:18:22] Production.INFO: ==22972== Releasing lock... [2025-04-04 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:18:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:19:05 [end_date_ymd] => 2025-04-04 21:19:05 [RateCDR] => 1 ) [2025-04-04 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:19:05' and `end` < '2025-04-04 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:19:18] Production.INFO: count ==2027 [2025-04-04 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:19:05 - End Time 2025-04-04 21:19:05 [2025-04-04 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835542', 'tblTempUsageDetail_20' ) start [2025-04-04 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835542', 'tblTempUsageDetail_20' ) end [2025-04-04 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835542', 'tblTempVendorCDR_20' ) start [2025-04-04 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835542', 'tblTempVendorCDR_20' ) end [2025-04-04 21:19:19] Production.INFO: ProcessCDR(1,14835542,1,1,2) [2025-04-04 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835542', 'tblTempUsageDetail_20' ) start [2025-04-04 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835542', 'tblTempUsageDetail_20' ) end [2025-04-04 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:19:23] Production.INFO: ==23056== Releasing lock... [2025-04-04 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:19:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:20:07 [end_date_ymd] => 2025-04-04 21:20:07 [RateCDR] => 1 ) [2025-04-04 21: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-04 18:20:07' and `end` < '2025-04-04 21: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-04 21:20:20] Production.INFO: count ==2032 [2025-04-04 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-04 18:20:07 - End Time 2025-04-04 21:20:07 [2025-04-04 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835548', 'tblTempUsageDetail_20' ) start [2025-04-04 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835548', 'tblTempUsageDetail_20' ) end [2025-04-04 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835548', 'tblTempVendorCDR_20' ) start [2025-04-04 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835548', 'tblTempVendorCDR_20' ) end [2025-04-04 21:20:20] Production.INFO: ProcessCDR(1,14835548,1,1,2) [2025-04-04 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835548', 'tblTempUsageDetail_20' ) start [2025-04-04 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835548', 'tblTempUsageDetail_20' ) end [2025-04-04 21:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:20:25] Production.INFO: ==23134== Releasing lock... [2025-04-04 21:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:20:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:21:05 [end_date_ymd] => 2025-04-04 21:21:05 [RateCDR] => 1 ) [2025-04-04 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:21:05' and `end` < '2025-04-04 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:21:18] Production.INFO: count ==2015 [2025-04-04 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:21:05 - End Time 2025-04-04 21:21:05 [2025-04-04 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835553', 'tblTempUsageDetail_20' ) start [2025-04-04 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835553', 'tblTempUsageDetail_20' ) end [2025-04-04 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835553', 'tblTempVendorCDR_20' ) start [2025-04-04 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835553', 'tblTempVendorCDR_20' ) end [2025-04-04 21:21:19] Production.INFO: ProcessCDR(1,14835553,1,1,2) [2025-04-04 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835553', 'tblTempUsageDetail_20' ) start [2025-04-04 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835553', 'tblTempUsageDetail_20' ) end [2025-04-04 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:21:22] Production.INFO: ==23211== Releasing lock... [2025-04-04 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:21:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:22:06 [end_date_ymd] => 2025-04-04 21:22:06 [RateCDR] => 1 ) [2025-04-04 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:22:06' and `end` < '2025-04-04 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:22:19] Production.INFO: count ==2017 [2025-04-04 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:22:06 - End Time 2025-04-04 21:22:06 [2025-04-04 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835558', 'tblTempUsageDetail_20' ) start [2025-04-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835558', 'tblTempUsageDetail_20' ) end [2025-04-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835558', 'tblTempVendorCDR_20' ) start [2025-04-04 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835558', 'tblTempVendorCDR_20' ) end [2025-04-04 21:22:19] Production.INFO: ProcessCDR(1,14835558,1,1,2) [2025-04-04 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835558', 'tblTempUsageDetail_20' ) start [2025-04-04 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835558', 'tblTempUsageDetail_20' ) end [2025-04-04 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:22:23] Production.INFO: ==23285== Releasing lock... [2025-04-04 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:22:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:23:05 [end_date_ymd] => 2025-04-04 21:23:05 [RateCDR] => 1 ) [2025-04-04 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:23:05' and `end` < '2025-04-04 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:23:18] Production.INFO: count ==2014 [2025-04-04 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:23:05 - End Time 2025-04-04 21:23:05 [2025-04-04 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835563', 'tblTempUsageDetail_20' ) start [2025-04-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835563', 'tblTempUsageDetail_20' ) end [2025-04-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835563', 'tblTempVendorCDR_20' ) start [2025-04-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835563', 'tblTempVendorCDR_20' ) end [2025-04-04 21:23:18] Production.INFO: ProcessCDR(1,14835563,1,1,2) [2025-04-04 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835563', 'tblTempUsageDetail_20' ) start [2025-04-04 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835563', 'tblTempUsageDetail_20' ) end [2025-04-04 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:23:22] Production.INFO: ==23399== Releasing lock... [2025-04-04 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:23:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:24:06 [end_date_ymd] => 2025-04-04 21:24:06 [RateCDR] => 1 ) [2025-04-04 21: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 18:24:06' and `end` < '2025-04-04 21: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-04 21:24:19] Production.INFO: count ==2032 [2025-04-04 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:24:06 - End Time 2025-04-04 21:24:06 [2025-04-04 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835568', 'tblTempUsageDetail_20' ) start [2025-04-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835568', 'tblTempUsageDetail_20' ) end [2025-04-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835568', 'tblTempVendorCDR_20' ) start [2025-04-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835568', 'tblTempVendorCDR_20' ) end [2025-04-04 21:24:19] Production.INFO: ProcessCDR(1,14835568,1,1,2) [2025-04-04 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835568', 'tblTempUsageDetail_20' ) start [2025-04-04 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835568', 'tblTempUsageDetail_20' ) end [2025-04-04 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:24:24] Production.INFO: ==23474== Releasing lock... [2025-04-04 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:24:24] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:25:05 [end_date_ymd] => 2025-04-04 21:25:05 [RateCDR] => 1 ) [2025-04-04 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:25:05' and `end` < '2025-04-04 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:25:18] Production.INFO: count ==2029 [2025-04-04 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:25:05 - End Time 2025-04-04 21:25:05 [2025-04-04 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835573', 'tblTempUsageDetail_20' ) start [2025-04-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835573', 'tblTempUsageDetail_20' ) end [2025-04-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835573', 'tblTempVendorCDR_20' ) start [2025-04-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835573', 'tblTempVendorCDR_20' ) end [2025-04-04 21:25:19] Production.INFO: ProcessCDR(1,14835573,1,1,2) [2025-04-04 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835573', 'tblTempUsageDetail_20' ) start [2025-04-04 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835573', 'tblTempUsageDetail_20' ) end [2025-04-04 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:25:22] Production.INFO: ==23551== Releasing lock... [2025-04-04 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:25:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:26:05 [end_date_ymd] => 2025-04-04 21:26:05 [RateCDR] => 1 ) [2025-04-04 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:26:05' and `end` < '2025-04-04 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:26:18] Production.INFO: count ==2015 [2025-04-04 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:26:05 - End Time 2025-04-04 21:26:05 [2025-04-04 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835578', 'tblTempUsageDetail_20' ) start [2025-04-04 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835578', 'tblTempUsageDetail_20' ) end [2025-04-04 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835578', 'tblTempVendorCDR_20' ) start [2025-04-04 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835578', 'tblTempVendorCDR_20' ) end [2025-04-04 21:26:19] Production.INFO: ProcessCDR(1,14835578,1,1,2) [2025-04-04 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835578', 'tblTempUsageDetail_20' ) start [2025-04-04 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835578', 'tblTempUsageDetail_20' ) end [2025-04-04 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:26:23] Production.INFO: ==23626== Releasing lock... [2025-04-04 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:26:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:27:05 [end_date_ymd] => 2025-04-04 21:27:05 [RateCDR] => 1 ) [2025-04-04 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:27:05' and `end` < '2025-04-04 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:27:18] Production.INFO: count ==2002 [2025-04-04 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:27:05 - End Time 2025-04-04 21:27:05 [2025-04-04 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835583', 'tblTempUsageDetail_20' ) start [2025-04-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835583', 'tblTempUsageDetail_20' ) end [2025-04-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835583', 'tblTempVendorCDR_20' ) start [2025-04-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835583', 'tblTempVendorCDR_20' ) end [2025-04-04 21:27:18] Production.INFO: ProcessCDR(1,14835583,1,1,2) [2025-04-04 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835583', 'tblTempUsageDetail_20' ) start [2025-04-04 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835583', 'tblTempUsageDetail_20' ) end [2025-04-04 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:27:22] Production.INFO: ==23702== Releasing lock... [2025-04-04 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:27:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:28:05 [end_date_ymd] => 2025-04-04 21:28:05 [RateCDR] => 1 ) [2025-04-04 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:28:05' and `end` < '2025-04-04 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:28:18] Production.INFO: count ==1993 [2025-04-04 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:28:05 - End Time 2025-04-04 21:28:05 [2025-04-04 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835588', 'tblTempUsageDetail_20' ) start [2025-04-04 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835588', 'tblTempUsageDetail_20' ) end [2025-04-04 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835588', 'tblTempVendorCDR_20' ) start [2025-04-04 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835588', 'tblTempVendorCDR_20' ) end [2025-04-04 21:28:19] Production.INFO: ProcessCDR(1,14835588,1,1,2) [2025-04-04 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835588', 'tblTempUsageDetail_20' ) start [2025-04-04 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835588', 'tblTempUsageDetail_20' ) end [2025-04-04 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:28:22] Production.INFO: ==23779== Releasing lock... [2025-04-04 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:28:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:29:04 [end_date_ymd] => 2025-04-04 21:29:04 [RateCDR] => 1 ) [2025-04-04 21: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-04 18:29:04' and `end` < '2025-04-04 21: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-04 21:29:17] Production.INFO: count ==1998 [2025-04-04 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:29:04 - End Time 2025-04-04 21:29:04 [2025-04-04 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835593', 'tblTempUsageDetail_20' ) start [2025-04-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835593', 'tblTempUsageDetail_20' ) end [2025-04-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835593', 'tblTempVendorCDR_20' ) start [2025-04-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835593', 'tblTempVendorCDR_20' ) end [2025-04-04 21:29:18] Production.INFO: ProcessCDR(1,14835593,1,1,2) [2025-04-04 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835593', 'tblTempUsageDetail_20' ) start [2025-04-04 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835593', 'tblTempUsageDetail_20' ) end [2025-04-04 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:29:21] Production.INFO: ==23852== Releasing lock... [2025-04-04 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:29:21] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:30:06 [end_date_ymd] => 2025-04-04 21:30:06 [RateCDR] => 1 ) [2025-04-04 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:30:06' and `end` < '2025-04-04 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:30:19] Production.INFO: count ==2000 [2025-04-04 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:30:06 - End Time 2025-04-04 21:30:06 [2025-04-04 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835599', 'tblTempUsageDetail_20' ) start [2025-04-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835599', 'tblTempUsageDetail_20' ) end [2025-04-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835599', 'tblTempVendorCDR_20' ) start [2025-04-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835599', 'tblTempVendorCDR_20' ) end [2025-04-04 21:30:19] Production.INFO: ProcessCDR(1,14835599,1,1,2) [2025-04-04 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835599', 'tblTempUsageDetail_20' ) start [2025-04-04 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835599', 'tblTempUsageDetail_20' ) end [2025-04-04 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:30:23] Production.INFO: ==23932== Releasing lock... [2025-04-04 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:30:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:31:05 [end_date_ymd] => 2025-04-04 21:31:05 [RateCDR] => 1 ) [2025-04-04 21: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 18:31:05' and `end` < '2025-04-04 21: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-04 21:31:18] Production.INFO: count ==1970 [2025-04-04 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:31:05 - End Time 2025-04-04 21:31:05 [2025-04-04 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835604', 'tblTempUsageDetail_20' ) start [2025-04-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835604', 'tblTempUsageDetail_20' ) end [2025-04-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835604', 'tblTempVendorCDR_20' ) start [2025-04-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835604', 'tblTempVendorCDR_20' ) end [2025-04-04 21:31:18] Production.INFO: ProcessCDR(1,14835604,1,1,2) [2025-04-04 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835604', 'tblTempUsageDetail_20' ) start [2025-04-04 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835604', 'tblTempUsageDetail_20' ) end [2025-04-04 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:31:22] Production.INFO: ==24008== Releasing lock... [2025-04-04 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:31:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:32:05 [end_date_ymd] => 2025-04-04 21:32:05 [RateCDR] => 1 ) [2025-04-04 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:32:05' and `end` < '2025-04-04 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:32:18] Production.INFO: count ==1986 [2025-04-04 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:32:05 - End Time 2025-04-04 21:32:05 [2025-04-04 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835609', 'tblTempUsageDetail_20' ) start [2025-04-04 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835609', 'tblTempUsageDetail_20' ) end [2025-04-04 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835609', 'tblTempVendorCDR_20' ) start [2025-04-04 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835609', 'tblTempVendorCDR_20' ) end [2025-04-04 21:32:19] Production.INFO: ProcessCDR(1,14835609,1,1,2) [2025-04-04 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835609', 'tblTempUsageDetail_20' ) start [2025-04-04 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835609', 'tblTempUsageDetail_20' ) end [2025-04-04 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:32:22] Production.INFO: ==24083== Releasing lock... [2025-04-04 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:32:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:33:05 [end_date_ymd] => 2025-04-04 21:33:05 [RateCDR] => 1 ) [2025-04-04 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:33:05' and `end` < '2025-04-04 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:33:18] Production.INFO: count ==1992 [2025-04-04 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:33:05 - End Time 2025-04-04 21:33:05 [2025-04-04 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835614', 'tblTempUsageDetail_20' ) start [2025-04-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835614', 'tblTempUsageDetail_20' ) end [2025-04-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835614', 'tblTempVendorCDR_20' ) start [2025-04-04 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835614', 'tblTempVendorCDR_20' ) end [2025-04-04 21:33:19] Production.INFO: ProcessCDR(1,14835614,1,1,2) [2025-04-04 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835614', 'tblTempUsageDetail_20' ) start [2025-04-04 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835614', 'tblTempUsageDetail_20' ) end [2025-04-04 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:33:22] Production.INFO: ==24156== Releasing lock... [2025-04-04 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:33:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:34:05 [end_date_ymd] => 2025-04-04 21:34:05 [RateCDR] => 1 ) [2025-04-04 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:34:05' and `end` < '2025-04-04 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:34:18] Production.INFO: count ==1986 [2025-04-04 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:34:05 - End Time 2025-04-04 21:34:05 [2025-04-04 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835619', 'tblTempUsageDetail_20' ) start [2025-04-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835619', 'tblTempUsageDetail_20' ) end [2025-04-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835619', 'tblTempVendorCDR_20' ) start [2025-04-04 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835619', 'tblTempVendorCDR_20' ) end [2025-04-04 21:34:19] Production.INFO: ProcessCDR(1,14835619,1,1,2) [2025-04-04 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835619', 'tblTempUsageDetail_20' ) start [2025-04-04 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835619', 'tblTempUsageDetail_20' ) end [2025-04-04 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:34:22] Production.INFO: ==24231== Releasing lock... [2025-04-04 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:34:22] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:35:05 [end_date_ymd] => 2025-04-04 21:35:05 [RateCDR] => 1 ) [2025-04-04 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:35:05' and `end` < '2025-04-04 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:35:18] Production.INFO: count ==1982 [2025-04-04 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:35:05 - End Time 2025-04-04 21:35:05 [2025-04-04 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835624', 'tblTempUsageDetail_20' ) start [2025-04-04 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835624', 'tblTempUsageDetail_20' ) end [2025-04-04 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835624', 'tblTempVendorCDR_20' ) start [2025-04-04 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835624', 'tblTempVendorCDR_20' ) end [2025-04-04 21:35:19] Production.INFO: ProcessCDR(1,14835624,1,1,2) [2025-04-04 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835624', 'tblTempUsageDetail_20' ) start [2025-04-04 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835624', 'tblTempUsageDetail_20' ) end [2025-04-04 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:35:23] Production.INFO: ==24306== Releasing lock... [2025-04-04 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:35:23] Production.INFO: 43 MB #Memory Used# [2025-04-04 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:36:05 [end_date_ymd] => 2025-04-04 21:36:05 [RateCDR] => 1 ) [2025-04-04 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:36:05' and `end` < '2025-04-04 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:36:18] Production.INFO: count ==1980 [2025-04-04 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:36:05 - End Time 2025-04-04 21:36:05 [2025-04-04 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835629', 'tblTempUsageDetail_20' ) start [2025-04-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835629', 'tblTempUsageDetail_20' ) end [2025-04-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835629', 'tblTempVendorCDR_20' ) start [2025-04-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835629', 'tblTempVendorCDR_20' ) end [2025-04-04 21:36:19] Production.INFO: ProcessCDR(1,14835629,1,1,2) [2025-04-04 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835629', 'tblTempUsageDetail_20' ) start [2025-04-04 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835629', 'tblTempUsageDetail_20' ) end [2025-04-04 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:36:22] Production.INFO: ==24377== Releasing lock... [2025-04-04 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:36:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-04 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:37:05 [end_date_ymd] => 2025-04-04 21:37:05 [RateCDR] => 1 ) [2025-04-04 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:37:05' and `end` < '2025-04-04 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:37:18] Production.INFO: count ==1970 [2025-04-04 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:37:05 - End Time 2025-04-04 21:37:05 [2025-04-04 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835634', 'tblTempUsageDetail_20' ) start [2025-04-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835634', 'tblTempUsageDetail_20' ) end [2025-04-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835634', 'tblTempVendorCDR_20' ) start [2025-04-04 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835634', 'tblTempVendorCDR_20' ) end [2025-04-04 21:37:19] Production.INFO: ProcessCDR(1,14835634,1,1,2) [2025-04-04 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835634', 'tblTempUsageDetail_20' ) start [2025-04-04 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835634', 'tblTempUsageDetail_20' ) end [2025-04-04 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:37:22] Production.INFO: ==24456== Releasing lock... [2025-04-04 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:37:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:38:05 [end_date_ymd] => 2025-04-04 21:38:05 [RateCDR] => 1 ) [2025-04-04 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:38:05' and `end` < '2025-04-04 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:38:18] Production.INFO: count ==1955 [2025-04-04 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:38:05 - End Time 2025-04-04 21:38:05 [2025-04-04 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835639', 'tblTempUsageDetail_20' ) start [2025-04-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835639', 'tblTempUsageDetail_20' ) end [2025-04-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835639', 'tblTempVendorCDR_20' ) start [2025-04-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835639', 'tblTempVendorCDR_20' ) end [2025-04-04 21:38:18] Production.INFO: ProcessCDR(1,14835639,1,1,2) [2025-04-04 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835639', 'tblTempUsageDetail_20' ) start [2025-04-04 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835639', 'tblTempUsageDetail_20' ) end [2025-04-04 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:38:22] Production.INFO: ==24532== Releasing lock... [2025-04-04 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:38:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:39:05 [end_date_ymd] => 2025-04-04 21:39:05 [RateCDR] => 1 ) [2025-04-04 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:39:05' and `end` < '2025-04-04 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:39:18] Production.INFO: count ==1957 [2025-04-04 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:39:05 - End Time 2025-04-04 21:39:05 [2025-04-04 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835644', 'tblTempUsageDetail_20' ) start [2025-04-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835644', 'tblTempUsageDetail_20' ) end [2025-04-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835644', 'tblTempVendorCDR_20' ) start [2025-04-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835644', 'tblTempVendorCDR_20' ) end [2025-04-04 21:39:18] Production.INFO: ProcessCDR(1,14835644,1,1,2) [2025-04-04 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835644', 'tblTempUsageDetail_20' ) start [2025-04-04 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835644', 'tblTempUsageDetail_20' ) end [2025-04-04 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:39:23] Production.INFO: ==24648== Releasing lock... [2025-04-04 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:39:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:40:06 [end_date_ymd] => 2025-04-04 21:40:06 [RateCDR] => 1 ) [2025-04-04 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:40:06' and `end` < '2025-04-04 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:40:19] Production.INFO: count ==1958 [2025-04-04 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:40:06 - End Time 2025-04-04 21:40:06 [2025-04-04 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835650', 'tblTempUsageDetail_20' ) start [2025-04-04 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835650', 'tblTempUsageDetail_20' ) end [2025-04-04 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835650', 'tblTempVendorCDR_20' ) start [2025-04-04 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835650', 'tblTempVendorCDR_20' ) end [2025-04-04 21:40:20] Production.INFO: ProcessCDR(1,14835650,1,1,2) [2025-04-04 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835650', 'tblTempUsageDetail_20' ) start [2025-04-04 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835650', 'tblTempUsageDetail_20' ) end [2025-04-04 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:40:23] Production.INFO: ==24727== Releasing lock... [2025-04-04 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:40:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:41:05 [end_date_ymd] => 2025-04-04 21:41:05 [RateCDR] => 1 ) [2025-04-04 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:41:05' and `end` < '2025-04-04 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:41:18] Production.INFO: count ==1976 [2025-04-04 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:41:05 - End Time 2025-04-04 21:41:05 [2025-04-04 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835655', 'tblTempUsageDetail_20' ) start [2025-04-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835655', 'tblTempUsageDetail_20' ) end [2025-04-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835655', 'tblTempVendorCDR_20' ) start [2025-04-04 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835655', 'tblTempVendorCDR_20' ) end [2025-04-04 21:41:19] Production.INFO: ProcessCDR(1,14835655,1,1,2) [2025-04-04 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835655', 'tblTempUsageDetail_20' ) start [2025-04-04 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835655', 'tblTempUsageDetail_20' ) end [2025-04-04 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:41:22] Production.INFO: ==24803== Releasing lock... [2025-04-04 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:41:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:42:05 [end_date_ymd] => 2025-04-04 21:42:05 [RateCDR] => 1 ) [2025-04-04 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:42:05' and `end` < '2025-04-04 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:42:18] Production.INFO: count ==1975 [2025-04-04 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:42:05 - End Time 2025-04-04 21:42:05 [2025-04-04 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835660', 'tblTempUsageDetail_20' ) start [2025-04-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835660', 'tblTempUsageDetail_20' ) end [2025-04-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835660', 'tblTempVendorCDR_20' ) start [2025-04-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835660', 'tblTempVendorCDR_20' ) end [2025-04-04 21:42:19] Production.INFO: ProcessCDR(1,14835660,1,1,2) [2025-04-04 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835660', 'tblTempUsageDetail_20' ) start [2025-04-04 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835660', 'tblTempUsageDetail_20' ) end [2025-04-04 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:42:22] Production.INFO: ==24883== Releasing lock... [2025-04-04 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:42:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:43:05 [end_date_ymd] => 2025-04-04 21:43:05 [RateCDR] => 1 ) [2025-04-04 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:43:05' and `end` < '2025-04-04 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:43:18] Production.INFO: count ==1971 [2025-04-04 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:43:05 - End Time 2025-04-04 21:43:05 [2025-04-04 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835665', 'tblTempUsageDetail_20' ) start [2025-04-04 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835665', 'tblTempUsageDetail_20' ) end [2025-04-04 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835665', 'tblTempVendorCDR_20' ) start [2025-04-04 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835665', 'tblTempVendorCDR_20' ) end [2025-04-04 21:43:19] Production.INFO: ProcessCDR(1,14835665,1,1,2) [2025-04-04 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835665', 'tblTempUsageDetail_20' ) start [2025-04-04 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835665', 'tblTempUsageDetail_20' ) end [2025-04-04 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:43:23] Production.INFO: ==24962== Releasing lock... [2025-04-04 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:43:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:44:05 [end_date_ymd] => 2025-04-04 21:44:05 [RateCDR] => 1 ) [2025-04-04 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:44:05' and `end` < '2025-04-04 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:44:18] Production.INFO: count ==1968 [2025-04-04 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:44:05 - End Time 2025-04-04 21:44:05 [2025-04-04 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835670', 'tblTempUsageDetail_20' ) start [2025-04-04 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835670', 'tblTempUsageDetail_20' ) end [2025-04-04 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835670', 'tblTempVendorCDR_20' ) start [2025-04-04 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835670', 'tblTempVendorCDR_20' ) end [2025-04-04 21:44:19] Production.INFO: ProcessCDR(1,14835670,1,1,2) [2025-04-04 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835670', 'tblTempUsageDetail_20' ) start [2025-04-04 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835670', 'tblTempUsageDetail_20' ) end [2025-04-04 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:44:22] Production.INFO: ==25037== Releasing lock... [2025-04-04 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:44:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:45:05 [end_date_ymd] => 2025-04-04 21:45:05 [RateCDR] => 1 ) [2025-04-04 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:45:05' and `end` < '2025-04-04 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:45:18] Production.INFO: count ==1967 [2025-04-04 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:45:05 - End Time 2025-04-04 21:45:05 [2025-04-04 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835675', 'tblTempUsageDetail_20' ) start [2025-04-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835675', 'tblTempUsageDetail_20' ) end [2025-04-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835675', 'tblTempVendorCDR_20' ) start [2025-04-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835675', 'tblTempVendorCDR_20' ) end [2025-04-04 21:45:18] Production.INFO: ProcessCDR(1,14835675,1,1,2) [2025-04-04 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835675', 'tblTempUsageDetail_20' ) start [2025-04-04 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835675', 'tblTempUsageDetail_20' ) end [2025-04-04 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:45:22] Production.INFO: ==25111== Releasing lock... [2025-04-04 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:46:06 [end_date_ymd] => 2025-04-04 21:46:06 [RateCDR] => 1 ) [2025-04-04 21: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-04 18:46:06' and `end` < '2025-04-04 21: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-04 21:46:18] Production.INFO: count ==1968 [2025-04-04 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:46:06 - End Time 2025-04-04 21:46:06 [2025-04-04 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835680', 'tblTempUsageDetail_20' ) start [2025-04-04 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835680', 'tblTempUsageDetail_20' ) end [2025-04-04 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835680', 'tblTempVendorCDR_20' ) start [2025-04-04 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835680', 'tblTempVendorCDR_20' ) end [2025-04-04 21:46:19] Production.INFO: ProcessCDR(1,14835680,1,1,2) [2025-04-04 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835680', 'tblTempUsageDetail_20' ) start [2025-04-04 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835680', 'tblTempUsageDetail_20' ) end [2025-04-04 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:46:22] Production.INFO: ==25188== Releasing lock... [2025-04-04 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:47:05 [end_date_ymd] => 2025-04-04 21:47:05 [RateCDR] => 1 ) [2025-04-04 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:47:05' and `end` < '2025-04-04 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:47:18] Production.INFO: count ==1963 [2025-04-04 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:47:05 - End Time 2025-04-04 21:47:05 [2025-04-04 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835685', 'tblTempUsageDetail_20' ) start [2025-04-04 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835685', 'tblTempUsageDetail_20' ) end [2025-04-04 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835685', 'tblTempVendorCDR_20' ) start [2025-04-04 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835685', 'tblTempVendorCDR_20' ) end [2025-04-04 21:47:18] Production.INFO: ProcessCDR(1,14835685,1,1,2) [2025-04-04 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835685', 'tblTempUsageDetail_20' ) start [2025-04-04 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835685', 'tblTempUsageDetail_20' ) end [2025-04-04 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:47:22] Production.INFO: ==25260== Releasing lock... [2025-04-04 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:47:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:48:05 [end_date_ymd] => 2025-04-04 21:48:05 [RateCDR] => 1 ) [2025-04-04 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:48:05' and `end` < '2025-04-04 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:48:18] Production.INFO: count ==1963 [2025-04-04 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:48:05 - End Time 2025-04-04 21:48:05 [2025-04-04 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835690', 'tblTempUsageDetail_20' ) start [2025-04-04 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835690', 'tblTempUsageDetail_20' ) end [2025-04-04 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835690', 'tblTempVendorCDR_20' ) start [2025-04-04 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835690', 'tblTempVendorCDR_20' ) end [2025-04-04 21:48:19] Production.INFO: ProcessCDR(1,14835690,1,1,2) [2025-04-04 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835690', 'tblTempUsageDetail_20' ) start [2025-04-04 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835690', 'tblTempUsageDetail_20' ) end [2025-04-04 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:48:22] Production.INFO: ==25338== Releasing lock... [2025-04-04 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:48:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:49:05 [end_date_ymd] => 2025-04-04 21:49:05 [RateCDR] => 1 ) [2025-04-04 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:49:05' and `end` < '2025-04-04 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:49:18] Production.INFO: count ==1960 [2025-04-04 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:49:05 - End Time 2025-04-04 21:49:05 [2025-04-04 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835695', 'tblTempUsageDetail_20' ) start [2025-04-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835695', 'tblTempUsageDetail_20' ) end [2025-04-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835695', 'tblTempVendorCDR_20' ) start [2025-04-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835695', 'tblTempVendorCDR_20' ) end [2025-04-04 21:49:18] Production.INFO: ProcessCDR(1,14835695,1,1,2) [2025-04-04 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835695', 'tblTempUsageDetail_20' ) start [2025-04-04 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835695', 'tblTempUsageDetail_20' ) end [2025-04-04 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:49:22] Production.INFO: ==25412== Releasing lock... [2025-04-04 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:50:06 [end_date_ymd] => 2025-04-04 21:50:06 [RateCDR] => 1 ) [2025-04-04 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:50:06' and `end` < '2025-04-04 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:50:19] Production.INFO: count ==1958 [2025-04-04 21:50:20] Production.ERROR: pbx CDR StartTime 2025-04-04 18:50:06 - End Time 2025-04-04 21:50:06 [2025-04-04 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835701', 'tblTempUsageDetail_20' ) start [2025-04-04 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835701', 'tblTempUsageDetail_20' ) end [2025-04-04 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835701', 'tblTempVendorCDR_20' ) start [2025-04-04 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835701', 'tblTempVendorCDR_20' ) end [2025-04-04 21:50:20] Production.INFO: ProcessCDR(1,14835701,1,1,2) [2025-04-04 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835701', 'tblTempUsageDetail_20' ) start [2025-04-04 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835701', 'tblTempUsageDetail_20' ) end [2025-04-04 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:50:23] Production.INFO: ==25490== Releasing lock... [2025-04-04 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:50:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:51:05 [end_date_ymd] => 2025-04-04 21:51:05 [RateCDR] => 1 ) [2025-04-04 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:51:05' and `end` < '2025-04-04 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:51:18] Production.INFO: count ==1955 [2025-04-04 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:51:05 - End Time 2025-04-04 21:51:05 [2025-04-04 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835706', 'tblTempUsageDetail_20' ) start [2025-04-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835706', 'tblTempUsageDetail_20' ) end [2025-04-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835706', 'tblTempVendorCDR_20' ) start [2025-04-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835706', 'tblTempVendorCDR_20' ) end [2025-04-04 21:51:19] Production.INFO: ProcessCDR(1,14835706,1,1,2) [2025-04-04 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835706', 'tblTempUsageDetail_20' ) start [2025-04-04 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835706', 'tblTempUsageDetail_20' ) end [2025-04-04 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:51:22] Production.INFO: ==25567== Releasing lock... [2025-04-04 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:51:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:52:05 [end_date_ymd] => 2025-04-04 21:52:05 [RateCDR] => 1 ) [2025-04-04 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:52:05' and `end` < '2025-04-04 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:52:18] Production.INFO: count ==1933 [2025-04-04 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:52:05 - End Time 2025-04-04 21:52:05 [2025-04-04 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835711', 'tblTempUsageDetail_20' ) start [2025-04-04 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835711', 'tblTempUsageDetail_20' ) end [2025-04-04 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835711', 'tblTempVendorCDR_20' ) start [2025-04-04 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835711', 'tblTempVendorCDR_20' ) end [2025-04-04 21:52:19] Production.INFO: ProcessCDR(1,14835711,1,1,2) [2025-04-04 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835711', 'tblTempUsageDetail_20' ) start [2025-04-04 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835711', 'tblTempUsageDetail_20' ) end [2025-04-04 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:52:22] Production.INFO: ==25641== Releasing lock... [2025-04-04 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:52:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:53:05 [end_date_ymd] => 2025-04-04 21:53:05 [RateCDR] => 1 ) [2025-04-04 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:53:05' and `end` < '2025-04-04 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:53:18] Production.INFO: count ==1923 [2025-04-04 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:53:05 - End Time 2025-04-04 21:53:05 [2025-04-04 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835716', 'tblTempUsageDetail_20' ) start [2025-04-04 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835716', 'tblTempUsageDetail_20' ) end [2025-04-04 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835716', 'tblTempVendorCDR_20' ) start [2025-04-04 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835716', 'tblTempVendorCDR_20' ) end [2025-04-04 21:53:19] Production.INFO: ProcessCDR(1,14835716,1,1,2) [2025-04-04 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835716', 'tblTempUsageDetail_20' ) start [2025-04-04 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835716', 'tblTempUsageDetail_20' ) end [2025-04-04 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:53:22] Production.INFO: ==25717== Releasing lock... [2025-04-04 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:53:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:54:05 [end_date_ymd] => 2025-04-04 21:54:05 [RateCDR] => 1 ) [2025-04-04 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:54:05' and `end` < '2025-04-04 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:54:18] Production.INFO: count ==1919 [2025-04-04 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:54:05 - End Time 2025-04-04 21:54:05 [2025-04-04 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835721', 'tblTempUsageDetail_20' ) start [2025-04-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835721', 'tblTempUsageDetail_20' ) end [2025-04-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835721', 'tblTempVendorCDR_20' ) start [2025-04-04 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835721', 'tblTempVendorCDR_20' ) end [2025-04-04 21:54:18] Production.INFO: ProcessCDR(1,14835721,1,1,2) [2025-04-04 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835721', 'tblTempUsageDetail_20' ) start [2025-04-04 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835721', 'tblTempUsageDetail_20' ) end [2025-04-04 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:54:22] Production.INFO: ==25827== Releasing lock... [2025-04-04 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:54:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:55:06 [end_date_ymd] => 2025-04-04 21:55:06 [RateCDR] => 1 ) [2025-04-04 21: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 18:55:06' and `end` < '2025-04-04 21: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-04 21:55:18] Production.INFO: count ==1924 [2025-04-04 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:55:06 - End Time 2025-04-04 21:55:06 [2025-04-04 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835726', 'tblTempUsageDetail_20' ) start [2025-04-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835726', 'tblTempUsageDetail_20' ) end [2025-04-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835726', 'tblTempVendorCDR_20' ) start [2025-04-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835726', 'tblTempVendorCDR_20' ) end [2025-04-04 21:55:19] Production.INFO: ProcessCDR(1,14835726,1,1,2) [2025-04-04 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835726', 'tblTempUsageDetail_20' ) start [2025-04-04 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835726', 'tblTempUsageDetail_20' ) end [2025-04-04 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:55:23] Production.INFO: ==25900== Releasing lock... [2025-04-04 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:56:05 [end_date_ymd] => 2025-04-04 21:56:05 [RateCDR] => 1 ) [2025-04-04 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:56:05' and `end` < '2025-04-04 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:56:18] Production.INFO: count ==1926 [2025-04-04 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:56:05 - End Time 2025-04-04 21:56:05 [2025-04-04 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835731', 'tblTempUsageDetail_20' ) start [2025-04-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835731', 'tblTempUsageDetail_20' ) end [2025-04-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835731', 'tblTempVendorCDR_20' ) start [2025-04-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835731', 'tblTempVendorCDR_20' ) end [2025-04-04 21:56:18] Production.INFO: ProcessCDR(1,14835731,1,1,2) [2025-04-04 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835731', 'tblTempUsageDetail_20' ) start [2025-04-04 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835731', 'tblTempUsageDetail_20' ) end [2025-04-04 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:56:22] Production.INFO: ==25971== Releasing lock... [2025-04-04 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:56:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:57:06 [end_date_ymd] => 2025-04-04 21:57:06 [RateCDR] => 1 ) [2025-04-04 21: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-04 18:57:06' and `end` < '2025-04-04 21: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-04 21:57:19] Production.INFO: count ==1925 [2025-04-04 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:57:06 - End Time 2025-04-04 21:57:06 [2025-04-04 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835736', 'tblTempUsageDetail_20' ) start [2025-04-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835736', 'tblTempUsageDetail_20' ) end [2025-04-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835736', 'tblTempVendorCDR_20' ) start [2025-04-04 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835736', 'tblTempVendorCDR_20' ) end [2025-04-04 21:57:19] Production.INFO: ProcessCDR(1,14835736,1,1,2) [2025-04-04 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835736', 'tblTempUsageDetail_20' ) start [2025-04-04 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835736', 'tblTempUsageDetail_20' ) end [2025-04-04 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:57:23] Production.INFO: ==26051== Releasing lock... [2025-04-04 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:57:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:58:05 [end_date_ymd] => 2025-04-04 21:58:05 [RateCDR] => 1 ) [2025-04-04 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:58:05' and `end` < '2025-04-04 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:58:18] Production.INFO: count ==1925 [2025-04-04 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-04 18:58:05 - End Time 2025-04-04 21:58:05 [2025-04-04 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835741', 'tblTempUsageDetail_20' ) start [2025-04-04 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835741', 'tblTempUsageDetail_20' ) end [2025-04-04 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835741', 'tblTempVendorCDR_20' ) start [2025-04-04 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835741', 'tblTempVendorCDR_20' ) end [2025-04-04 21:58:19] Production.INFO: ProcessCDR(1,14835741,1,1,2) [2025-04-04 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835741', 'tblTempUsageDetail_20' ) start [2025-04-04 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835741', 'tblTempUsageDetail_20' ) end [2025-04-04 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:58:22] Production.INFO: ==26120== Releasing lock... [2025-04-04 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:58:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 18:59:05 [end_date_ymd] => 2025-04-04 21:59:05 [RateCDR] => 1 ) [2025-04-04 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 18:59:05' and `end` < '2025-04-04 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 21:59:18] Production.INFO: count ==1919 [2025-04-04 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-04 18:59:05 - End Time 2025-04-04 21:59:05 [2025-04-04 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835746', 'tblTempUsageDetail_20' ) start [2025-04-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835746', 'tblTempUsageDetail_20' ) end [2025-04-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835746', 'tblTempVendorCDR_20' ) start [2025-04-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835746', 'tblTempVendorCDR_20' ) end [2025-04-04 21:59:18] Production.INFO: ProcessCDR(1,14835746,1,1,2) [2025-04-04 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835746', 'tblTempUsageDetail_20' ) start [2025-04-04 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835746', 'tblTempUsageDetail_20' ) end [2025-04-04 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 21:59:22] Production.INFO: ==26191== Releasing lock... [2025-04-04 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 21:59:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:00:06 [end_date_ymd] => 2025-04-04 22:00:06 [RateCDR] => 1 ) [2025-04-04 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:00:06' and `end` < '2025-04-04 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:00:19] Production.INFO: count ==1931 [2025-04-04 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 19:00:06 - End Time 2025-04-04 22:00:06 [2025-04-04 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835752', 'tblTempUsageDetail_20' ) start [2025-04-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835752', 'tblTempUsageDetail_20' ) end [2025-04-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835752', 'tblTempVendorCDR_20' ) start [2025-04-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835752', 'tblTempVendorCDR_20' ) end [2025-04-04 22:00:20] Production.INFO: ProcessCDR(1,14835752,1,1,2) [2025-04-04 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835752', 'tblTempUsageDetail_20' ) start [2025-04-04 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835752', 'tblTempUsageDetail_20' ) end [2025-04-04 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:00:23] Production.INFO: ==26265== Releasing lock... [2025-04-04 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:00:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-04 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:01:06 [end_date_ymd] => 2025-04-04 22:01:06 [RateCDR] => 1 ) [2025-04-04 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:01:06' and `end` < '2025-04-04 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:01:19] Production.INFO: count ==1898 [2025-04-04 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:01:06 - End Time 2025-04-04 22:01:06 [2025-04-04 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835757', 'tblTempUsageDetail_20' ) start [2025-04-04 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835757', 'tblTempUsageDetail_20' ) end [2025-04-04 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835757', 'tblTempVendorCDR_20' ) start [2025-04-04 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835757', 'tblTempVendorCDR_20' ) end [2025-04-04 22:01:19] Production.INFO: ProcessCDR(1,14835757,1,1,2) [2025-04-04 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835757', 'tblTempUsageDetail_20' ) start [2025-04-04 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835757', 'tblTempUsageDetail_20' ) end [2025-04-04 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:01:24] Production.INFO: ==26348== Releasing lock... [2025-04-04 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:01:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:02:06 [end_date_ymd] => 2025-04-04 22:02:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:02:06' and `end` < '2025-04-04 22: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-04 22:02:19] Production.INFO: count ==1915 [2025-04-04 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:02:06 - End Time 2025-04-04 22:02:06 [2025-04-04 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835762', 'tblTempUsageDetail_20' ) start [2025-04-04 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835762', 'tblTempUsageDetail_20' ) end [2025-04-04 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835762', 'tblTempVendorCDR_20' ) start [2025-04-04 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835762', 'tblTempVendorCDR_20' ) end [2025-04-04 22:02:19] Production.INFO: ProcessCDR(1,14835762,1,1,2) [2025-04-04 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835762', 'tblTempUsageDetail_20' ) start [2025-04-04 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835762', 'tblTempUsageDetail_20' ) end [2025-04-04 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:02:23] Production.INFO: ==26418== Releasing lock... [2025-04-04 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:02:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:03:05 [end_date_ymd] => 2025-04-04 22:03:05 [RateCDR] => 1 ) [2025-04-04 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:03:05' and `end` < '2025-04-04 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:03:18] Production.INFO: count ==1908 [2025-04-04 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:03:05 - End Time 2025-04-04 22:03:05 [2025-04-04 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835767', 'tblTempUsageDetail_20' ) start [2025-04-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835767', 'tblTempUsageDetail_20' ) end [2025-04-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835767', 'tblTempVendorCDR_20' ) start [2025-04-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835767', 'tblTempVendorCDR_20' ) end [2025-04-04 22:03:19] Production.INFO: ProcessCDR(1,14835767,1,1,2) [2025-04-04 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835767', 'tblTempUsageDetail_20' ) start [2025-04-04 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835767', 'tblTempUsageDetail_20' ) end [2025-04-04 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:03:22] Production.INFO: ==26488== Releasing lock... [2025-04-04 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:03:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:04:05 [end_date_ymd] => 2025-04-04 22:04:05 [RateCDR] => 1 ) [2025-04-04 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:04:05' and `end` < '2025-04-04 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:04:18] Production.INFO: count ==1918 [2025-04-04 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:04:05 - End Time 2025-04-04 22:04:05 [2025-04-04 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835772', 'tblTempUsageDetail_20' ) start [2025-04-04 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835772', 'tblTempUsageDetail_20' ) end [2025-04-04 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835772', 'tblTempVendorCDR_20' ) start [2025-04-04 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835772', 'tblTempVendorCDR_20' ) end [2025-04-04 22:04:19] Production.INFO: ProcessCDR(1,14835772,1,1,2) [2025-04-04 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835772', 'tblTempUsageDetail_20' ) start [2025-04-04 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835772', 'tblTempUsageDetail_20' ) end [2025-04-04 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:04:22] Production.INFO: ==26559== Releasing lock... [2025-04-04 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:04:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:05:05 [end_date_ymd] => 2025-04-04 22:05:05 [RateCDR] => 1 ) [2025-04-04 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:05:05' and `end` < '2025-04-04 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:05:18] Production.INFO: count ==1910 [2025-04-04 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:05:05 - End Time 2025-04-04 22:05:05 [2025-04-04 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835777', 'tblTempUsageDetail_20' ) start [2025-04-04 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835777', 'tblTempUsageDetail_20' ) end [2025-04-04 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835777', 'tblTempVendorCDR_20' ) start [2025-04-04 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835777', 'tblTempVendorCDR_20' ) end [2025-04-04 22:05:19] Production.INFO: ProcessCDR(1,14835777,1,1,2) [2025-04-04 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835777', 'tblTempUsageDetail_20' ) start [2025-04-04 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835777', 'tblTempUsageDetail_20' ) end [2025-04-04 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:05:22] Production.INFO: ==26631== Releasing lock... [2025-04-04 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:05:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-04 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:06:05 [end_date_ymd] => 2025-04-04 22:06:05 [RateCDR] => 1 ) [2025-04-04 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:06:05' and `end` < '2025-04-04 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:06:18] Production.INFO: count ==1897 [2025-04-04 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:06:05 - End Time 2025-04-04 22:06:05 [2025-04-04 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835782', 'tblTempUsageDetail_20' ) start [2025-04-04 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835782', 'tblTempUsageDetail_20' ) end [2025-04-04 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835782', 'tblTempVendorCDR_20' ) start [2025-04-04 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835782', 'tblTempVendorCDR_20' ) end [2025-04-04 22:06:19] Production.INFO: ProcessCDR(1,14835782,1,1,2) [2025-04-04 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835782', 'tblTempUsageDetail_20' ) start [2025-04-04 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835782', 'tblTempUsageDetail_20' ) end [2025-04-04 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:06:22] Production.INFO: ==26701== Releasing lock... [2025-04-04 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:06:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:07:05 [end_date_ymd] => 2025-04-04 22:07:05 [RateCDR] => 1 ) [2025-04-04 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:07:05' and `end` < '2025-04-04 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:07:18] Production.INFO: count ==1903 [2025-04-04 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:07:05 - End Time 2025-04-04 22:07:05 [2025-04-04 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835787', 'tblTempUsageDetail_20' ) start [2025-04-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835787', 'tblTempUsageDetail_20' ) end [2025-04-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835787', 'tblTempVendorCDR_20' ) start [2025-04-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835787', 'tblTempVendorCDR_20' ) end [2025-04-04 22:07:18] Production.INFO: ProcessCDR(1,14835787,1,1,2) [2025-04-04 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835787', 'tblTempUsageDetail_20' ) start [2025-04-04 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835787', 'tblTempUsageDetail_20' ) end [2025-04-04 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:07:22] Production.INFO: ==26771== Releasing lock... [2025-04-04 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:07:22] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:08:06 [end_date_ymd] => 2025-04-04 22:08:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:08:06' and `end` < '2025-04-04 22: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-04 22:08:19] Production.INFO: count ==1886 [2025-04-04 22:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:08:06 - End Time 2025-04-04 22:08:06 [2025-04-04 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835792', 'tblTempUsageDetail_20' ) start [2025-04-04 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835792', 'tblTempUsageDetail_20' ) end [2025-04-04 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835792', 'tblTempVendorCDR_20' ) start [2025-04-04 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835792', 'tblTempVendorCDR_20' ) end [2025-04-04 22:08:19] Production.INFO: ProcessCDR(1,14835792,1,1,2) [2025-04-04 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835792', 'tblTempUsageDetail_20' ) start [2025-04-04 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835792', 'tblTempUsageDetail_20' ) end [2025-04-04 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:08:23] Production.INFO: ==26845== Releasing lock... [2025-04-04 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:08:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:09:05 [end_date_ymd] => 2025-04-04 22:09:05 [RateCDR] => 1 ) [2025-04-04 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:09:05' and `end` < '2025-04-04 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:09:18] Production.INFO: count ==1895 [2025-04-04 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:09:05 - End Time 2025-04-04 22:09:05 [2025-04-04 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835797', 'tblTempUsageDetail_20' ) start [2025-04-04 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835797', 'tblTempUsageDetail_20' ) end [2025-04-04 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835797', 'tblTempVendorCDR_20' ) start [2025-04-04 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835797', 'tblTempVendorCDR_20' ) end [2025-04-04 22:09:19] Production.INFO: ProcessCDR(1,14835797,1,1,2) [2025-04-04 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835797', 'tblTempUsageDetail_20' ) start [2025-04-04 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835797', 'tblTempUsageDetail_20' ) end [2025-04-04 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:09:23] Production.INFO: ==26916== Releasing lock... [2025-04-04 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:09:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:10:06 [end_date_ymd] => 2025-04-04 22:10:06 [RateCDR] => 1 ) [2025-04-04 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:10:06' and `end` < '2025-04-04 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:10:19] Production.INFO: count ==1898 [2025-04-04 22:10:20] Production.ERROR: pbx CDR StartTime 2025-04-04 19:10:06 - End Time 2025-04-04 22:10:06 [2025-04-04 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835803', 'tblTempUsageDetail_20' ) start [2025-04-04 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835803', 'tblTempUsageDetail_20' ) end [2025-04-04 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835803', 'tblTempVendorCDR_20' ) start [2025-04-04 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835803', 'tblTempVendorCDR_20' ) end [2025-04-04 22:10:20] Production.INFO: ProcessCDR(1,14835803,1,1,2) [2025-04-04 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835803', 'tblTempUsageDetail_20' ) start [2025-04-04 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835803', 'tblTempUsageDetail_20' ) end [2025-04-04 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:10:23] Production.INFO: ==27042== Releasing lock... [2025-04-04 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:10:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:11:05 [end_date_ymd] => 2025-04-04 22:11:05 [RateCDR] => 1 ) [2025-04-04 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:11:05' and `end` < '2025-04-04 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:11:18] Production.INFO: count ==1866 [2025-04-04 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:11:05 - End Time 2025-04-04 22:11:05 [2025-04-04 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835808', 'tblTempUsageDetail_20' ) start [2025-04-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835808', 'tblTempUsageDetail_20' ) end [2025-04-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835808', 'tblTempVendorCDR_20' ) start [2025-04-04 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835808', 'tblTempVendorCDR_20' ) end [2025-04-04 22:11:18] Production.INFO: ProcessCDR(1,14835808,1,1,2) [2025-04-04 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835808', 'tblTempUsageDetail_20' ) start [2025-04-04 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835808', 'tblTempUsageDetail_20' ) end [2025-04-04 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:11:22] Production.INFO: ==27155== Releasing lock... [2025-04-04 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:11:22] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:12:06 [end_date_ymd] => 2025-04-04 22:12:06 [RateCDR] => 1 ) [2025-04-04 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:12:06' and `end` < '2025-04-04 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:12:18] Production.INFO: count ==1865 [2025-04-04 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:12:06 - End Time 2025-04-04 22:12:06 [2025-04-04 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835813', 'tblTempUsageDetail_20' ) start [2025-04-04 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835813', 'tblTempUsageDetail_20' ) end [2025-04-04 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835813', 'tblTempVendorCDR_20' ) start [2025-04-04 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835813', 'tblTempVendorCDR_20' ) end [2025-04-04 22:12:19] Production.INFO: ProcessCDR(1,14835813,1,1,2) [2025-04-04 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835813', 'tblTempUsageDetail_20' ) start [2025-04-04 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835813', 'tblTempUsageDetail_20' ) end [2025-04-04 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:12:22] Production.INFO: ==27265== Releasing lock... [2025-04-04 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:12:22] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:13:05 [end_date_ymd] => 2025-04-04 22:13:05 [RateCDR] => 1 ) [2025-04-04 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:13:05' and `end` < '2025-04-04 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:13:18] Production.INFO: count ==1871 [2025-04-04 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:13:05 - End Time 2025-04-04 22:13:05 [2025-04-04 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835818', 'tblTempUsageDetail_20' ) start [2025-04-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835818', 'tblTempUsageDetail_20' ) end [2025-04-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835818', 'tblTempVendorCDR_20' ) start [2025-04-04 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835818', 'tblTempVendorCDR_20' ) end [2025-04-04 22:13:18] Production.INFO: ProcessCDR(1,14835818,1,1,2) [2025-04-04 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835818', 'tblTempUsageDetail_20' ) start [2025-04-04 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835818', 'tblTempUsageDetail_20' ) end [2025-04-04 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:13:22] Production.INFO: ==27371== Releasing lock... [2025-04-04 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:13:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:14:06 [end_date_ymd] => 2025-04-04 22:14:06 [RateCDR] => 1 ) [2025-04-04 22:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:14:06' and `end` < '2025-04-04 22:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:14:19] Production.INFO: count ==1866 [2025-04-04 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:14:06 - End Time 2025-04-04 22:14:06 [2025-04-04 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835823', 'tblTempUsageDetail_20' ) start [2025-04-04 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835823', 'tblTempUsageDetail_20' ) end [2025-04-04 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835823', 'tblTempVendorCDR_20' ) start [2025-04-04 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835823', 'tblTempVendorCDR_20' ) end [2025-04-04 22:14:19] Production.INFO: ProcessCDR(1,14835823,1,1,2) [2025-04-04 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835823', 'tblTempUsageDetail_20' ) start [2025-04-04 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835823', 'tblTempUsageDetail_20' ) end [2025-04-04 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:14:23] Production.INFO: ==27482== Releasing lock... [2025-04-04 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:14:23] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:15:05 [end_date_ymd] => 2025-04-04 22:15:05 [RateCDR] => 1 ) [2025-04-04 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:15:05' and `end` < '2025-04-04 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:15:18] Production.INFO: count ==1860 [2025-04-04 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:15:05 - End Time 2025-04-04 22:15:05 [2025-04-04 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835828', 'tblTempUsageDetail_20' ) start [2025-04-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835828', 'tblTempUsageDetail_20' ) end [2025-04-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835828', 'tblTempVendorCDR_20' ) start [2025-04-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835828', 'tblTempVendorCDR_20' ) end [2025-04-04 22:15:18] Production.INFO: ProcessCDR(1,14835828,1,1,2) [2025-04-04 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835828', 'tblTempUsageDetail_20' ) start [2025-04-04 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835828', 'tblTempUsageDetail_20' ) end [2025-04-04 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:15:22] Production.INFO: ==27592== Releasing lock... [2025-04-04 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:15:22] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:16:06 [end_date_ymd] => 2025-04-04 22:16:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:16:06' and `end` < '2025-04-04 22: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-04 22:16:18] Production.INFO: count ==1861 [2025-04-04 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:16:06 - End Time 2025-04-04 22:16:06 [2025-04-04 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835833', 'tblTempUsageDetail_20' ) start [2025-04-04 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835833', 'tblTempUsageDetail_20' ) end [2025-04-04 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835833', 'tblTempVendorCDR_20' ) start [2025-04-04 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835833', 'tblTempVendorCDR_20' ) end [2025-04-04 22:16:19] Production.INFO: ProcessCDR(1,14835833,1,1,2) [2025-04-04 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835833', 'tblTempUsageDetail_20' ) start [2025-04-04 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835833', 'tblTempUsageDetail_20' ) end [2025-04-04 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:16:22] Production.INFO: ==27707== Releasing lock... [2025-04-04 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:16:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:17:05 [end_date_ymd] => 2025-04-04 22:17:05 [RateCDR] => 1 ) [2025-04-04 22: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 19:17:05' and `end` < '2025-04-04 22: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-04 22:17:18] Production.INFO: count ==1864 [2025-04-04 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:17:05 - End Time 2025-04-04 22:17:05 [2025-04-04 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835838', 'tblTempUsageDetail_20' ) start [2025-04-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835838', 'tblTempUsageDetail_20' ) end [2025-04-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835838', 'tblTempVendorCDR_20' ) start [2025-04-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835838', 'tblTempVendorCDR_20' ) end [2025-04-04 22:17:18] Production.INFO: ProcessCDR(1,14835838,1,1,2) [2025-04-04 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835838', 'tblTempUsageDetail_20' ) start [2025-04-04 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835838', 'tblTempUsageDetail_20' ) end [2025-04-04 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:17:22] Production.INFO: ==27816== Releasing lock... [2025-04-04 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:17:22] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:18:06 [end_date_ymd] => 2025-04-04 22:18:06 [RateCDR] => 1 ) [2025-04-04 22: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-04 19:18:06' and `end` < '2025-04-04 22: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-04 22:18:19] Production.INFO: count ==1859 [2025-04-04 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:18:06 - End Time 2025-04-04 22:18:06 [2025-04-04 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835843', 'tblTempUsageDetail_20' ) start [2025-04-04 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835843', 'tblTempUsageDetail_20' ) end [2025-04-04 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835843', 'tblTempVendorCDR_20' ) start [2025-04-04 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835843', 'tblTempVendorCDR_20' ) end [2025-04-04 22:18:19] Production.INFO: ProcessCDR(1,14835843,1,1,2) [2025-04-04 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835843', 'tblTempUsageDetail_20' ) start [2025-04-04 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835843', 'tblTempUsageDetail_20' ) end [2025-04-04 22:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:18:24] Production.INFO: ==27927== Releasing lock... [2025-04-04 22:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:18:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:19:05 [end_date_ymd] => 2025-04-04 22:19:05 [RateCDR] => 1 ) [2025-04-04 22: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 19:19:05' and `end` < '2025-04-04 22: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-04 22:19:18] Production.INFO: count ==1853 [2025-04-04 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:19:05 - End Time 2025-04-04 22:19:05 [2025-04-04 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835848', 'tblTempUsageDetail_20' ) start [2025-04-04 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835848', 'tblTempUsageDetail_20' ) end [2025-04-04 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835848', 'tblTempVendorCDR_20' ) start [2025-04-04 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835848', 'tblTempVendorCDR_20' ) end [2025-04-04 22:19:19] Production.INFO: ProcessCDR(1,14835848,1,1,2) [2025-04-04 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835848', 'tblTempUsageDetail_20' ) start [2025-04-04 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835848', 'tblTempUsageDetail_20' ) end [2025-04-04 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:19:24] Production.INFO: ==28037== Releasing lock... [2025-04-04 22:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:19:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:20:06 [end_date_ymd] => 2025-04-04 22:20:06 [RateCDR] => 1 ) [2025-04-04 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:20:06' and `end` < '2025-04-04 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:20:19] Production.INFO: count ==1845 [2025-04-04 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:20:06 - End Time 2025-04-04 22:20:06 [2025-04-04 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835854', 'tblTempUsageDetail_20' ) start [2025-04-04 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835854', 'tblTempUsageDetail_20' ) end [2025-04-04 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835854', 'tblTempVendorCDR_20' ) start [2025-04-04 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835854', 'tblTempVendorCDR_20' ) end [2025-04-04 22:20:19] Production.INFO: ProcessCDR(1,14835854,1,1,2) [2025-04-04 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835854', 'tblTempUsageDetail_20' ) start [2025-04-04 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835854', 'tblTempUsageDetail_20' ) end [2025-04-04 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:20:23] Production.INFO: ==28149== Releasing lock... [2025-04-04 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:20:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:21:05 [end_date_ymd] => 2025-04-04 22:21:05 [RateCDR] => 1 ) [2025-04-04 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:21:05' and `end` < '2025-04-04 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:21:18] Production.INFO: count ==1820 [2025-04-04 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:21:05 - End Time 2025-04-04 22:21:05 [2025-04-04 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835859', 'tblTempUsageDetail_20' ) start [2025-04-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835859', 'tblTempUsageDetail_20' ) end [2025-04-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835859', 'tblTempVendorCDR_20' ) start [2025-04-04 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835859', 'tblTempVendorCDR_20' ) end [2025-04-04 22:21:18] Production.INFO: ProcessCDR(1,14835859,1,1,2) [2025-04-04 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835859', 'tblTempUsageDetail_20' ) start [2025-04-04 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835859', 'tblTempUsageDetail_20' ) end [2025-04-04 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:21:22] Production.INFO: ==28260== Releasing lock... [2025-04-04 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:21:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-04 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:22:05 [end_date_ymd] => 2025-04-04 22:22:05 [RateCDR] => 1 ) [2025-04-04 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:22:05' and `end` < '2025-04-04 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:22:18] Production.INFO: count ==1822 [2025-04-04 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:22:05 - End Time 2025-04-04 22:22:05 [2025-04-04 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835864', 'tblTempUsageDetail_20' ) start [2025-04-04 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835864', 'tblTempUsageDetail_20' ) end [2025-04-04 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835864', 'tblTempVendorCDR_20' ) start [2025-04-04 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835864', 'tblTempVendorCDR_20' ) end [2025-04-04 22:22:19] Production.INFO: ProcessCDR(1,14835864,1,1,2) [2025-04-04 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835864', 'tblTempUsageDetail_20' ) start [2025-04-04 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835864', 'tblTempUsageDetail_20' ) end [2025-04-04 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:22:22] Production.INFO: ==28368== Releasing lock... [2025-04-04 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:22:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:23:05 [end_date_ymd] => 2025-04-04 22:23:05 [RateCDR] => 1 ) [2025-04-04 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:23:05' and `end` < '2025-04-04 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:23:18] Production.INFO: count ==1832 [2025-04-04 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:23:05 - End Time 2025-04-04 22:23:05 [2025-04-04 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835869', 'tblTempUsageDetail_20' ) start [2025-04-04 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835869', 'tblTempUsageDetail_20' ) end [2025-04-04 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835869', 'tblTempVendorCDR_20' ) start [2025-04-04 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835869', 'tblTempVendorCDR_20' ) end [2025-04-04 22:23:19] Production.INFO: ProcessCDR(1,14835869,1,1,2) [2025-04-04 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835869', 'tblTempUsageDetail_20' ) start [2025-04-04 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835869', 'tblTempUsageDetail_20' ) end [2025-04-04 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:23:22] Production.INFO: ==28472== Releasing lock... [2025-04-04 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:23:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:24:05 [end_date_ymd] => 2025-04-04 22:24:05 [RateCDR] => 1 ) [2025-04-04 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:24:05' and `end` < '2025-04-04 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:24:18] Production.INFO: count ==1831 [2025-04-04 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:24:05 - End Time 2025-04-04 22:24:05 [2025-04-04 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835874', 'tblTempUsageDetail_20' ) start [2025-04-04 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835874', 'tblTempUsageDetail_20' ) end [2025-04-04 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835874', 'tblTempVendorCDR_20' ) start [2025-04-04 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835874', 'tblTempVendorCDR_20' ) end [2025-04-04 22:24:19] Production.INFO: ProcessCDR(1,14835874,1,1,2) [2025-04-04 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835874', 'tblTempUsageDetail_20' ) start [2025-04-04 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835874', 'tblTempUsageDetail_20' ) end [2025-04-04 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:24:22] Production.INFO: ==28542== Releasing lock... [2025-04-04 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:24:22] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:25:06 [end_date_ymd] => 2025-04-04 22:25:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:25:06' and `end` < '2025-04-04 22: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-04 22:25:19] Production.INFO: count ==1844 [2025-04-04 22:25:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:25:06 - End Time 2025-04-04 22:25:06 [2025-04-04 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835879', 'tblTempUsageDetail_20' ) start [2025-04-04 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835879', 'tblTempUsageDetail_20' ) end [2025-04-04 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835879', 'tblTempVendorCDR_20' ) start [2025-04-04 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835879', 'tblTempVendorCDR_20' ) end [2025-04-04 22:25:19] Production.INFO: ProcessCDR(1,14835879,1,1,2) [2025-04-04 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835879', 'tblTempUsageDetail_20' ) start [2025-04-04 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835879', 'tblTempUsageDetail_20' ) end [2025-04-04 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:25:22] Production.INFO: ==28654== Releasing lock... [2025-04-04 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:25:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:26:05 [end_date_ymd] => 2025-04-04 22:26:05 [RateCDR] => 1 ) [2025-04-04 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:26:05' and `end` < '2025-04-04 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:26:18] Production.INFO: count ==1855 [2025-04-04 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:26:05 - End Time 2025-04-04 22:26:05 [2025-04-04 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835884', 'tblTempUsageDetail_20' ) start [2025-04-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835884', 'tblTempUsageDetail_20' ) end [2025-04-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835884', 'tblTempVendorCDR_20' ) start [2025-04-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835884', 'tblTempVendorCDR_20' ) end [2025-04-04 22:26:19] Production.INFO: ProcessCDR(1,14835884,1,1,2) [2025-04-04 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835884', 'tblTempUsageDetail_20' ) start [2025-04-04 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835884', 'tblTempUsageDetail_20' ) end [2025-04-04 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:26:22] Production.INFO: ==28729== Releasing lock... [2025-04-04 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:26:22] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:27:05 [end_date_ymd] => 2025-04-04 22:27:05 [RateCDR] => 1 ) [2025-04-04 22: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 19:27:05' and `end` < '2025-04-04 22: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-04 22:27:18] Production.INFO: count ==1862 [2025-04-04 22:27:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:27:05 - End Time 2025-04-04 22:27:05 [2025-04-04 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835889', 'tblTempUsageDetail_20' ) start [2025-04-04 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835889', 'tblTempUsageDetail_20' ) end [2025-04-04 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835889', 'tblTempVendorCDR_20' ) start [2025-04-04 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835889', 'tblTempVendorCDR_20' ) end [2025-04-04 22:27:19] Production.INFO: ProcessCDR(1,14835889,1,1,2) [2025-04-04 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835889', 'tblTempUsageDetail_20' ) start [2025-04-04 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835889', 'tblTempUsageDetail_20' ) end [2025-04-04 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:27:23] Production.INFO: ==28799== Releasing lock... [2025-04-04 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:27:23] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:28:05 [end_date_ymd] => 2025-04-04 22:28:05 [RateCDR] => 1 ) [2025-04-04 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:28:05' and `end` < '2025-04-04 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:28:18] Production.INFO: count ==1866 [2025-04-04 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:28:05 - End Time 2025-04-04 22:28:05 [2025-04-04 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835894', 'tblTempUsageDetail_20' ) start [2025-04-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835894', 'tblTempUsageDetail_20' ) end [2025-04-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835894', 'tblTempVendorCDR_20' ) start [2025-04-04 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835894', 'tblTempVendorCDR_20' ) end [2025-04-04 22:28:18] Production.INFO: ProcessCDR(1,14835894,1,1,2) [2025-04-04 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835894', 'tblTempUsageDetail_20' ) start [2025-04-04 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835894', 'tblTempUsageDetail_20' ) end [2025-04-04 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:28:21] Production.INFO: ==28870== Releasing lock... [2025-04-04 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:28:21] Production.INFO: 42 MB #Memory Used# [2025-04-04 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:29:06 [end_date_ymd] => 2025-04-04 22:29:06 [RateCDR] => 1 ) [2025-04-04 22: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-04 19:29:06' and `end` < '2025-04-04 22: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-04 22:29:19] Production.INFO: count ==1853 [2025-04-04 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:29:06 - End Time 2025-04-04 22:29:06 [2025-04-04 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835899', 'tblTempUsageDetail_20' ) start [2025-04-04 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835899', 'tblTempUsageDetail_20' ) end [2025-04-04 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835899', 'tblTempVendorCDR_20' ) start [2025-04-04 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835899', 'tblTempVendorCDR_20' ) end [2025-04-04 22:29:19] Production.INFO: ProcessCDR(1,14835899,1,1,2) [2025-04-04 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835899', 'tblTempUsageDetail_20' ) start [2025-04-04 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835899', 'tblTempUsageDetail_20' ) end [2025-04-04 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:29:23] Production.INFO: ==28943== Releasing lock... [2025-04-04 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:29:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:30:06 [end_date_ymd] => 2025-04-04 22:30:06 [RateCDR] => 1 ) [2025-04-04 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:30:06' and `end` < '2025-04-04 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:30:19] Production.INFO: count ==1854 [2025-04-04 22:30:20] Production.ERROR: pbx CDR StartTime 2025-04-04 19:30:06 - End Time 2025-04-04 22:30:06 [2025-04-04 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835905', 'tblTempUsageDetail_20' ) start [2025-04-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835905', 'tblTempUsageDetail_20' ) end [2025-04-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835905', 'tblTempVendorCDR_20' ) start [2025-04-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835905', 'tblTempVendorCDR_20' ) end [2025-04-04 22:30:20] Production.INFO: ProcessCDR(1,14835905,1,1,2) [2025-04-04 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835905', 'tblTempUsageDetail_20' ) start [2025-04-04 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835905', 'tblTempUsageDetail_20' ) end [2025-04-04 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:30:24] Production.INFO: ==29016== Releasing lock... [2025-04-04 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:30:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:31:05 [end_date_ymd] => 2025-04-04 22:31:05 [RateCDR] => 1 ) [2025-04-04 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:31:05' and `end` < '2025-04-04 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:31:18] Production.INFO: count ==1792 [2025-04-04 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:31:05 - End Time 2025-04-04 22:31:05 [2025-04-04 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835910', 'tblTempUsageDetail_20' ) start [2025-04-04 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835910', 'tblTempUsageDetail_20' ) end [2025-04-04 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835910', 'tblTempVendorCDR_20' ) start [2025-04-04 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835910', 'tblTempVendorCDR_20' ) end [2025-04-04 22:31:19] Production.INFO: ProcessCDR(1,14835910,1,1,2) [2025-04-04 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835910', 'tblTempUsageDetail_20' ) start [2025-04-04 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835910', 'tblTempUsageDetail_20' ) end [2025-04-04 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:31:22] Production.INFO: ==29088== Releasing lock... [2025-04-04 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:31:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:32:05 [end_date_ymd] => 2025-04-04 22:32:05 [RateCDR] => 1 ) [2025-04-04 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:32:05' and `end` < '2025-04-04 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:32:18] Production.INFO: count ==1791 [2025-04-04 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:32:05 - End Time 2025-04-04 22:32:05 [2025-04-04 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835915', 'tblTempUsageDetail_20' ) start [2025-04-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835915', 'tblTempUsageDetail_20' ) end [2025-04-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835915', 'tblTempVendorCDR_20' ) start [2025-04-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835915', 'tblTempVendorCDR_20' ) end [2025-04-04 22:32:18] Production.INFO: ProcessCDR(1,14835915,1,1,2) [2025-04-04 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835915', 'tblTempUsageDetail_20' ) start [2025-04-04 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835915', 'tblTempUsageDetail_20' ) end [2025-04-04 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:32:22] Production.INFO: ==29161== Releasing lock... [2025-04-04 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:32:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:33:05 [end_date_ymd] => 2025-04-04 22:33:05 [RateCDR] => 1 ) [2025-04-04 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:33:05' and `end` < '2025-04-04 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:33:18] Production.INFO: count ==1790 [2025-04-04 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:33:05 - End Time 2025-04-04 22:33:05 [2025-04-04 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835920', 'tblTempUsageDetail_20' ) start [2025-04-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835920', 'tblTempUsageDetail_20' ) end [2025-04-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835920', 'tblTempVendorCDR_20' ) start [2025-04-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835920', 'tblTempVendorCDR_20' ) end [2025-04-04 22:33:18] Production.INFO: ProcessCDR(1,14835920,1,1,2) [2025-04-04 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835920', 'tblTempUsageDetail_20' ) start [2025-04-04 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835920', 'tblTempUsageDetail_20' ) end [2025-04-04 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:33:23] Production.INFO: ==29245== Releasing lock... [2025-04-04 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:33:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:34:05 [end_date_ymd] => 2025-04-04 22:34:05 [RateCDR] => 1 ) [2025-04-04 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:34:05' and `end` < '2025-04-04 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:34:18] Production.INFO: count ==1787 [2025-04-04 22:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:34:05 - End Time 2025-04-04 22:34:05 [2025-04-04 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835925', 'tblTempUsageDetail_20' ) start [2025-04-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835925', 'tblTempUsageDetail_20' ) end [2025-04-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835925', 'tblTempVendorCDR_20' ) start [2025-04-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835925', 'tblTempVendorCDR_20' ) end [2025-04-04 22:34:19] Production.INFO: ProcessCDR(1,14835925,1,1,2) [2025-04-04 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835925', 'tblTempUsageDetail_20' ) start [2025-04-04 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835925', 'tblTempUsageDetail_20' ) end [2025-04-04 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:34:22] Production.INFO: ==29328== Releasing lock... [2025-04-04 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:34:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-04 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:35:05 [end_date_ymd] => 2025-04-04 22:35:05 [RateCDR] => 1 ) [2025-04-04 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:35:05' and `end` < '2025-04-04 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:35:18] Production.INFO: count ==1785 [2025-04-04 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:35:05 - End Time 2025-04-04 22:35:05 [2025-04-04 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835930', 'tblTempUsageDetail_20' ) start [2025-04-04 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835930', 'tblTempUsageDetail_20' ) end [2025-04-04 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835930', 'tblTempVendorCDR_20' ) start [2025-04-04 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835930', 'tblTempVendorCDR_20' ) end [2025-04-04 22:35:19] Production.INFO: ProcessCDR(1,14835930,1,1,2) [2025-04-04 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835930', 'tblTempUsageDetail_20' ) start [2025-04-04 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835930', 'tblTempUsageDetail_20' ) end [2025-04-04 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:35:22] Production.INFO: ==29418== Releasing lock... [2025-04-04 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:35:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:36:05 [end_date_ymd] => 2025-04-04 22:36:05 [RateCDR] => 1 ) [2025-04-04 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:36:05' and `end` < '2025-04-04 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:36:18] Production.INFO: count ==1783 [2025-04-04 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:36:05 - End Time 2025-04-04 22:36:05 [2025-04-04 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835935', 'tblTempUsageDetail_20' ) start [2025-04-04 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835935', 'tblTempUsageDetail_20' ) end [2025-04-04 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835935', 'tblTempVendorCDR_20' ) start [2025-04-04 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835935', 'tblTempVendorCDR_20' ) end [2025-04-04 22:36:19] Production.INFO: ProcessCDR(1,14835935,1,1,2) [2025-04-04 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835935', 'tblTempUsageDetail_20' ) start [2025-04-04 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835935', 'tblTempUsageDetail_20' ) end [2025-04-04 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:36:22] Production.INFO: ==29503== Releasing lock... [2025-04-04 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:37:06 [end_date_ymd] => 2025-04-04 22:37:06 [RateCDR] => 1 ) [2025-04-04 22: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-04 19:37:06' and `end` < '2025-04-04 22: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-04 22:37:19] Production.INFO: count ==1780 [2025-04-04 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:37:06 - End Time 2025-04-04 22:37:06 [2025-04-04 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835940', 'tblTempUsageDetail_20' ) start [2025-04-04 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835940', 'tblTempUsageDetail_20' ) end [2025-04-04 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835940', 'tblTempVendorCDR_20' ) start [2025-04-04 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835940', 'tblTempVendorCDR_20' ) end [2025-04-04 22:37:19] Production.INFO: ProcessCDR(1,14835940,1,1,2) [2025-04-04 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835940', 'tblTempUsageDetail_20' ) start [2025-04-04 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835940', 'tblTempUsageDetail_20' ) end [2025-04-04 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:37:22] Production.INFO: ==29591== Releasing lock... [2025-04-04 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:37:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:38:05 [end_date_ymd] => 2025-04-04 22:38:05 [RateCDR] => 1 ) [2025-04-04 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:38:05' and `end` < '2025-04-04 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:38:18] Production.INFO: count ==1779 [2025-04-04 22:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:38:05 - End Time 2025-04-04 22:38:05 [2025-04-04 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835945', 'tblTempUsageDetail_20' ) start [2025-04-04 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835945', 'tblTempUsageDetail_20' ) end [2025-04-04 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835945', 'tblTempVendorCDR_20' ) start [2025-04-04 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835945', 'tblTempVendorCDR_20' ) end [2025-04-04 22:38:19] Production.INFO: ProcessCDR(1,14835945,1,1,2) [2025-04-04 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835945', 'tblTempUsageDetail_20' ) start [2025-04-04 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835945', 'tblTempUsageDetail_20' ) end [2025-04-04 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:38:22] Production.INFO: ==29667== Releasing lock... [2025-04-04 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:38:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:39:06 [end_date_ymd] => 2025-04-04 22:39:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:39:06' and `end` < '2025-04-04 22: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-04 22:39:19] Production.INFO: count ==1777 [2025-04-04 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:39:06 - End Time 2025-04-04 22:39:06 [2025-04-04 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835950', 'tblTempUsageDetail_20' ) start [2025-04-04 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835950', 'tblTempUsageDetail_20' ) end [2025-04-04 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835950', 'tblTempVendorCDR_20' ) start [2025-04-04 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835950', 'tblTempVendorCDR_20' ) end [2025-04-04 22:39:19] Production.INFO: ProcessCDR(1,14835950,1,1,2) [2025-04-04 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835950', 'tblTempUsageDetail_20' ) start [2025-04-04 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835950', 'tblTempUsageDetail_20' ) end [2025-04-04 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:39:23] Production.INFO: ==29738== Releasing lock... [2025-04-04 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:39:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-04 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:40:06 [end_date_ymd] => 2025-04-04 22:40:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:40:06' and `end` < '2025-04-04 22: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-04 22:40:19] Production.INFO: count ==1781 [2025-04-04 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:40:06 - End Time 2025-04-04 22:40:06 [2025-04-04 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835956', 'tblTempUsageDetail_20' ) start [2025-04-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835956', 'tblTempUsageDetail_20' ) end [2025-04-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835956', 'tblTempVendorCDR_20' ) start [2025-04-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835956', 'tblTempVendorCDR_20' ) end [2025-04-04 22:40:19] Production.INFO: ProcessCDR(1,14835956,1,1,2) [2025-04-04 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835956', 'tblTempUsageDetail_20' ) start [2025-04-04 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835956', 'tblTempUsageDetail_20' ) end [2025-04-04 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:40:23] Production.INFO: ==29811== Releasing lock... [2025-04-04 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:40:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:41:06 [end_date_ymd] => 2025-04-04 22:41:06 [RateCDR] => 1 ) [2025-04-04 22:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:41:06' and `end` < '2025-04-04 22:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:41:18] Production.INFO: count ==1796 [2025-04-04 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:41:06 - End Time 2025-04-04 22:41:06 [2025-04-04 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835961', 'tblTempUsageDetail_20' ) start [2025-04-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835961', 'tblTempUsageDetail_20' ) end [2025-04-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835961', 'tblTempVendorCDR_20' ) start [2025-04-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835961', 'tblTempVendorCDR_20' ) end [2025-04-04 22:41:19] Production.INFO: ProcessCDR(1,14835961,1,1,2) [2025-04-04 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835961', 'tblTempUsageDetail_20' ) start [2025-04-04 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835961', 'tblTempUsageDetail_20' ) end [2025-04-04 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:41:23] Production.INFO: ==29926== Releasing lock... [2025-04-04 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:41:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:42:05 [end_date_ymd] => 2025-04-04 22:42:05 [RateCDR] => 1 ) [2025-04-04 22: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 19:42:05' and `end` < '2025-04-04 22: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-04 22:42:18] Production.INFO: count ==1802 [2025-04-04 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:42:05 - End Time 2025-04-04 22:42:05 [2025-04-04 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835966', 'tblTempUsageDetail_20' ) start [2025-04-04 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835966', 'tblTempUsageDetail_20' ) end [2025-04-04 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835966', 'tblTempVendorCDR_20' ) start [2025-04-04 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835966', 'tblTempVendorCDR_20' ) end [2025-04-04 22:42:19] Production.INFO: ProcessCDR(1,14835966,1,1,2) [2025-04-04 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835966', 'tblTempUsageDetail_20' ) start [2025-04-04 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835966', 'tblTempUsageDetail_20' ) end [2025-04-04 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:42:22] Production.INFO: ==29996== Releasing lock... [2025-04-04 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:42:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:43:06 [end_date_ymd] => 2025-04-04 22:43:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:43:06' and `end` < '2025-04-04 22: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-04 22:43:19] Production.INFO: count ==1800 [2025-04-04 22:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:43:06 - End Time 2025-04-04 22:43:06 [2025-04-04 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835971', 'tblTempUsageDetail_20' ) start [2025-04-04 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835971', 'tblTempUsageDetail_20' ) end [2025-04-04 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835971', 'tblTempVendorCDR_20' ) start [2025-04-04 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835971', 'tblTempVendorCDR_20' ) end [2025-04-04 22:43:19] Production.INFO: ProcessCDR(1,14835971,1,1,2) [2025-04-04 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835971', 'tblTempUsageDetail_20' ) start [2025-04-04 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835971', 'tblTempUsageDetail_20' ) end [2025-04-04 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:43:23] Production.INFO: ==30067== Releasing lock... [2025-04-04 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:43:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:44:05 [end_date_ymd] => 2025-04-04 22:44:05 [RateCDR] => 1 ) [2025-04-04 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:44:05' and `end` < '2025-04-04 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:44:18] Production.INFO: count ==1796 [2025-04-04 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:44:05 - End Time 2025-04-04 22:44:05 [2025-04-04 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835976', 'tblTempUsageDetail_20' ) start [2025-04-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835976', 'tblTempUsageDetail_20' ) end [2025-04-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835976', 'tblTempVendorCDR_20' ) start [2025-04-04 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835976', 'tblTempVendorCDR_20' ) end [2025-04-04 22:44:18] Production.INFO: ProcessCDR(1,14835976,1,1,2) [2025-04-04 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835976', 'tblTempUsageDetail_20' ) start [2025-04-04 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835976', 'tblTempUsageDetail_20' ) end [2025-04-04 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:44:21] Production.INFO: ==30135== Releasing lock... [2025-04-04 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:44:21] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:45:05 [end_date_ymd] => 2025-04-04 22:45:05 [RateCDR] => 1 ) [2025-04-04 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:45:05' and `end` < '2025-04-04 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:45:18] Production.INFO: count ==1792 [2025-04-04 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:45:05 - End Time 2025-04-04 22:45:05 [2025-04-04 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835981', 'tblTempUsageDetail_20' ) start [2025-04-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835981', 'tblTempUsageDetail_20' ) end [2025-04-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835981', 'tblTempVendorCDR_20' ) start [2025-04-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835981', 'tblTempVendorCDR_20' ) end [2025-04-04 22:45:18] Production.INFO: ProcessCDR(1,14835981,1,1,2) [2025-04-04 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835981', 'tblTempUsageDetail_20' ) start [2025-04-04 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835981', 'tblTempUsageDetail_20' ) end [2025-04-04 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:45:22] Production.INFO: ==30207== Releasing lock... [2025-04-04 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:45:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:46:06 [end_date_ymd] => 2025-04-04 22:46:06 [RateCDR] => 1 ) [2025-04-04 22: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-04 19:46:06' and `end` < '2025-04-04 22: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-04 22:46:18] Production.INFO: count ==1791 [2025-04-04 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:46:06 - End Time 2025-04-04 22:46:06 [2025-04-04 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835986', 'tblTempUsageDetail_20' ) start [2025-04-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835986', 'tblTempUsageDetail_20' ) end [2025-04-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835986', 'tblTempVendorCDR_20' ) start [2025-04-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835986', 'tblTempVendorCDR_20' ) end [2025-04-04 22:46:19] Production.INFO: ProcessCDR(1,14835986,1,1,2) [2025-04-04 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835986', 'tblTempUsageDetail_20' ) start [2025-04-04 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835986', 'tblTempUsageDetail_20' ) end [2025-04-04 22:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:46:24] Production.INFO: ==30276== Releasing lock... [2025-04-04 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:46:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-04 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:47:05 [end_date_ymd] => 2025-04-04 22:47:05 [RateCDR] => 1 ) [2025-04-04 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:47:05' and `end` < '2025-04-04 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:47:18] Production.INFO: count ==1794 [2025-04-04 22:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:47:05 - End Time 2025-04-04 22:47:05 [2025-04-04 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835991', 'tblTempUsageDetail_20' ) start [2025-04-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835991', 'tblTempUsageDetail_20' ) end [2025-04-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835991', 'tblTempVendorCDR_20' ) start [2025-04-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835991', 'tblTempVendorCDR_20' ) end [2025-04-04 22:47:19] Production.INFO: ProcessCDR(1,14835991,1,1,2) [2025-04-04 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835991', 'tblTempUsageDetail_20' ) start [2025-04-04 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835991', 'tblTempUsageDetail_20' ) end [2025-04-04 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:47:24] Production.INFO: ==30348== Releasing lock... [2025-04-04 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:47:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:48:06 [end_date_ymd] => 2025-04-04 22:48:06 [RateCDR] => 1 ) [2025-04-04 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:48:06' and `end` < '2025-04-04 22: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-04 22:48:19] Production.INFO: count ==1798 [2025-04-04 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:48:06 - End Time 2025-04-04 22:48:06 [2025-04-04 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835996', 'tblTempUsageDetail_20' ) start [2025-04-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14835996', 'tblTempUsageDetail_20' ) end [2025-04-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835996', 'tblTempVendorCDR_20' ) start [2025-04-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14835996', 'tblTempVendorCDR_20' ) end [2025-04-04 22:48:19] Production.INFO: ProcessCDR(1,14835996,1,1,2) [2025-04-04 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14835996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14835996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14835996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14835996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835996', 'tblTempUsageDetail_20' ) start [2025-04-04 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14835996', 'tblTempUsageDetail_20' ) end [2025-04-04 22:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:48:24] Production.INFO: ==30417== Releasing lock... [2025-04-04 22:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:48:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-04 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:49:05 [end_date_ymd] => 2025-04-04 22:49:05 [RateCDR] => 1 ) [2025-04-04 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:49:05' and `end` < '2025-04-04 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:49:18] Production.INFO: count ==1794 [2025-04-04 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:49:05 - End Time 2025-04-04 22:49:05 [2025-04-04 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836001', 'tblTempUsageDetail_20' ) start [2025-04-04 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836001', 'tblTempUsageDetail_20' ) end [2025-04-04 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836001', 'tblTempVendorCDR_20' ) start [2025-04-04 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836001', 'tblTempVendorCDR_20' ) end [2025-04-04 22:49:19] Production.INFO: ProcessCDR(1,14836001,1,1,2) [2025-04-04 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836001', 'tblTempUsageDetail_20' ) start [2025-04-04 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836001', 'tblTempUsageDetail_20' ) end [2025-04-04 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:49:22] Production.INFO: ==30489== Releasing lock... [2025-04-04 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:49:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:50:06 [end_date_ymd] => 2025-04-04 22:50:06 [RateCDR] => 1 ) [2025-04-04 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:50:06' and `end` < '2025-04-04 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:50:19] Production.INFO: count ==1793 [2025-04-04 22:50:20] Production.ERROR: pbx CDR StartTime 2025-04-04 19:50:06 - End Time 2025-04-04 22:50:06 [2025-04-04 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836007', 'tblTempUsageDetail_20' ) start [2025-04-04 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836007', 'tblTempUsageDetail_20' ) end [2025-04-04 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836007', 'tblTempVendorCDR_20' ) start [2025-04-04 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836007', 'tblTempVendorCDR_20' ) end [2025-04-04 22:50:20] Production.INFO: ProcessCDR(1,14836007,1,1,2) [2025-04-04 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836007', 'tblTempUsageDetail_20' ) start [2025-04-04 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836007', 'tblTempUsageDetail_20' ) end [2025-04-04 22:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:50:25] Production.INFO: ==30564== Releasing lock... [2025-04-04 22:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:50:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:51:05 [end_date_ymd] => 2025-04-04 22:51:05 [RateCDR] => 1 ) [2025-04-04 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:51:05' and `end` < '2025-04-04 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:51:18] Production.INFO: count ==1730 [2025-04-04 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:51:05 - End Time 2025-04-04 22:51:05 [2025-04-04 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836012', 'tblTempUsageDetail_20' ) start [2025-04-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836012', 'tblTempUsageDetail_20' ) end [2025-04-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836012', 'tblTempVendorCDR_20' ) start [2025-04-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836012', 'tblTempVendorCDR_20' ) end [2025-04-04 22:51:18] Production.INFO: ProcessCDR(1,14836012,1,1,2) [2025-04-04 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836012', 'tblTempUsageDetail_20' ) start [2025-04-04 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836012', 'tblTempUsageDetail_20' ) end [2025-04-04 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:51:22] Production.INFO: ==30637== Releasing lock... [2025-04-04 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:51:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:52:06 [end_date_ymd] => 2025-04-04 22:52:06 [RateCDR] => 1 ) [2025-04-04 22: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-04 19:52:06' and `end` < '2025-04-04 22: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-04 22:52:19] Production.INFO: count ==1732 [2025-04-04 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:52:06 - End Time 2025-04-04 22:52:06 [2025-04-04 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836017', 'tblTempUsageDetail_20' ) start [2025-04-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836017', 'tblTempUsageDetail_20' ) end [2025-04-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836017', 'tblTempVendorCDR_20' ) start [2025-04-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836017', 'tblTempVendorCDR_20' ) end [2025-04-04 22:52:19] Production.INFO: ProcessCDR(1,14836017,1,1,2) [2025-04-04 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836017', 'tblTempUsageDetail_20' ) start [2025-04-04 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836017', 'tblTempUsageDetail_20' ) end [2025-04-04 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:52:22] Production.INFO: ==30707== Releasing lock... [2025-04-04 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:52:22] Production.INFO: 41 MB #Memory Used# [2025-04-04 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:53:05 [end_date_ymd] => 2025-04-04 22:53:05 [RateCDR] => 1 ) [2025-04-04 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:53:05' and `end` < '2025-04-04 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:53:18] Production.INFO: count ==1735 [2025-04-04 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:53:05 - End Time 2025-04-04 22:53:05 [2025-04-04 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836022', 'tblTempUsageDetail_20' ) start [2025-04-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836022', 'tblTempUsageDetail_20' ) end [2025-04-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836022', 'tblTempVendorCDR_20' ) start [2025-04-04 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836022', 'tblTempVendorCDR_20' ) end [2025-04-04 22:53:18] Production.INFO: ProcessCDR(1,14836022,1,1,2) [2025-04-04 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836022', 'tblTempUsageDetail_20' ) start [2025-04-04 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836022', 'tblTempUsageDetail_20' ) end [2025-04-04 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:53:23] Production.INFO: ==30778== Releasing lock... [2025-04-04 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:54:06 [end_date_ymd] => 2025-04-04 22:54:06 [RateCDR] => 1 ) [2025-04-04 22: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 19:54:06' and `end` < '2025-04-04 22: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-04 22:54:19] Production.INFO: count ==1736 [2025-04-04 22:54:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:54:06 - End Time 2025-04-04 22:54:06 [2025-04-04 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836027', 'tblTempUsageDetail_20' ) start [2025-04-04 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836027', 'tblTempUsageDetail_20' ) end [2025-04-04 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836027', 'tblTempVendorCDR_20' ) start [2025-04-04 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836027', 'tblTempVendorCDR_20' ) end [2025-04-04 22:54:19] Production.INFO: ProcessCDR(1,14836027,1,1,2) [2025-04-04 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836027', 'tblTempUsageDetail_20' ) start [2025-04-04 22:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836027', 'tblTempUsageDetail_20' ) end [2025-04-04 22:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:54:24] Production.INFO: ==30847== Releasing lock... [2025-04-04 22:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:54:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:55:05 [end_date_ymd] => 2025-04-04 22:55:05 [RateCDR] => 1 ) [2025-04-04 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:55:05' and `end` < '2025-04-04 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:55:18] Production.INFO: count ==1733 [2025-04-04 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-04 19:55:05 - End Time 2025-04-04 22:55:05 [2025-04-04 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836032', 'tblTempUsageDetail_20' ) start [2025-04-04 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836032', 'tblTempUsageDetail_20' ) end [2025-04-04 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836032', 'tblTempVendorCDR_20' ) start [2025-04-04 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836032', 'tblTempVendorCDR_20' ) end [2025-04-04 22:55:19] Production.INFO: ProcessCDR(1,14836032,1,1,2) [2025-04-04 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836032', 'tblTempUsageDetail_20' ) start [2025-04-04 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836032', 'tblTempUsageDetail_20' ) end [2025-04-04 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:55:22] Production.INFO: ==30927== Releasing lock... [2025-04-04 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:55:22] Production.INFO: 41 MB #Memory Used# [2025-04-04 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:56:05 [end_date_ymd] => 2025-04-04 22:56:05 [RateCDR] => 1 ) [2025-04-04 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:56:05' and `end` < '2025-04-04 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:56:18] Production.INFO: count ==1727 [2025-04-04 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:56:05 - End Time 2025-04-04 22:56:05 [2025-04-04 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836037', 'tblTempUsageDetail_20' ) start [2025-04-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836037', 'tblTempUsageDetail_20' ) end [2025-04-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836037', 'tblTempVendorCDR_20' ) start [2025-04-04 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836037', 'tblTempVendorCDR_20' ) end [2025-04-04 22:56:19] Production.INFO: ProcessCDR(1,14836037,1,1,2) [2025-04-04 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836037', 'tblTempUsageDetail_20' ) start [2025-04-04 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836037', 'tblTempUsageDetail_20' ) end [2025-04-04 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:56:22] Production.INFO: ==31041== Releasing lock... [2025-04-04 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:56:22] Production.INFO: 41 MB #Memory Used# [2025-04-04 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:57:06 [end_date_ymd] => 2025-04-04 22:57:06 [RateCDR] => 1 ) [2025-04-04 22: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-04 19:57:06' and `end` < '2025-04-04 22: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-04 22:57:19] Production.INFO: count ==1727 [2025-04-04 22:57:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:57:06 - End Time 2025-04-04 22:57:06 [2025-04-04 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836042', 'tblTempUsageDetail_20' ) start [2025-04-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836042', 'tblTempUsageDetail_20' ) end [2025-04-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836042', 'tblTempVendorCDR_20' ) start [2025-04-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836042', 'tblTempVendorCDR_20' ) end [2025-04-04 22:57:19] Production.INFO: ProcessCDR(1,14836042,1,1,2) [2025-04-04 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836042', 'tblTempUsageDetail_20' ) start [2025-04-04 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836042', 'tblTempUsageDetail_20' ) end [2025-04-04 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:57:23] Production.INFO: ==31112== Releasing lock... [2025-04-04 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:57:23] Production.INFO: 41 MB #Memory Used# [2025-04-04 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:58:05 [end_date_ymd] => 2025-04-04 22:58:05 [RateCDR] => 1 ) [2025-04-04 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:58:05' and `end` < '2025-04-04 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:58:18] Production.INFO: count ==1730 [2025-04-04 22:58:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:58:05 - End Time 2025-04-04 22:58:05 [2025-04-04 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836047', 'tblTempUsageDetail_20' ) start [2025-04-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836047', 'tblTempUsageDetail_20' ) end [2025-04-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836047', 'tblTempVendorCDR_20' ) start [2025-04-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836047', 'tblTempVendorCDR_20' ) end [2025-04-04 22:58:19] Production.INFO: ProcessCDR(1,14836047,1,1,2) [2025-04-04 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836047', 'tblTempUsageDetail_20' ) start [2025-04-04 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836047', 'tblTempUsageDetail_20' ) end [2025-04-04 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:58:22] Production.INFO: ==31182== Releasing lock... [2025-04-04 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:58:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 19:59:05 [end_date_ymd] => 2025-04-04 22:59:05 [RateCDR] => 1 ) [2025-04-04 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 19:59:05' and `end` < '2025-04-04 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 22:59:18] Production.INFO: count ==1728 [2025-04-04 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 19:59:05 - End Time 2025-04-04 22:59:05 [2025-04-04 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836052', 'tblTempUsageDetail_20' ) start [2025-04-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836052', 'tblTempUsageDetail_20' ) end [2025-04-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836052', 'tblTempVendorCDR_20' ) start [2025-04-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836052', 'tblTempVendorCDR_20' ) end [2025-04-04 22:59:19] Production.INFO: ProcessCDR(1,14836052,1,1,2) [2025-04-04 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836052', 'tblTempUsageDetail_20' ) start [2025-04-04 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836052', 'tblTempUsageDetail_20' ) end [2025-04-04 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 22:59:22] Production.INFO: ==31255== Releasing lock... [2025-04-04 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 22:59:22] Production.INFO: 41 MB #Memory Used# [2025-04-04 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:00:06 [end_date_ymd] => 2025-04-04 23:00:06 [RateCDR] => 1 ) [2025-04-04 23:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:00:06' and `end` < '2025-04-04 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:00:19] Production.INFO: count ==1724 [2025-04-04 23:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 20:00:06 - End Time 2025-04-04 23:00:06 [2025-04-04 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836058', 'tblTempUsageDetail_20' ) start [2025-04-04 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836058', 'tblTempUsageDetail_20' ) end [2025-04-04 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836058', 'tblTempVendorCDR_20' ) start [2025-04-04 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836058', 'tblTempVendorCDR_20' ) end [2025-04-04 23:00:20] Production.INFO: ProcessCDR(1,14836058,1,1,2) [2025-04-04 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836058', 'tblTempUsageDetail_20' ) start [2025-04-04 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836058', 'tblTempUsageDetail_20' ) end [2025-04-04 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:00:24] Production.INFO: ==31336== Releasing lock... [2025-04-04 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:00:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-04 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:01:05 [end_date_ymd] => 2025-04-04 23:01:05 [RateCDR] => 1 ) [2025-04-04 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:01:05' and `end` < '2025-04-04 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:01:18] Production.INFO: count ==1669 [2025-04-04 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:01:05 - End Time 2025-04-04 23:01:05 [2025-04-04 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836063', 'tblTempUsageDetail_20' ) start [2025-04-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836063', 'tblTempUsageDetail_20' ) end [2025-04-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836063', 'tblTempVendorCDR_20' ) start [2025-04-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836063', 'tblTempVendorCDR_20' ) end [2025-04-04 23:01:19] Production.INFO: ProcessCDR(1,14836063,1,1,2) [2025-04-04 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836063', 'tblTempUsageDetail_20' ) start [2025-04-04 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836063', 'tblTempUsageDetail_20' ) end [2025-04-04 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:01:22] Production.INFO: ==31501== Releasing lock... [2025-04-04 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:01:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:02:05 [end_date_ymd] => 2025-04-04 23:02:05 [RateCDR] => 1 ) [2025-04-04 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:02:05' and `end` < '2025-04-04 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:02:18] Production.INFO: count ==1665 [2025-04-04 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:02:05 - End Time 2025-04-04 23:02:05 [2025-04-04 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836068', 'tblTempUsageDetail_20' ) start [2025-04-04 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836068', 'tblTempUsageDetail_20' ) end [2025-04-04 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836068', 'tblTempVendorCDR_20' ) start [2025-04-04 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836068', 'tblTempVendorCDR_20' ) end [2025-04-04 23:02:19] Production.INFO: ProcessCDR(1,14836068,1,1,2) [2025-04-04 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836068', 'tblTempUsageDetail_20' ) start [2025-04-04 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836068', 'tblTempUsageDetail_20' ) end [2025-04-04 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:02:22] Production.INFO: ==31574== Releasing lock... [2025-04-04 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:02:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:03:05 [end_date_ymd] => 2025-04-04 23:03:05 [RateCDR] => 1 ) [2025-04-04 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:03:05' and `end` < '2025-04-04 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:03:18] Production.INFO: count ==1653 [2025-04-04 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:03:05 - End Time 2025-04-04 23:03:05 [2025-04-04 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836073', 'tblTempUsageDetail_20' ) start [2025-04-04 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836073', 'tblTempUsageDetail_20' ) end [2025-04-04 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836073', 'tblTempVendorCDR_20' ) start [2025-04-04 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836073', 'tblTempVendorCDR_20' ) end [2025-04-04 23:03:18] Production.INFO: ProcessCDR(1,14836073,1,1,2) [2025-04-04 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836073', 'tblTempUsageDetail_20' ) start [2025-04-04 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836073', 'tblTempUsageDetail_20' ) end [2025-04-04 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:03:23] Production.INFO: ==31645== Releasing lock... [2025-04-04 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:03:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:04:05 [end_date_ymd] => 2025-04-04 23:04:05 [RateCDR] => 1 ) [2025-04-04 23: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 20:04:05' and `end` < '2025-04-04 23: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-04 23:04:18] Production.INFO: count ==1653 [2025-04-04 23:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:04:05 - End Time 2025-04-04 23:04:05 [2025-04-04 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836078', 'tblTempUsageDetail_20' ) start [2025-04-04 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836078', 'tblTempUsageDetail_20' ) end [2025-04-04 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836078', 'tblTempVendorCDR_20' ) start [2025-04-04 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836078', 'tblTempVendorCDR_20' ) end [2025-04-04 23:04:19] Production.INFO: ProcessCDR(1,14836078,1,1,2) [2025-04-04 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836078', 'tblTempUsageDetail_20' ) start [2025-04-04 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836078', 'tblTempUsageDetail_20' ) end [2025-04-04 23:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:04:24] Production.INFO: ==31718== Releasing lock... [2025-04-04 23:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:04:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:05:05 [end_date_ymd] => 2025-04-04 23:05:05 [RateCDR] => 1 ) [2025-04-04 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:05:05' and `end` < '2025-04-04 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:05:18] Production.INFO: count ==1646 [2025-04-04 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:05:05 - End Time 2025-04-04 23:05:05 [2025-04-04 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836083', 'tblTempUsageDetail_20' ) start [2025-04-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836083', 'tblTempUsageDetail_20' ) end [2025-04-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836083', 'tblTempVendorCDR_20' ) start [2025-04-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836083', 'tblTempVendorCDR_20' ) end [2025-04-04 23:05:18] Production.INFO: ProcessCDR(1,14836083,1,1,2) [2025-04-04 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836083', 'tblTempUsageDetail_20' ) start [2025-04-04 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836083', 'tblTempUsageDetail_20' ) end [2025-04-04 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:05:22] Production.INFO: ==31870== Releasing lock... [2025-04-04 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:06:04 [end_date_ymd] => 2025-04-04 23:06:04 [RateCDR] => 1 ) [2025-04-04 23:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:06:04' and `end` < '2025-04-04 23:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:06:17] Production.INFO: count ==1642 [2025-04-04 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:06:04 - End Time 2025-04-04 23:06:04 [2025-04-04 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836088', 'tblTempUsageDetail_20' ) start [2025-04-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836088', 'tblTempUsageDetail_20' ) end [2025-04-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836088', 'tblTempVendorCDR_20' ) start [2025-04-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836088', 'tblTempVendorCDR_20' ) end [2025-04-04 23:06:18] Production.INFO: ProcessCDR(1,14836088,1,1,2) [2025-04-04 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836088', 'tblTempUsageDetail_20' ) start [2025-04-04 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836088', 'tblTempUsageDetail_20' ) end [2025-04-04 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:06:21] Production.INFO: ==31939== Releasing lock... [2025-04-04 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:06:21] Production.INFO: 40 MB #Memory Used# [2025-04-04 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:07:05 [end_date_ymd] => 2025-04-04 23:07:05 [RateCDR] => 1 ) [2025-04-04 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:07:05' and `end` < '2025-04-04 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:07:18] Production.INFO: count ==1631 [2025-04-04 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:07:05 - End Time 2025-04-04 23:07:05 [2025-04-04 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836093', 'tblTempUsageDetail_20' ) start [2025-04-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836093', 'tblTempUsageDetail_20' ) end [2025-04-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836093', 'tblTempVendorCDR_20' ) start [2025-04-04 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836093', 'tblTempVendorCDR_20' ) end [2025-04-04 23:07:18] Production.INFO: ProcessCDR(1,14836093,1,1,2) [2025-04-04 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836093', 'tblTempUsageDetail_20' ) start [2025-04-04 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836093', 'tblTempUsageDetail_20' ) end [2025-04-04 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:07:22] Production.INFO: ==32012== Releasing lock... [2025-04-04 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:07:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:08:06 [end_date_ymd] => 2025-04-04 23:08:06 [RateCDR] => 1 ) [2025-04-04 23: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 20:08:06' and `end` < '2025-04-04 23: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-04 23:08:19] Production.INFO: count ==1628 [2025-04-04 23:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:08:06 - End Time 2025-04-04 23:08:06 [2025-04-04 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836098', 'tblTempUsageDetail_20' ) start [2025-04-04 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836098', 'tblTempUsageDetail_20' ) end [2025-04-04 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836098', 'tblTempVendorCDR_20' ) start [2025-04-04 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836098', 'tblTempVendorCDR_20' ) end [2025-04-04 23:08:19] Production.INFO: ProcessCDR(1,14836098,1,1,2) [2025-04-04 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836098', 'tblTempUsageDetail_20' ) start [2025-04-04 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836098', 'tblTempUsageDetail_20' ) end [2025-04-04 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:08:23] Production.INFO: ==32166== Releasing lock... [2025-04-04 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:08:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:09:05 [end_date_ymd] => 2025-04-04 23:09:05 [RateCDR] => 1 ) [2025-04-04 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:09:05' and `end` < '2025-04-04 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:09:18] Production.INFO: count ==1621 [2025-04-04 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:09:05 - End Time 2025-04-04 23:09:05 [2025-04-04 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836103', 'tblTempUsageDetail_20' ) start [2025-04-04 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836103', 'tblTempUsageDetail_20' ) end [2025-04-04 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836103', 'tblTempVendorCDR_20' ) start [2025-04-04 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836103', 'tblTempVendorCDR_20' ) end [2025-04-04 23:09:18] Production.INFO: ProcessCDR(1,14836103,1,1,2) [2025-04-04 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836103', 'tblTempUsageDetail_20' ) start [2025-04-04 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836103', 'tblTempUsageDetail_20' ) end [2025-04-04 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:09:22] Production.INFO: ==32237== Releasing lock... [2025-04-04 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:09:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:10:06 [end_date_ymd] => 2025-04-04 23:10:06 [RateCDR] => 1 ) [2025-04-04 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:10:06' and `end` < '2025-04-04 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:10:19] Production.INFO: count ==1616 [2025-04-04 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:10:06 - End Time 2025-04-04 23:10:06 [2025-04-04 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836109', 'tblTempUsageDetail_20' ) start [2025-04-04 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836109', 'tblTempUsageDetail_20' ) end [2025-04-04 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836109', 'tblTempVendorCDR_20' ) start [2025-04-04 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836109', 'tblTempVendorCDR_20' ) end [2025-04-04 23:10:19] Production.INFO: ProcessCDR(1,14836109,1,1,2) [2025-04-04 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836109', 'tblTempUsageDetail_20' ) start [2025-04-04 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836109', 'tblTempUsageDetail_20' ) end [2025-04-04 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:10:23] Production.INFO: ==32314== Releasing lock... [2025-04-04 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:10:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:11:05 [end_date_ymd] => 2025-04-04 23:11:05 [RateCDR] => 1 ) [2025-04-04 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:11:05' and `end` < '2025-04-04 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:11:18] Production.INFO: count ==1539 [2025-04-04 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:11:05 - End Time 2025-04-04 23:11:05 [2025-04-04 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836114', 'tblTempUsageDetail_20' ) start [2025-04-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836114', 'tblTempUsageDetail_20' ) end [2025-04-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836114', 'tblTempVendorCDR_20' ) start [2025-04-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836114', 'tblTempVendorCDR_20' ) end [2025-04-04 23:11:18] Production.INFO: ProcessCDR(1,14836114,1,1,2) [2025-04-04 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836114', 'tblTempUsageDetail_20' ) start [2025-04-04 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836114', 'tblTempUsageDetail_20' ) end [2025-04-04 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:11:22] Production.INFO: ==32429== Releasing lock... [2025-04-04 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:12:05 [end_date_ymd] => 2025-04-04 23:12:05 [RateCDR] => 1 ) [2025-04-04 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:12:05' and `end` < '2025-04-04 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:12:18] Production.INFO: count ==1534 [2025-04-04 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:12:05 - End Time 2025-04-04 23:12:05 [2025-04-04 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836119', 'tblTempUsageDetail_20' ) start [2025-04-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836119', 'tblTempUsageDetail_20' ) end [2025-04-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836119', 'tblTempVendorCDR_20' ) start [2025-04-04 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836119', 'tblTempVendorCDR_20' ) end [2025-04-04 23:12:19] Production.INFO: ProcessCDR(1,14836119,1,1,2) [2025-04-04 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836119', 'tblTempUsageDetail_20' ) start [2025-04-04 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836119', 'tblTempUsageDetail_20' ) end [2025-04-04 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:12:22] Production.INFO: ==32577== Releasing lock... [2025-04-04 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:12:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:13:05 [end_date_ymd] => 2025-04-04 23:13:05 [RateCDR] => 1 ) [2025-04-04 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:13:05' and `end` < '2025-04-04 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:13:18] Production.INFO: count ==1538 [2025-04-04 23:13:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:13:05 - End Time 2025-04-04 23:13:05 [2025-04-04 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836124', 'tblTempUsageDetail_20' ) start [2025-04-04 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836124', 'tblTempUsageDetail_20' ) end [2025-04-04 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836124', 'tblTempVendorCDR_20' ) start [2025-04-04 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836124', 'tblTempVendorCDR_20' ) end [2025-04-04 23:13:19] Production.INFO: ProcessCDR(1,14836124,1,1,2) [2025-04-04 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836124', 'tblTempUsageDetail_20' ) start [2025-04-04 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836124', 'tblTempUsageDetail_20' ) end [2025-04-04 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:13:22] Production.INFO: ==32650== Releasing lock... [2025-04-04 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:13:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:14:05 [end_date_ymd] => 2025-04-04 23:14:05 [RateCDR] => 1 ) [2025-04-04 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:14:05' and `end` < '2025-04-04 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:14:18] Production.INFO: count ==1538 [2025-04-04 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:14:05 - End Time 2025-04-04 23:14:05 [2025-04-04 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836129', 'tblTempUsageDetail_20' ) start [2025-04-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836129', 'tblTempUsageDetail_20' ) end [2025-04-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836129', 'tblTempVendorCDR_20' ) start [2025-04-04 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836129', 'tblTempVendorCDR_20' ) end [2025-04-04 23:14:19] Production.INFO: ProcessCDR(1,14836129,1,1,2) [2025-04-04 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836129', 'tblTempUsageDetail_20' ) start [2025-04-04 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836129', 'tblTempUsageDetail_20' ) end [2025-04-04 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:14:22] Production.INFO: ==32725== Releasing lock... [2025-04-04 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:14:22] Production.INFO: 40 MB #Memory Used# [2025-04-04 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:15:05 [end_date_ymd] => 2025-04-04 23:15:05 [RateCDR] => 1 ) [2025-04-04 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:15:05' and `end` < '2025-04-04 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:15:18] Production.INFO: count ==1545 [2025-04-04 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:15:05 - End Time 2025-04-04 23:15:05 [2025-04-04 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836134', 'tblTempUsageDetail_20' ) start [2025-04-04 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836134', 'tblTempUsageDetail_20' ) end [2025-04-04 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836134', 'tblTempVendorCDR_20' ) start [2025-04-04 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836134', 'tblTempVendorCDR_20' ) end [2025-04-04 23:15:19] Production.INFO: ProcessCDR(1,14836134,1,1,2) [2025-04-04 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836134', 'tblTempUsageDetail_20' ) start [2025-04-04 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836134', 'tblTempUsageDetail_20' ) end [2025-04-04 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:15:22] Production.INFO: ==428== Releasing lock... [2025-04-04 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:15:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:16:05 [end_date_ymd] => 2025-04-04 23:16:05 [RateCDR] => 1 ) [2025-04-04 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:16:05' and `end` < '2025-04-04 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:16:18] Production.INFO: count ==1545 [2025-04-04 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:16:05 - End Time 2025-04-04 23:16:05 [2025-04-04 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836139', 'tblTempUsageDetail_20' ) start [2025-04-04 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836139', 'tblTempUsageDetail_20' ) end [2025-04-04 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836139', 'tblTempVendorCDR_20' ) start [2025-04-04 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836139', 'tblTempVendorCDR_20' ) end [2025-04-04 23:16:18] Production.INFO: ProcessCDR(1,14836139,1,1,2) [2025-04-04 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836139', 'tblTempUsageDetail_20' ) start [2025-04-04 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836139', 'tblTempUsageDetail_20' ) end [2025-04-04 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:16:22] Production.INFO: ==503== Releasing lock... [2025-04-04 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:16:22] Production.INFO: 40 MB #Memory Used# [2025-04-04 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:17:06 [end_date_ymd] => 2025-04-04 23:17:06 [RateCDR] => 1 ) [2025-04-04 23: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 20:17:06' and `end` < '2025-04-04 23: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-04 23:17:18] Production.INFO: count ==1540 [2025-04-04 23:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:17:06 - End Time 2025-04-04 23:17:06 [2025-04-04 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836144', 'tblTempUsageDetail_20' ) start [2025-04-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836144', 'tblTempUsageDetail_20' ) end [2025-04-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836144', 'tblTempVendorCDR_20' ) start [2025-04-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836144', 'tblTempVendorCDR_20' ) end [2025-04-04 23:17:19] Production.INFO: ProcessCDR(1,14836144,1,1,2) [2025-04-04 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836144', 'tblTempUsageDetail_20' ) start [2025-04-04 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836144', 'tblTempUsageDetail_20' ) end [2025-04-04 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:17:23] Production.INFO: ==575== Releasing lock... [2025-04-04 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:17:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:18:05 [end_date_ymd] => 2025-04-04 23:18:05 [RateCDR] => 1 ) [2025-04-04 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:18:05' and `end` < '2025-04-04 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:18:18] Production.INFO: count ==1538 [2025-04-04 23:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:18:05 - End Time 2025-04-04 23:18:05 [2025-04-04 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836149', 'tblTempUsageDetail_20' ) start [2025-04-04 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836149', 'tblTempUsageDetail_20' ) end [2025-04-04 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836149', 'tblTempVendorCDR_20' ) start [2025-04-04 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836149', 'tblTempVendorCDR_20' ) end [2025-04-04 23:18:19] Production.INFO: ProcessCDR(1,14836149,1,1,2) [2025-04-04 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836149', 'tblTempUsageDetail_20' ) start [2025-04-04 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836149', 'tblTempUsageDetail_20' ) end [2025-04-04 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:18:22] Production.INFO: ==663== Releasing lock... [2025-04-04 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:19:05 [end_date_ymd] => 2025-04-04 23:19:05 [RateCDR] => 1 ) [2025-04-04 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:19:05' and `end` < '2025-04-04 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:19:18] Production.INFO: count ==1531 [2025-04-04 23:19:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:19:05 - End Time 2025-04-04 23:19:05 [2025-04-04 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836154', 'tblTempUsageDetail_20' ) start [2025-04-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836154', 'tblTempUsageDetail_20' ) end [2025-04-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836154', 'tblTempVendorCDR_20' ) start [2025-04-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836154', 'tblTempVendorCDR_20' ) end [2025-04-04 23:19:19] Production.INFO: ProcessCDR(1,14836154,1,1,2) [2025-04-04 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836154', 'tblTempUsageDetail_20' ) start [2025-04-04 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836154', 'tblTempUsageDetail_20' ) end [2025-04-04 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:19:22] Production.INFO: ==757== Releasing lock... [2025-04-04 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:19:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-04 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:20:06 [end_date_ymd] => 2025-04-04 23:20:06 [RateCDR] => 1 ) [2025-04-04 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:20:06' and `end` < '2025-04-04 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:20:19] Production.INFO: count ==1534 [2025-04-04 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:20:06 - End Time 2025-04-04 23:20:06 [2025-04-04 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836159', 'tblTempUsageDetail_20' ) start [2025-04-04 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836159', 'tblTempUsageDetail_20' ) end [2025-04-04 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836159', 'tblTempVendorCDR_20' ) start [2025-04-04 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836159', 'tblTempVendorCDR_20' ) end [2025-04-04 23:20:20] Production.INFO: ProcessCDR(1,14836159,1,1,2) [2025-04-04 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836159', 'tblTempUsageDetail_20' ) start [2025-04-04 23:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836159', 'tblTempUsageDetail_20' ) end [2025-04-04 23:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:20:25] Production.INFO: ==831== Releasing lock... [2025-04-04 23:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:20:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:21:06 [end_date_ymd] => 2025-04-04 23:21:06 [RateCDR] => 1 ) [2025-04-04 23: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-04 20:21:06' and `end` < '2025-04-04 23: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-04 23:21:19] Production.INFO: count ==1529 [2025-04-04 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:21:06 - End Time 2025-04-04 23:21:06 [2025-04-04 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836165', 'tblTempUsageDetail_20' ) start [2025-04-04 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836165', 'tblTempUsageDetail_20' ) end [2025-04-04 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836165', 'tblTempVendorCDR_20' ) start [2025-04-04 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836165', 'tblTempVendorCDR_20' ) end [2025-04-04 23:21:19] Production.INFO: ProcessCDR(1,14836165,1,1,2) [2025-04-04 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836165', 'tblTempUsageDetail_20' ) start [2025-04-04 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836165', 'tblTempUsageDetail_20' ) end [2025-04-04 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:21:23] Production.INFO: ==913== Releasing lock... [2025-04-04 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:21:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:22:05 [end_date_ymd] => 2025-04-04 23:22:05 [RateCDR] => 1 ) [2025-04-04 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:22:05' and `end` < '2025-04-04 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:22:18] Production.INFO: count ==1525 [2025-04-04 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:22:05 - End Time 2025-04-04 23:22:05 [2025-04-04 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836170', 'tblTempUsageDetail_20' ) start [2025-04-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836170', 'tblTempUsageDetail_20' ) end [2025-04-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836170', 'tblTempVendorCDR_20' ) start [2025-04-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836170', 'tblTempVendorCDR_20' ) end [2025-04-04 23:22:18] Production.INFO: ProcessCDR(1,14836170,1,1,2) [2025-04-04 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836170', 'tblTempUsageDetail_20' ) start [2025-04-04 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836170', 'tblTempUsageDetail_20' ) end [2025-04-04 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:22:24] Production.INFO: ==983== Releasing lock... [2025-04-04 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:22:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:23:05 [end_date_ymd] => 2025-04-04 23:23:05 [RateCDR] => 1 ) [2025-04-04 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:23:05' and `end` < '2025-04-04 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:23:18] Production.INFO: count ==1527 [2025-04-04 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:23:05 - End Time 2025-04-04 23:23:05 [2025-04-04 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836175', 'tblTempUsageDetail_20' ) start [2025-04-04 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836175', 'tblTempUsageDetail_20' ) end [2025-04-04 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836175', 'tblTempVendorCDR_20' ) start [2025-04-04 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836175', 'tblTempVendorCDR_20' ) end [2025-04-04 23:23:18] Production.INFO: ProcessCDR(1,14836175,1,1,2) [2025-04-04 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836175', 'tblTempUsageDetail_20' ) start [2025-04-04 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836175', 'tblTempUsageDetail_20' ) end [2025-04-04 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:23:21] Production.INFO: ==1056== Releasing lock... [2025-04-04 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:23:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:24:05 [end_date_ymd] => 2025-04-04 23:24:05 [RateCDR] => 1 ) [2025-04-04 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:24:05' and `end` < '2025-04-04 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:24:17] Production.INFO: count ==1511 [2025-04-04 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:24:05 - End Time 2025-04-04 23:24:05 [2025-04-04 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836180', 'tblTempUsageDetail_20' ) start [2025-04-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836180', 'tblTempUsageDetail_20' ) end [2025-04-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836180', 'tblTempVendorCDR_20' ) start [2025-04-04 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836180', 'tblTempVendorCDR_20' ) end [2025-04-04 23:24:18] Production.INFO: ProcessCDR(1,14836180,1,1,2) [2025-04-04 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836180', 'tblTempUsageDetail_20' ) start [2025-04-04 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836180', 'tblTempUsageDetail_20' ) end [2025-04-04 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:24:21] Production.INFO: ==1138== Releasing lock... [2025-04-04 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:24:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:25:05 [end_date_ymd] => 2025-04-04 23:25:05 [RateCDR] => 1 ) [2025-04-04 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:25:05' and `end` < '2025-04-04 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:25:18] Production.INFO: count ==1495 [2025-04-04 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:25:05 - End Time 2025-04-04 23:25:05 [2025-04-04 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836185', 'tblTempUsageDetail_20' ) start [2025-04-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836185', 'tblTempUsageDetail_20' ) end [2025-04-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836185', 'tblTempVendorCDR_20' ) start [2025-04-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836185', 'tblTempVendorCDR_20' ) end [2025-04-04 23:25:18] Production.INFO: ProcessCDR(1,14836185,1,1,2) [2025-04-04 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836185', 'tblTempUsageDetail_20' ) start [2025-04-04 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836185', 'tblTempUsageDetail_20' ) end [2025-04-04 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:25:22] Production.INFO: ==1213== Releasing lock... [2025-04-04 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:25:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:26:06 [end_date_ymd] => 2025-04-04 23:26:06 [RateCDR] => 1 ) [2025-04-04 23: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-04 20:26:06' and `end` < '2025-04-04 23: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-04 23:26:18] Production.INFO: count ==1490 [2025-04-04 23:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:26:06 - End Time 2025-04-04 23:26:06 [2025-04-04 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836190', 'tblTempUsageDetail_20' ) start [2025-04-04 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836190', 'tblTempUsageDetail_20' ) end [2025-04-04 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836190', 'tblTempVendorCDR_20' ) start [2025-04-04 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836190', 'tblTempVendorCDR_20' ) end [2025-04-04 23:26:19] Production.INFO: ProcessCDR(1,14836190,1,1,2) [2025-04-04 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836190', 'tblTempUsageDetail_20' ) start [2025-04-04 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836190', 'tblTempUsageDetail_20' ) end [2025-04-04 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:26:22] Production.INFO: ==1299== Releasing lock... [2025-04-04 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:26:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:27:05 [end_date_ymd] => 2025-04-04 23:27:05 [RateCDR] => 1 ) [2025-04-04 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:27:05' and `end` < '2025-04-04 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:27:18] Production.INFO: count ==1487 [2025-04-04 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:27:05 - End Time 2025-04-04 23:27:05 [2025-04-04 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836195', 'tblTempUsageDetail_20' ) start [2025-04-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836195', 'tblTempUsageDetail_20' ) end [2025-04-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836195', 'tblTempVendorCDR_20' ) start [2025-04-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836195', 'tblTempVendorCDR_20' ) end [2025-04-04 23:27:18] Production.INFO: ProcessCDR(1,14836195,1,1,2) [2025-04-04 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836195', 'tblTempUsageDetail_20' ) start [2025-04-04 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836195', 'tblTempUsageDetail_20' ) end [2025-04-04 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:27:22] Production.INFO: ==1408== Releasing lock... [2025-04-04 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:28:05 [end_date_ymd] => 2025-04-04 23:28:05 [RateCDR] => 1 ) [2025-04-04 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:28:05' and `end` < '2025-04-04 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:28:18] Production.INFO: count ==1487 [2025-04-04 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:28:05 - End Time 2025-04-04 23:28:05 [2025-04-04 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836200', 'tblTempUsageDetail_20' ) start [2025-04-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836200', 'tblTempUsageDetail_20' ) end [2025-04-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836200', 'tblTempVendorCDR_20' ) start [2025-04-04 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836200', 'tblTempVendorCDR_20' ) end [2025-04-04 23:28:18] Production.INFO: ProcessCDR(1,14836200,1,1,2) [2025-04-04 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836200', 'tblTempUsageDetail_20' ) start [2025-04-04 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836200', 'tblTempUsageDetail_20' ) end [2025-04-04 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:28:21] Production.INFO: ==1481== Releasing lock... [2025-04-04 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:28:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:29:05 [end_date_ymd] => 2025-04-04 23:29:05 [RateCDR] => 1 ) [2025-04-04 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:29:05' and `end` < '2025-04-04 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:29:18] Production.INFO: count ==1481 [2025-04-04 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:29:05 - End Time 2025-04-04 23:29:05 [2025-04-04 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836205', 'tblTempUsageDetail_20' ) start [2025-04-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836205', 'tblTempUsageDetail_20' ) end [2025-04-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836205', 'tblTempVendorCDR_20' ) start [2025-04-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836205', 'tblTempVendorCDR_20' ) end [2025-04-04 23:29:18] Production.INFO: ProcessCDR(1,14836205,1,1,2) [2025-04-04 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836205', 'tblTempUsageDetail_20' ) start [2025-04-04 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836205', 'tblTempUsageDetail_20' ) end [2025-04-04 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:29:22] Production.INFO: ==1590== Releasing lock... [2025-04-04 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:29:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:30:06 [end_date_ymd] => 2025-04-04 23:30:06 [RateCDR] => 1 ) [2025-04-04 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:30:06' and `end` < '2025-04-04 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:30:18] Production.INFO: count ==1482 [2025-04-04 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:30:06 - End Time 2025-04-04 23:30:06 [2025-04-04 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836211', 'tblTempUsageDetail_20' ) start [2025-04-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836211', 'tblTempUsageDetail_20' ) end [2025-04-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836211', 'tblTempVendorCDR_20' ) start [2025-04-04 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836211', 'tblTempVendorCDR_20' ) end [2025-04-04 23:30:19] Production.INFO: ProcessCDR(1,14836211,1,1,2) [2025-04-04 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836211', 'tblTempUsageDetail_20' ) start [2025-04-04 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836211', 'tblTempUsageDetail_20' ) end [2025-04-04 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:30:23] Production.INFO: ==1664== Releasing lock... [2025-04-04 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:30:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:31:05 [end_date_ymd] => 2025-04-04 23:31:05 [RateCDR] => 1 ) [2025-04-04 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:31:05' and `end` < '2025-04-04 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:31:18] Production.INFO: count ==1458 [2025-04-04 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:31:05 - End Time 2025-04-04 23:31:05 [2025-04-04 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836216', 'tblTempUsageDetail_20' ) start [2025-04-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836216', 'tblTempUsageDetail_20' ) end [2025-04-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836216', 'tblTempVendorCDR_20' ) start [2025-04-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836216', 'tblTempVendorCDR_20' ) end [2025-04-04 23:31:18] Production.INFO: ProcessCDR(1,14836216,1,1,2) [2025-04-04 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836216', 'tblTempUsageDetail_20' ) start [2025-04-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836216', 'tblTempUsageDetail_20' ) end [2025-04-04 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:31:21] Production.INFO: ==1738== Releasing lock... [2025-04-04 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:31:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-04 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:32:05 [end_date_ymd] => 2025-04-04 23:32:05 [RateCDR] => 1 ) [2025-04-04 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:32:05' and `end` < '2025-04-04 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:32:18] Production.INFO: count ==1462 [2025-04-04 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:32:05 - End Time 2025-04-04 23:32:05 [2025-04-04 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836221', 'tblTempUsageDetail_20' ) start [2025-04-04 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836221', 'tblTempUsageDetail_20' ) end [2025-04-04 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836221', 'tblTempVendorCDR_20' ) start [2025-04-04 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836221', 'tblTempVendorCDR_20' ) end [2025-04-04 23:32:19] Production.INFO: ProcessCDR(1,14836221,1,1,2) [2025-04-04 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836221', 'tblTempUsageDetail_20' ) start [2025-04-04 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836221', 'tblTempUsageDetail_20' ) end [2025-04-04 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:32:22] Production.INFO: ==1810== Releasing lock... [2025-04-04 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:32:22] Production.INFO: 39 MB #Memory Used# [2025-04-04 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:33:05 [end_date_ymd] => 2025-04-04 23:33:05 [RateCDR] => 1 ) [2025-04-04 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:33:05' and `end` < '2025-04-04 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:33:17] Production.INFO: count ==1449 [2025-04-04 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:33:05 - End Time 2025-04-04 23:33:05 [2025-04-04 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836226', 'tblTempUsageDetail_20' ) start [2025-04-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836226', 'tblTempUsageDetail_20' ) end [2025-04-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836226', 'tblTempVendorCDR_20' ) start [2025-04-04 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836226', 'tblTempVendorCDR_20' ) end [2025-04-04 23:33:18] Production.INFO: ProcessCDR(1,14836226,1,1,2) [2025-04-04 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836226', 'tblTempUsageDetail_20' ) start [2025-04-04 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836226', 'tblTempUsageDetail_20' ) end [2025-04-04 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:33:23] Production.INFO: ==1884== Releasing lock... [2025-04-04 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:33:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:34:05 [end_date_ymd] => 2025-04-04 23:34:05 [RateCDR] => 1 ) [2025-04-04 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:34:05' and `end` < '2025-04-04 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:34:18] Production.INFO: count ==1457 [2025-04-04 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:34:05 - End Time 2025-04-04 23:34:05 [2025-04-04 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836231', 'tblTempUsageDetail_20' ) start [2025-04-04 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836231', 'tblTempUsageDetail_20' ) end [2025-04-04 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836231', 'tblTempVendorCDR_20' ) start [2025-04-04 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836231', 'tblTempVendorCDR_20' ) end [2025-04-04 23:34:19] Production.INFO: ProcessCDR(1,14836231,1,1,2) [2025-04-04 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836231', 'tblTempUsageDetail_20' ) start [2025-04-04 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836231', 'tblTempUsageDetail_20' ) end [2025-04-04 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:34:22] Production.INFO: ==1965== Releasing lock... [2025-04-04 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:34:22] Production.INFO: 39 MB #Memory Used# [2025-04-04 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:35:05 [end_date_ymd] => 2025-04-04 23:35:05 [RateCDR] => 1 ) [2025-04-04 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:35:05' and `end` < '2025-04-04 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:35:18] Production.INFO: count ==1531 [2025-04-04 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:35:05 - End Time 2025-04-04 23:35:05 [2025-04-04 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836236', 'tblTempUsageDetail_20' ) start [2025-04-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836236', 'tblTempUsageDetail_20' ) end [2025-04-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836236', 'tblTempVendorCDR_20' ) start [2025-04-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836236', 'tblTempVendorCDR_20' ) end [2025-04-04 23:35:18] Production.INFO: ProcessCDR(1,14836236,1,1,2) [2025-04-04 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836236', 'tblTempUsageDetail_20' ) start [2025-04-04 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836236', 'tblTempUsageDetail_20' ) end [2025-04-04 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:35:22] Production.INFO: ==2036== Releasing lock... [2025-04-04 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:35:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-04 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:36:05 [end_date_ymd] => 2025-04-04 23:36:05 [RateCDR] => 1 ) [2025-04-04 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:36:05' and `end` < '2025-04-04 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:36:18] Production.INFO: count ==1557 [2025-04-04 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:36:05 - End Time 2025-04-04 23:36:05 [2025-04-04 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836241', 'tblTempUsageDetail_20' ) start [2025-04-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836241', 'tblTempUsageDetail_20' ) end [2025-04-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836241', 'tblTempVendorCDR_20' ) start [2025-04-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836241', 'tblTempVendorCDR_20' ) end [2025-04-04 23:36:19] Production.INFO: ProcessCDR(1,14836241,1,1,2) [2025-04-04 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836241', 'tblTempUsageDetail_20' ) start [2025-04-04 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836241', 'tblTempUsageDetail_20' ) end [2025-04-04 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:36:23] Production.INFO: ==2111== Releasing lock... [2025-04-04 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:36:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-04 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:37:06 [end_date_ymd] => 2025-04-04 23:37:06 [RateCDR] => 1 ) [2025-04-04 23: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-04 20:37:06' and `end` < '2025-04-04 23: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-04 23:37:19] Production.INFO: count ==1582 [2025-04-04 23:37:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:37:06 - End Time 2025-04-04 23:37:06 [2025-04-04 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836246', 'tblTempUsageDetail_20' ) start [2025-04-04 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836246', 'tblTempUsageDetail_20' ) end [2025-04-04 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836246', 'tblTempVendorCDR_20' ) start [2025-04-04 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836246', 'tblTempVendorCDR_20' ) end [2025-04-04 23:37:19] Production.INFO: ProcessCDR(1,14836246,1,1,2) [2025-04-04 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836246', 'tblTempUsageDetail_20' ) start [2025-04-04 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836246', 'tblTempUsageDetail_20' ) end [2025-04-04 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:37:23] Production.INFO: ==2180== Releasing lock... [2025-04-04 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:37:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:38:05 [end_date_ymd] => 2025-04-04 23:38:05 [RateCDR] => 1 ) [2025-04-04 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:38:05' and `end` < '2025-04-04 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:38:18] Production.INFO: count ==1579 [2025-04-04 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:38:05 - End Time 2025-04-04 23:38:05 [2025-04-04 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836251', 'tblTempUsageDetail_20' ) start [2025-04-04 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836251', 'tblTempUsageDetail_20' ) end [2025-04-04 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836251', 'tblTempVendorCDR_20' ) start [2025-04-04 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836251', 'tblTempVendorCDR_20' ) end [2025-04-04 23:38:19] Production.INFO: ProcessCDR(1,14836251,1,1,2) [2025-04-04 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836251', 'tblTempUsageDetail_20' ) start [2025-04-04 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836251', 'tblTempUsageDetail_20' ) end [2025-04-04 23:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:38:24] Production.INFO: ==2256== Releasing lock... [2025-04-04 23:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:38:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:39:06 [end_date_ymd] => 2025-04-04 23:39:06 [RateCDR] => 1 ) [2025-04-04 23:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:39:06' and `end` < '2025-04-04 23:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:39:19] Production.INFO: count ==1620 [2025-04-04 23:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:39:06 - End Time 2025-04-04 23:39:06 [2025-04-04 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836256', 'tblTempUsageDetail_20' ) start [2025-04-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836256', 'tblTempUsageDetail_20' ) end [2025-04-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836256', 'tblTempVendorCDR_20' ) start [2025-04-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836256', 'tblTempVendorCDR_20' ) end [2025-04-04 23:39:19] Production.INFO: ProcessCDR(1,14836256,1,1,2) [2025-04-04 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836256', 'tblTempUsageDetail_20' ) start [2025-04-04 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836256', 'tblTempUsageDetail_20' ) end [2025-04-04 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:39:23] Production.INFO: ==2333== Releasing lock... [2025-04-04 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:39:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:40:06 [end_date_ymd] => 2025-04-04 23:40:06 [RateCDR] => 1 ) [2025-04-04 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:40:06' and `end` < '2025-04-04 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:40:19] Production.INFO: count ==1653 [2025-04-04 23:40:20] Production.ERROR: pbx CDR StartTime 2025-04-04 20:40:06 - End Time 2025-04-04 23:40:06 [2025-04-04 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836262', 'tblTempUsageDetail_20' ) start [2025-04-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836262', 'tblTempUsageDetail_20' ) end [2025-04-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836262', 'tblTempVendorCDR_20' ) start [2025-04-04 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836262', 'tblTempVendorCDR_20' ) end [2025-04-04 23:40:20] Production.INFO: ProcessCDR(1,14836262,1,1,2) [2025-04-04 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836262', 'tblTempUsageDetail_20' ) start [2025-04-04 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836262', 'tblTempUsageDetail_20' ) end [2025-04-04 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:40:23] Production.INFO: ==2403== Releasing lock... [2025-04-04 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:40:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:41:04 [end_date_ymd] => 2025-04-04 23:41:04 [RateCDR] => 1 ) [2025-04-04 23: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-04 20:41:04' and `end` < '2025-04-04 23: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-04 23:41:17] Production.INFO: count ==1686 [2025-04-04 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:41:04 - End Time 2025-04-04 23:41:04 [2025-04-04 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836267', 'tblTempUsageDetail_20' ) start [2025-04-04 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836267', 'tblTempUsageDetail_20' ) end [2025-04-04 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836267', 'tblTempVendorCDR_20' ) start [2025-04-04 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836267', 'tblTempVendorCDR_20' ) end [2025-04-04 23:41:18] Production.INFO: ProcessCDR(1,14836267,1,1,2) [2025-04-04 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836267', 'tblTempUsageDetail_20' ) start [2025-04-04 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836267', 'tblTempUsageDetail_20' ) end [2025-04-04 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:41:21] Production.INFO: ==2479== Releasing lock... [2025-04-04 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:41:21] Production.INFO: 41 MB #Memory Used# [2025-04-04 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:42:05 [end_date_ymd] => 2025-04-04 23:42:05 [RateCDR] => 1 ) [2025-04-04 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:42:05' and `end` < '2025-04-04 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:42:18] Production.INFO: count ==1686 [2025-04-04 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:42:05 - End Time 2025-04-04 23:42:05 [2025-04-04 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836272', 'tblTempUsageDetail_20' ) start [2025-04-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836272', 'tblTempUsageDetail_20' ) end [2025-04-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836272', 'tblTempVendorCDR_20' ) start [2025-04-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836272', 'tblTempVendorCDR_20' ) end [2025-04-04 23:42:19] Production.INFO: ProcessCDR(1,14836272,1,1,2) [2025-04-04 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836272', 'tblTempUsageDetail_20' ) start [2025-04-04 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836272', 'tblTempUsageDetail_20' ) end [2025-04-04 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:42:22] Production.INFO: ==2593== Releasing lock... [2025-04-04 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:42:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:43:06 [end_date_ymd] => 2025-04-04 23:43:06 [RateCDR] => 1 ) [2025-04-04 23: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 20:43:06' and `end` < '2025-04-04 23: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-04 23:43:19] Production.INFO: count ==1685 [2025-04-04 23:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:43:06 - End Time 2025-04-04 23:43:06 [2025-04-04 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836277', 'tblTempUsageDetail_20' ) start [2025-04-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836277', 'tblTempUsageDetail_20' ) end [2025-04-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836277', 'tblTempVendorCDR_20' ) start [2025-04-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836277', 'tblTempVendorCDR_20' ) end [2025-04-04 23:43:19] Production.INFO: ProcessCDR(1,14836277,1,1,2) [2025-04-04 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836277', 'tblTempUsageDetail_20' ) start [2025-04-04 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836277', 'tblTempUsageDetail_20' ) end [2025-04-04 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:43:23] Production.INFO: ==2663== Releasing lock... [2025-04-04 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:43:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:44:05 [end_date_ymd] => 2025-04-04 23:44:05 [RateCDR] => 1 ) [2025-04-04 23: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 20:44:05' and `end` < '2025-04-04 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:44:18] Production.INFO: count ==1685 [2025-04-04 23:44:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:44:05 - End Time 2025-04-04 23:44:05 [2025-04-04 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836282', 'tblTempUsageDetail_20' ) start [2025-04-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836282', 'tblTempUsageDetail_20' ) end [2025-04-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836282', 'tblTempVendorCDR_20' ) start [2025-04-04 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836282', 'tblTempVendorCDR_20' ) end [2025-04-04 23:44:19] Production.INFO: ProcessCDR(1,14836282,1,1,2) [2025-04-04 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836282', 'tblTempUsageDetail_20' ) start [2025-04-04 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836282', 'tblTempUsageDetail_20' ) end [2025-04-04 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:44:22] Production.INFO: ==2737== Releasing lock... [2025-04-04 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:44:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:45:05 [end_date_ymd] => 2025-04-04 23:45:05 [RateCDR] => 1 ) [2025-04-04 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:45:05' and `end` < '2025-04-04 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:45:18] Production.INFO: count ==1684 [2025-04-04 23:45:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:45:05 - End Time 2025-04-04 23:45:05 [2025-04-04 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836287', 'tblTempUsageDetail_20' ) start [2025-04-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836287', 'tblTempUsageDetail_20' ) end [2025-04-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836287', 'tblTempVendorCDR_20' ) start [2025-04-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836287', 'tblTempVendorCDR_20' ) end [2025-04-04 23:45:19] Production.INFO: ProcessCDR(1,14836287,1,1,2) [2025-04-04 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836287', 'tblTempUsageDetail_20' ) start [2025-04-04 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836287', 'tblTempUsageDetail_20' ) end [2025-04-04 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:45:22] Production.INFO: ==2808== Releasing lock... [2025-04-04 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:46:05 [end_date_ymd] => 2025-04-04 23:46:05 [RateCDR] => 1 ) [2025-04-04 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:46:05' and `end` < '2025-04-04 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:46:18] Production.INFO: count ==1683 [2025-04-04 23:46:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:46:05 - End Time 2025-04-04 23:46:05 [2025-04-04 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836292', 'tblTempUsageDetail_20' ) start [2025-04-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836292', 'tblTempUsageDetail_20' ) end [2025-04-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836292', 'tblTempVendorCDR_20' ) start [2025-04-04 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836292', 'tblTempVendorCDR_20' ) end [2025-04-04 23:46:19] Production.INFO: ProcessCDR(1,14836292,1,1,2) [2025-04-04 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836292', 'tblTempUsageDetail_20' ) start [2025-04-04 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836292', 'tblTempUsageDetail_20' ) end [2025-04-04 23:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:46:24] Production.INFO: ==2881== Releasing lock... [2025-04-04 23:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:46:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:47:05 [end_date_ymd] => 2025-04-04 23:47:05 [RateCDR] => 1 ) [2025-04-04 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:47:05' and `end` < '2025-04-04 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:47:18] Production.INFO: count ==1672 [2025-04-04 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:47:05 - End Time 2025-04-04 23:47:05 [2025-04-04 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836297', 'tblTempUsageDetail_20' ) start [2025-04-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836297', 'tblTempUsageDetail_20' ) end [2025-04-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836297', 'tblTempVendorCDR_20' ) start [2025-04-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836297', 'tblTempVendorCDR_20' ) end [2025-04-04 23:47:18] Production.INFO: ProcessCDR(1,14836297,1,1,2) [2025-04-04 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836297', 'tblTempUsageDetail_20' ) start [2025-04-04 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836297', 'tblTempUsageDetail_20' ) end [2025-04-04 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:47:22] Production.INFO: ==2954== Releasing lock... [2025-04-04 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:47:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:48:05 [end_date_ymd] => 2025-04-04 23:48:05 [RateCDR] => 1 ) [2025-04-04 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:48:05' and `end` < '2025-04-04 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:48:18] Production.INFO: count ==1674 [2025-04-04 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:48:05 - End Time 2025-04-04 23:48:05 [2025-04-04 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836302', 'tblTempUsageDetail_20' ) start [2025-04-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836302', 'tblTempUsageDetail_20' ) end [2025-04-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836302', 'tblTempVendorCDR_20' ) start [2025-04-04 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836302', 'tblTempVendorCDR_20' ) end [2025-04-04 23:48:18] Production.INFO: ProcessCDR(1,14836302,1,1,2) [2025-04-04 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836302', 'tblTempUsageDetail_20' ) start [2025-04-04 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836302', 'tblTempUsageDetail_20' ) end [2025-04-04 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:48:22] Production.INFO: ==3025== Releasing lock... [2025-04-04 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:49:05 [end_date_ymd] => 2025-04-04 23:49:05 [RateCDR] => 1 ) [2025-04-04 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:49:05' and `end` < '2025-04-04 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:49:18] Production.INFO: count ==1667 [2025-04-04 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 20:49:05 - End Time 2025-04-04 23:49:05 [2025-04-04 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836307', 'tblTempUsageDetail_20' ) start [2025-04-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836307', 'tblTempUsageDetail_20' ) end [2025-04-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836307', 'tblTempVendorCDR_20' ) start [2025-04-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836307', 'tblTempVendorCDR_20' ) end [2025-04-04 23:49:18] Production.INFO: ProcessCDR(1,14836307,1,1,2) [2025-04-04 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836307', 'tblTempUsageDetail_20' ) start [2025-04-04 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836307', 'tblTempUsageDetail_20' ) end [2025-04-04 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:49:22] Production.INFO: ==3099== Releasing lock... [2025-04-04 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:49:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:50:06 [end_date_ymd] => 2025-04-04 23:50:06 [RateCDR] => 1 ) [2025-04-04 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:50:06' and `end` < '2025-04-04 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:50:19] Production.INFO: count ==1665 [2025-04-04 23:50:20] Production.ERROR: pbx CDR StartTime 2025-04-04 20:50:06 - End Time 2025-04-04 23:50:06 [2025-04-04 23:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836313', 'tblTempUsageDetail_20' ) start [2025-04-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836313', 'tblTempUsageDetail_20' ) end [2025-04-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836313', 'tblTempVendorCDR_20' ) start [2025-04-04 23:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836313', 'tblTempVendorCDR_20' ) end [2025-04-04 23:50:20] Production.INFO: ProcessCDR(1,14836313,1,1,2) [2025-04-04 23:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836313', 'tblTempUsageDetail_20' ) start [2025-04-04 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836313', 'tblTempUsageDetail_20' ) end [2025-04-04 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:50:23] Production.INFO: ==3175== Releasing lock... [2025-04-04 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:50:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-04 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:51:06 [end_date_ymd] => 2025-04-04 23:51:06 [RateCDR] => 1 ) [2025-04-04 23:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:51:06' and `end` < '2025-04-04 23: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-04 23:51:18] Production.INFO: count ==1622 [2025-04-04 23:51:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:51:06 - End Time 2025-04-04 23:51:06 [2025-04-04 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836318', 'tblTempUsageDetail_20' ) start [2025-04-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836318', 'tblTempUsageDetail_20' ) end [2025-04-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836318', 'tblTempVendorCDR_20' ) start [2025-04-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836318', 'tblTempVendorCDR_20' ) end [2025-04-04 23:51:19] Production.INFO: ProcessCDR(1,14836318,1,1,2) [2025-04-04 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836318', 'tblTempUsageDetail_20' ) start [2025-04-04 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836318', 'tblTempUsageDetail_20' ) end [2025-04-04 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:51:22] Production.INFO: ==3250== Releasing lock... [2025-04-04 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:51:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:52:06 [end_date_ymd] => 2025-04-04 23:52:06 [RateCDR] => 1 ) [2025-04-04 23: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-04 20:52:06' and `end` < '2025-04-04 23: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-04 23:52:19] Production.INFO: count ==1620 [2025-04-04 23:52:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:52:06 - End Time 2025-04-04 23:52:06 [2025-04-04 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836323', 'tblTempUsageDetail_20' ) start [2025-04-04 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836323', 'tblTempUsageDetail_20' ) end [2025-04-04 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836323', 'tblTempVendorCDR_20' ) start [2025-04-04 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836323', 'tblTempVendorCDR_20' ) end [2025-04-04 23:52:19] Production.INFO: ProcessCDR(1,14836323,1,1,2) [2025-04-04 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836323', 'tblTempUsageDetail_20' ) start [2025-04-04 23:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836323', 'tblTempUsageDetail_20' ) end [2025-04-04 23:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:52:24] Production.INFO: ==3321== Releasing lock... [2025-04-04 23:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:52:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:53:06 [end_date_ymd] => 2025-04-04 23:53:06 [RateCDR] => 1 ) [2025-04-04 23: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 20:53:06' and `end` < '2025-04-04 23: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-04 23:53:18] Production.INFO: count ==1615 [2025-04-04 23:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:53:06 - End Time 2025-04-04 23:53:06 [2025-04-04 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836328', 'tblTempUsageDetail_20' ) start [2025-04-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836328', 'tblTempUsageDetail_20' ) end [2025-04-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836328', 'tblTempVendorCDR_20' ) start [2025-04-04 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836328', 'tblTempVendorCDR_20' ) end [2025-04-04 23:53:19] Production.INFO: ProcessCDR(1,14836328,1,1,2) [2025-04-04 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836328', 'tblTempUsageDetail_20' ) start [2025-04-04 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836328', 'tblTempUsageDetail_20' ) end [2025-04-04 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:53:22] Production.INFO: ==3400== Releasing lock... [2025-04-04 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:53:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-04 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:54:05 [end_date_ymd] => 2025-04-04 23:54:05 [RateCDR] => 1 ) [2025-04-04 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:54:05' and `end` < '2025-04-04 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-04 23:54:18] Production.INFO: count ==1616 [2025-04-04 23:54:19] Production.ERROR: pbx CDR StartTime 2025-04-04 20:54:05 - End Time 2025-04-04 23:54:05 [2025-04-04 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836333', 'tblTempUsageDetail_20' ) start [2025-04-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836333', 'tblTempUsageDetail_20' ) end [2025-04-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836333', 'tblTempVendorCDR_20' ) start [2025-04-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836333', 'tblTempVendorCDR_20' ) end [2025-04-04 23:54:19] Production.INFO: ProcessCDR(1,14836333,1,1,2) [2025-04-04 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-04 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-04 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836333', 'tblTempUsageDetail_20' ) start [2025-04-04 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836333', 'tblTempUsageDetail_20' ) end [2025-04-04 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-04 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-04 23:54:22] Production.INFO: ==3477== Releasing lock... [2025-04-04 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-04 23:54:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-04 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 20:55:05 [end_date_ymd] => 2025-04-04 23:55:05 [RateCDR] => 1 ) [2025-04-04 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 20:55:05' and `end` < '2025-04-04 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'')